24.11.2009, 17:38
I made a PingKick script but its not working right
I Puted On Top Of Script
OnGameModeInit()
Everytime i connect i get kicked
I Puted On Top Of Script
pawn Код:
forward PingKick(playerid);
pawn Код:
SetTimer("PingKick",1000,1);
pawn Код:
public PingKick(playerid)
{
new s[128], Name[MAX_PLAYER_NAME];
GetPlayerName(playerid, Name, sizeof(Name));
{
new Ping = GetPlayerPing(playerid);
if(Ping < 100)
{
format(s, sizeof(s), "%s has been kicked for high ping", Name);
SendClientMessageToAll(ADMIN_RED, s);
Kick(playerid);
}
}
return 1;
}
Everytime i connect i get kicked