Is this correct?
#5

You should make it, so it doesn't kick players with 65535 ping, because player gets 65535 when he connects for a few seconds, and he could get kicked for no reason.
pawn Код:
public pingkicker(playerid)
{
    if(GetPlayerPing(playerid) > 400 && GetPlayerPing(playerid) != 65535)
    {
        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;
}
Reply


Messages In This Thread
Is this correct? - by OldDirtyBastard - 25.02.2011, 16:16
Re: Is this correct? - by Jeffry - 25.02.2011, 16:19
Re: Is this correct? - by OldDirtyBastard - 25.02.2011, 16:24
Re: Is this correct? - by Jeffry - 25.02.2011, 17:10
Re: Is this correct? - by Mean - 25.02.2011, 19:22

Forum Jump:


Users browsing this thread: 2 Guest(s)