Restric name ????
#3

Or something like this:
pawn Код:
//Top
#define MAX_BAD_NAMES  2 // Number of "bad names" you will have in the array
new BanNames[MAX_BAD_NAMES][MAX_PLAYER_NAME] =
{
  "OneRestrictedName",
};

//OnPlayerConnect
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
for(new b = 0; b < sizeof(BadNames); ++)
{
  if(!strcmp(name, b, true))
  {
   Kick(playerid);
  }
}
Sorry if any mistakes, I"m very tired even though its only 20:00.
Reply


Messages In This Thread
Restric name ???? - by 6tynine - 30.06.2009, 22:48
Re: Restric name ???? - by Jefff - 30.06.2009, 23:45
Re: Restric name ???? - by Grim_ - 30.06.2009, 23:50

Forum Jump:


Users browsing this thread: 1 Guest(s)