05.11.2017, 08:54
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
than
c) Use a timer instead of OnPlayerUpdate
Overall, it's a good idea but needs improvement.
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])
PHP Code:
else if(GetPlayerPing(playerid) < MAX_PING)
{
if(isFrozen[playerid])
Overall, it's a good idea but needs improvement.

