ifIsplayername
#10

You could do this:

pawn Код:
//At the top of your script
new InvalidNames[][] = {
  "Patch",
  "John",
  "Jake" //add as many names as you want, just don't put a comma(,) on the last one
};

public OnPlayerConnect(playerid)
{
  new pName[MAX_PLAYER_NAME];
  GetPlayerName(playerid, pName, sizeof(pName));
  for(new i = 0; i < sizeof(InvalidNames); i++)
  {
    if(!strcmp(pName, InvalidNames[i], true))
    {
      Kick(playerid);
    }
  }
  return 1;
}
Reply


Messages In This Thread
ifIsplayername - by patchkinson - 29.11.2009, 17:33
Re: ifIsplayername - by lolumadd - 29.11.2009, 17:36
Re: ifIsplayername - by patchkinson - 29.11.2009, 18:36
Re: ifIsplayername - by patchkinson - 29.11.2009, 18:38
Re: ifIsplayername - by lolumadd - 29.11.2009, 21:53
Re: ifIsplayername - by patchkinson - 29.11.2009, 22:01
Re: ifIsplayername - by Mike Garber - 04.12.2009, 14:34
Re: ifIsplayername - by Donny_k - 04.12.2009, 17:20
Re: ifIsplayername - by HydraX - 04.12.2009, 22:55
Re: ifIsplayername - by Gappy - 04.12.2009, 23:24

Forum Jump:


Users browsing this thread: 1 Guest(s)