GetPlayerPing: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (→Example) |
||
Line 11: | Line 11: | ||
==Example== | ==Example== | ||
intPing = [[getPlayerPing]] ( [[findPlayer]] ( "Someguy" ) ) | intPing = [[getPlayerPing]] ( [[findPlayer]] ( "Someguy" ) ) | ||
[[ | [[serverChat]] ( "Someguy's ping is ", intPing, "." ) |
Revision as of 07:28, 28 March 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" ) ) serverChat ( "Someguy's ping is ", intPing, "." )