Announcement: The amount of coins earned has been increased, visit the F.A.Q Section for more information!
Register and start earning coins for adding servers, creating threads, posting and much more!


No Links Allowed in Messages Watch Thread

Extrodus
Administrator

Posts: 112
Credits:
Made by VirrageS and fix by Jetro and Migxxx from OTLand

In game.cpp, search:

    if(muted && mute)
    {
        if(muted > 0)
        {
            char buffer;
            sprintf(buffer, "You are still muted for %d seconds.", muted);
            player->sendTextMessage(MSG_STATUS_SMALL, buffer);
        }

        else
            player->sendTextMessage(MSG_STATUS_SMALL, "You are muted permanently.");

        return false;
    } 


Under, paste it:

std::string _text = asLowerCaseString(text);
     for(uint8_t i = 0; i < _text.length(); i++)
    {
        char t = _text[i];
        if(t != '-' && t != '.' && !(t >= 'a' && t <= 'z'))
        {
            _text.erase(i, 1);
            i--;
        }
    }

   std::string words []= {".net", "servegame", "no-ip", ".net", ".com", ".com.br", ".org", ".pl", ".net"};
   int ii, length;
   length = sizeof(words)/sizeof(words);
   for(ii=0; ii < int(length); ii++)
   {
      if (int(_text.find(words)) > 0 || _text == words)
         {
            player->sendTextMessage(MSG_STATUS_SMALL, "You can't send this message, forbidden characters."); 
             return false;
          break;
         }

   }

Created 21 December 2013 03:52:38#post-26
Who is viewing this thread?
nobody
Copyright OTList.net Follow us on Facebook