GetPlayerPing

From Multi Theft Auto: Wiki
Revision as of 17:24, 25 March 2006 by JonChappell (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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, "." )