GetPlayerPing: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 12: | Line 12: | ||
<syntaxhighlight lang="lua">intPing = getPlayerPing ( findPlayer ( "Someguy" ) ) | <syntaxhighlight lang="lua">intPing = getPlayerPing ( findPlayer ( "Someguy" ) ) | ||
outputChatBox ( "Someguy's ping is ", intPing, "." )</syntaxhighlight> | outputChatBox ( "Someguy's ping is ", intPing, "." )</syntaxhighlight> | ||
==See Also== | |||
{{Player functions}} |
Revision as of 20:03, 20 May 2006
Description
This function returns the ping (communication time between the client and server) of a specified player.
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