13.12.2008, 21:08
just a simle code for the new function OnplayerUpdate(playerid)
where you can do stuff each time a player has a ping-update
note: you and evryone on youre server needs 0.2X (not that they don't already have it xD)
p.s. if i putted it were wrong tell me
where you can do stuff each time a player has a ping-update
Код:
public OnPlayerUpdate(playerid)
{
new string[128];
new pName[16];
GetPlayerName(playerid, pName, sizeof(pName));
if(GetPlayerPing(playerid) >= 300)
{
format(string, sizeof(string), "*** %s has bin kicked for Too high ping (max 300)", pName);
SendClientMessageToAll(COLOR_RED, string);
SendClientMessage(playerid, COLOR_RED, "you have bin kicked for too high ping");
Kick(playerid);
}
return 1;
}
p.s. if i putted it were wrong tell me

