GetPlayerPing: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
==Description==
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.
This function returns the ping (communication time between the client and server) of a specified [[player]].


==Syntax==
==Syntax==

Revision as of 09:59, 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