RP Name Kick
#3

Quote:
Originally Posted by Rajat_Pawar
Посмотреть сообщение
pawn Код:
stock IsPlayerCorrectlyNamed( playerid )
{
     new pNAME[MAX_PLAYER_NAME]; GetPlayerName( playerid, pNAME, MAX_PLAYER_NAME );
     for( new i = 0 ; i < 10 ; i++ )
     {
          if(strfind(name, i, true) != -1 ) return Kick( playerid );
      }
      if( strfind(name, "_", true) == -1) return Kick( playerid );
      else return 1;
}
This COULD work. I have never tried this function before, it should probably work. You can add whatever other symbols you need like "@, ]" to be checked.
It already kicks people but I want it to also send the message I've made but it kicks them right away.
Reply


Messages In This Thread
RP Name Kick - by Stefand - 07.05.2013, 08:52
Re: RP Name Kick - by RajatPawar - 07.05.2013, 09:42
Re: RP Name Kick - by Stefand - 07.05.2013, 10:40
Re: RP Name Kick - by Pooh7 - 07.05.2013, 11:34

Forum Jump:


Users browsing this thread: 1 Guest(s)