GetPlayerPing
From SA-MP Wiki
GetPlayerPing
Get the ping of a player.
(playerid)
| playerid | The ID of the player who's ping you want to get. |
| Returns | The 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.
- GetPlayerName: Get a player's name.
