28.04.2010, 12:23
At the top of ur script: >.>
And this is the code you can use to handle this: >.>
pawn Код:
new
BadNames[] =
{
"Ass",
"YouAreShit",
"ShitKid"
// You can add more. Remember don't add a ',' at the last name, see above.
}
;
pawn Код:
new
x,
pName[MAX_PLAYER_NAME] = "YouAreShit" // I used = "YouAreShit" to test it.
;
do
{
GetPlayerName(playerid, pName, sizeof(pName));
if(strfind(BadNames[x], pName, true) != -1) return printf("%s has been kicked! (Bad Name)", pName);
x++;
}
while((x != sizeof(BadNames)));