17.07.2012, 18:55
pawn Код:
new i = 0;
while(i < sizeof(arrForbiddenNames))
{ // you forgot this
if(strcmp(arrForbiddenNames[i++], GetPlayerNameExt(playerid), true) == 0)
{
SetPlayerName(playerid, "InvalidNick");
SendClientMessage(playerid, COLOR_RED, "You have been kicked & logged for using a forbidden username.");
Kick(playerid);
return 0;
}
return 1;
}