From BZFlagWiki
Revision as of 05:06, 30 January 2014 by Allejo (Talk | contribs) (Changed documentation for the new return values)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

int bz_getIdleTime (int playerId)

Minimum API Version: 2.4.3 or later
Returns the amount of time a player has been idle in seconds. If the player ID does not exist or the player is an observer, it will return -1; otherwise it will return 0 if the player has not been idle.

playerId  -  Player to lookup.
Number of seconds of idle time