04.12.2009, 23:24
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;
}