25.02.2011, 16:16
I made a ping kicker, what it should do is, it should warn a player about his
ping that is exceeding the server limit, if the ping doesnt goes under the limit
in 10 seconds the player gets kicked:
But the problem is that......i cant test it myself, i tried to load
like 10 torrents at the same time but no success
So any good scripter might tell me if this is gonna work and if not,
please give me some advices how to fix it.
Thanks regards.
ping that is exceeding the server limit, if the ping doesnt goes under the limit
in 10 seconds the player gets kicked:
pawn Код:
public pingkicker(playerid)
{
if(GetPlayerPing(playerid) > 400)
{
pingwarning(playerid);
SendClientMessage(playerid,COLOR_RED,"WARNING: Your ping exeeds the limit of 400 ms, you have 10 seconds to establish your ping or else you will be kicked.");
pingkickz[playerid] = SetTimerEx("pingkick",9999,false,"i",playerid);
if(GetPlayerPing(playerid) < 400)
{
KillTimer(pingkickz[playerid]);
hidepingwarning(playerid);
}
}
return 1;
}
like 10 torrents at the same time but no success

So any good scripter might tell me if this is gonna work and if not,
please give me some advices how to fix it.
Thanks regards.