server->getGame() == 'TMN') { $help = '{#dedimsg}Dedimania$g is an online World Records database for {#black}all$g' . LF; $help .= 'TrackMania games. See its official site at:' . LF; $help .= '{#black}http://www.dedimania.com/SITE/$g and the records database:' . LF; $help .= '{#black}http://www.dedimania.com/tmstats/?do=stat$g .' . LF . LF; $help .= 'Dedimania records are stored per game (TMN, TMU, etc)' . LF; $help .= 'and mode (TimeAttack, Rounds, etc) and shared between' . LF; $help .= 'all servers that operate with Dedimania support.' . LF . LF; $help .= 'The available Dedimania commands are similar to local' . LF; $help .= 'record commands:' . LF; $help .= '{#black}/dedirecs$g, {#black}/dedinew$g, {#black}/dedilive$g, {#black}/dedipb$g, {#black}/dedicps$g, {#black}/dedistats$g,' . LF; $help .= '{#black}/dedifirst$g, {#black}/dedilast$g, {#black}/dedinext$g, {#black}/dedidiff$g, {#black}/dedirange$g' . LF; $help .= 'See the {#black}/helpall$g command for detailed descriptions.'; // display popup message $aseco->client->query('SendDisplayServerMessageToLogin', $command['author']->login, $aseco->formatColors($help), 'OK', '', 0); } elseif ($aseco->server->getGame() == 'TMF') { $header = 'Dedimania information:'; $data = array(); $data[] = array('{#dedimsg}Dedimania$g is an online World Records database for {#black}all'); $data[] = array('TrackMania games. See its official site at:'); $data[] = array('{#black}$l[http://www.dedimania.com/SITE/]http://www.dedimania.com/SITE/$l$g and the records database:'); $data[] = array('{#black}$l[http://www.dedimania.com/tmstats/?do=stat]http://www.dedimania.com/tmstats/?do=stat$l$g .'); $data[] = array(); $data[] = array('Dedimania records are stored per game (TMN, TMU, etc)'); $data[] = array('and mode (TimeAttack, Rounds, etc) and shared between'); $data[] = array('all servers that operate with Dedimania support.'); $data[] = array(); $data[] = array('The available Dedimania commands are similar to local'); $data[] = array('record commands:'); $data[] = array('{#black}/dedirecs$g, {#black}/dedinew$g, {#black}/dedilive$g, {#black}/dedipb$g, {#black}/dedicps$g, {#black}/dedistats$g,'); $data[] = array('{#black}/dedifirst$g, {#black}/dedilast$g, {#black}/dedinext$g, {#black}/dedidiff$g, {#black}/dedirange$g'); $data[] = array(); $data[] = array('See the {#black}/helpall$g command for detailed descriptions.'); // display ManiaLink message display_manialink($command['author']->login, $header, array('Icons64x64_1', 'TrackInfo', -0.01), $data, array(0.95), 'OK'); } } // chat_helpdedi function chat_dedirecs($aseco, $command) { global $dedi_db; $player = $command['author']; $login = $player->login; $dedi_recs = $dedi_db['Challenge']['Records']; // split params into array $arglist = explode(' ', strtolower(preg_replace('/ +/', ' ', $command['params']))); // process optional relations commands if ($arglist[0] == 'help') { if ($aseco->server->getGame() == 'TMN') { $help = '{#black}/dedirecs