GetPlayerPing

From SA-MP Wiki

Jump to: navigation, search

GetPlayerPing


Get the ping of a player.


Parameters:
(playerid)
playeridThe ID of the player who's ping you want to get.


ReturnsThe current ping of the player (expressed in milliseconds).


if(GetPlayerPing(playerid) > 1000) Kick(playerid);
// Kick players with a high ping

Important Note: Player's ping may be 65535 for a while after a player connects


Related Functions

The following functions might be useful as well, as they're related to this function in one way or another.

Personal tools