Phasor
01.00.10.059
|
Player information querying functions for scripts. More...
#include "PhasorAPI.h"
Go to the source code of this file.
Functions | |
void | l_resolveplayer (PHASOR_API_ARGS) |
Resolve a player's memory id to their rcon id. | |
void | l_rresolveplayer (PHASOR_API_ARGS) |
Resolve a player's rcon id to their memory id. | |
void | l_getplayer (PHASOR_API_ARGS) |
Get the specified player's memory data. | |
void | l_getip (PHASOR_API_ARGS) |
Get the specified player's ip address. | |
void | l_getport (PHASOR_API_ARGS) |
Get the specified player's network port. | |
void | l_getteam (PHASOR_API_ARGS) |
Get the specified player's team. | |
void | l_getname (PHASOR_API_ARGS) |
Get the specified player's name. | |
void | l_gethash (PHASOR_API_ARGS) |
Get the specified player's hash. | |
void | l_getteamsize (PHASOR_API_ARGS) |
Get the number of players on the specified team. | |
void | l_getplayerobjectid (PHASOR_API_ARGS) |
Get the specified player's object id. | |
void | l_isadmin (PHASOR_API_ARGS) |
Checks if the specified player is an admin. | |
void | l_getadminlvl (PHASOR_API_ARGS) |
Returns the admins level, or nil if not an admin. | |
void | l_setadmin (PHASOR_API_ARGS) |
Sets the specified player as an admin for the duration of the current game, or until the player leaves. | |
Player information querying functions for scripts.
Important: All functions, other than getplayer
, will raise a Lua error if you send an invalid player. getplayer
will return nil and can be used to determine if a particular player is valid.