make firework in ur server (between maps)

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
jouko100
speedy pilot
speedy pilot
Posts: 375
Joined: 10 Mar 2007 09:33
Location: finland

make firework in ur server (between maps)

Post by jouko100 » 30 Dec 2010 08:07

example http://img291.imageshack.us/i/firexn.png/

download this and put it to ur webserver by name fire.bik (google sites is good)

http://turboupload.com/x0o75m57wydn



edit url
name plugin to fire.php and put it to plugins dirtectory and add line <plugin>fire.php</plugin> to plugins.xml


fire.php


Code: Select all

<?php


Aseco::registerEvent('onNewChallenge', 'hide');

Aseco::registerEvent('onEndRace', 'show');

//config***********************************************************


global $buttonmainposition;

$buttonmainposition = '0 0 1';


function show($aseco) {

   global $buttonmainposition;

   

       $xml = '<manialink id="0815470000122555">

      <format style="TextCardInfoSmall" textsize="1" />

      <frame posn="'.$buttonmainposition.'">

      <label posn="72.2 -12.8 1" sizen="3 2" halign="center" valign="center" text="" />

<video sizen="75 75" posn="50 50 0" halign="left"  valign="top" data="http://ur site/fire.bik" play="1"/>// edit this*****************
      </frame>

   </manialink>';
$aseco->client->addCall('SendDisplayManialinkPage', array($xml, 0, false));
   

}

function hide($aseco) {

   global $buttonmainposition;   

       $xml = '<manialink id="0815470000122555">

      <format style="TextCardInfoSmall" textsize="1" />

      <frame posn="'.$buttonmainposition.'">

      <label posn="72.2 -12.8 1" sizen="3 2" halign="center" valign="center" text="" />


      </frame>

   </manialink>';
$aseco->client->addCall('SendDisplayManialinkPage', array($xml, 0, false));   

}
 
?>

Post Reply