GetPlayerPing: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 10: | Line 10: | ||
==Example== | ==Example== | ||
<syntaxhighlight lang="lua">intPing = getPlayerPing ( findPlayer ( "Someguy" ) ) | <syntaxhighlight lang="lua">intPing = getPlayerPing ( findPlayer ( "Someguy" ) ) | ||
outputChatBox ( "Someguy's ping is " | outputChatBox ( "Someguy's ping is " .. intPing .. "." )</syntaxhighlight> | ||
==See Also== | ==See Also== | ||
{{Player functions}} | {{Player functions}} |
Revision as of 10:53, 14 August 2006
This function returns the ping of a specified player. The ping is the number of milliseconds that data takes to travel from the player's client to the server or the reverse.
Syntax
int getPlayerPing ( player player )
Required Arguments
- player: The player whose ping you want to determine.
Example
intPing = getPlayerPing ( findPlayer ( "Someguy" ) ) outputChatBox ( "Someguy's ping is " .. intPing .. "." )
See Also
- getPlayerTeam
- getPlayerBlurLevel
- setPlayerBlurLevel
- getPlayerSerial
- forcePlayerMap
- getPlayerScriptDebugLevel
- getPlayerFromName
- getPlayerMoney
- getPlayerName
- getPlayerNametagColor
- getPlayerNametagText
- getPlayerPing
- getPlayerWantedLevel
- givePlayerMoney
- isPlayerMapForced
- isPlayerNametagShowing
- setPlayerHudComponentVisible
- setPlayerMoney
- setPlayerNametagColor
- setPlayerNametagShowing
- setPlayerNametagText
- takePlayerMoney
- countPlayersInTeam
- getPlayersInTeam
- isVoiceEnabled
- setControlState
- getControlState