VoidExpanse/scope-server: Difference between revisions
(Created page with "<noinclude> Category:VoidExpanse/api_scopes </noinclude> = Scope server = Used to get access to a specific script-related functions. '''Visibility:''' Global. == List o...") |
(No difference)
|
Revision as of 03:57, 13 February 2014
Scope server
Used to get access to a specific script-related functions.
Visibility: Global.
List of functions
GetAllPlayers | ||
---|---|---|
Arguments | Returns | Example |
void |
array if strings |
var obj = server.GetAllPlayers(); |
Description | ||
Returns an array of names of all players registered on server. |
GetConnectedPlayers | ||
---|---|---|
Arguments | Returns | Example |
void |
array of strings |
var obj = server.GetConnectedPlayers(); |
Description | ||
Returns an array of names of all players, which are currently connected to game. |
IsPlayerExists | ||
---|---|---|
Arguments | Returns | Example |
string: name |
bool |
var obj = server.IsPlayerExists("dlirry"); |
Description | ||
Returns whether specified player exists. |
IsPlayerOnline | ||
---|---|---|
Arguments | Returns | Example |
string: name |
bool |
var obj = server.IsPlayerOnline("dlirry"); |
Description | ||
Returns whether specified player online. |