plugin set timelimit in TA mode

Discuss everything about Xymph's Aseco flavoured server control scripts for TM Forever / classic TMN and for TM² Canyon.

Moderators: Xymph, TM-Patrol

Post Reply
speedy pilot
speedy pilot
Posts: 375
Joined: 10 Mar 2007 09:33
Location: finland

plugin set timelimit in TA mode

Post by jouko100 » 23 Jul 2010 08:48

masteradmin command.
In game use /limit xxx ,xxx= seconds
Name plugin limit.php and put it to plugins directory.
Add line
to plugins.xml

Code: Select all

// made  by Jou**************************************************
// in game use /limit XXX  , XXX in seconds

Aseco::addChatCommand('limit', 'limit');
function chat_limit($aseco, $command) {
$admin = $command['author'];
   $login = $admin->login;
   $player = $aseco->server->players->getPlayer($login);
   $playernick = ($player->nickname);
if ($aseco->isMasterAdmin($admin)) {

$command['params'] = explode(' ', $command['params'], 1);
$limit = $command['params'][0]*1000;

if ($aseco->server->getGame() == 'TMF') {
      // check for TMUF server           

Post Reply