Page 1 of 1

make snowfall in ur server (between maps)

Posted: 25 Dec 2010 08:30
by jouko100
example http://img413.imageshack.us/img413/8253/71589958.png
u can see it in my server Jou maps in FIN

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

http://www.gigasize.com/get.php?d=cclz5mpyv1c


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


video.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="100 100" posn="0 70 0" halign="left"  valign="top" data="http://ur site/snow.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));   

}
  
?>

Re: make snowfall in ur server (between maps)

Posted: 25 Dec 2010 10:01
by jouko100
or if u want snowfall all the time

edit url and follow instruction in first post

video.php

Code: Select all

<?php



Aseco::registerEvent('onNewChallenge', '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="" />
//edit  url*****************************************************************
<video sizen="100 100" posn="0 70 0" halign="left"  valign="top" data="http://ur site/snow.bik" play="1"/>
      </frame>

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

}

  
?>