Quote:
Originally Posted by Guest123
pawn Код:
if(gPlayerLogTries[playerid] == 3) { new string[128]; GetPlayerName(playerid,sendername, sizeof(sendername)); format(string, sizeof(string), "%s has been kicked for 3 incorrect password attemps.", name, reason); SendClientMessageToAll(0xFF9900AA, string); SetTimerEx("KickPlayer",1000,0,"i",playerid); }
pawn Код:
forward KickPlayer(playerid); public KickPlayer(playerid) { Kick(playerid); }
|
Why did you put reason in there too? The text already say the reason. And if you put GetPlayerName as serndername you can't use 'name' insted in the string