Player.Ping
From Liberty Unleashed Wiki
This Player class member returns the player's current ping.
Syntax
int Player.Ping
Arguments
- none
Example
This command tells player their ping when they type '/myping'.
function onPlayerCommand( pPlayer, cmd, text ) { if ( cmd == "myping" ) { MessagePlayer( "Your ping: " + pPlayer.Ping, pPlayer ); } return 1; }
Notes
The function MessagePlayer and call onPlayerCommand were used in in this example. More info about them in corresponding pages.