[FilterScript] San Andreas Essentials: ePing | Freeze Player With High Ping | Anti-High Ping |
#9

Kaperstone is absolutely right. I would also like to point out a few things:

a) You should check whether the player's ping is 65535 before "ping banning" him as it
sometimes happen that a player's ping is set to 65535 upon connecting to the server.

b) I'd advise you to rather use
PHP Code:
if(GetPlayerPing(playerid) < MAX_PING && isFrozen[playerid]) 
than
PHP Code:
else if(GetPlayerPing(playerid) < MAX_PING)
{
    if(
isFrozen[playerid]) 
c) Use a timer instead of OnPlayerUpdate



Overall, it's a good idea but needs improvement.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)