01.03.2014, 08:02
pawn Код:
if(P_Data[playerid][pSpam] == 5)
{
new string[128];
format(string,sizeof(string), "SERVER: Player %s has been kicked for spamming.",GetName(playerid));
SCMToAll(COLOR_RED,string);
Kick(playerid);
return 1;
}
EDIT: Also, make sure your "GetName" stock is proper.
pawn Код:
stock GetName(playerid)
{
new szName[MAX_PLAYER_NAME];
GetPlayerName(playerid, szName, sizeof(szName));
return szName;
}