Development
Gamemodes in UASECO
Sometimes you need to know which Gamemode the dedicated server currently runs. The current Gamemode is accessible with
$aseco->server->gameinfo->mode
. If you want to use $aseco
in one of your own function, then you
have to include this object into your own scope:
Include $aseco into your own scope
global $aseco;
Write this direct after your declaration of your own function, then you are able to use $aseco
in your own function.
Example to find out the current Gamemode
To find out if the current Gamemode is Rounds
, you can do it like this example:
Example
if ($aseco->server->gameinfo->mode == Gameinfo::ROUNDS) { // Do something }
Supported Modescripts
For details which Modescripts are supported, visit the supported Modescripts list.
This is a private enthusiast Website. Maniaplanet, Trackmania, Shootmania, Nadeo are trademarks of Ubisoft Entertainment.
Windows is a registered trademark of Microsoft Corporation.
Last modified: Wed, 17 Apr 2019 22:10:48 +0200