The Playerlist in XAseco are accessible in several ways, here i want to show you (hopefully) all possible ways:
With this $player object you can access the Nickname, the Database-Id (for using it in a SQL-Query)
and many more of this Player:
To see all possible variables, just dump the whole $player object into the logfile from XAseco:
If you only need the Database-Player-Id from a $login, then you can use this,
instead of copy the whole Player object (which is huge!):
Sometimes it is required to figure out if the calling Player is a Operator,
Admin or MasterAdmin. For such situations there are functions they know it.
Functions which require only the $login from a Player:
Function
Description
$aseco->isOperatorL($login)
Checks if the given player login is in operator list.
$aseco->isAdminL($login)
Checks if the given player login is in admin list.
$aseco->isMasterAdminL($login)
Checks if the given player login is in masteradmin list.
$aseco->isAnyAdminL($login)
Checks if the given player login is in operator list.
Functions which require the whole $player object:
Function
Description
$aseco->isOperator($player)
Checks if the given player is in operator list with, optionally, an authorized IP.
$aseco->isAdmin($player)
Checks if the given player is in admin list with, optionally, an authorized IP.
$aseco->isMasterAdmin($player)
Checks if the given player is in masteradmin list with, optionally, an authorized IP.
$aseco->isAnyAdmin($player)
Checks if the given player is in any admin tier with, optionally, an authorized IP.
All of the above functions are returning true or false
Each Player can be a Player or a Spectator, in several situations it is required,
that some of your Widgets are hidden if the Player is a Spectator to not overlay some of the
in-game Widgets.
The event onPlayerInfoChanged is fired everytime when there are changes at the Player. With this event
you are able to interact on temporary Spectator changes, because with the above you can only find PureSpectator:
Last modified: Sat, 19 May 2012 21:59:20 +0200
This is a private enthusiast Website. Maniaplanet, Trackmania, Shootmania, Nadeo are trademarks of Ubisoft Entertainment.
XAseco is maintained by Frans P. de Vries.
MPAseco is maintained by Kremsy, ManiacTwister & TheM
Reordered Navigation
Maybe you have already noticed, that i have changed the order in
the Navigation. Since now XAseco2 is in front of all others content.