• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[ModernAAC] Commands

kamilvt

-.-'
Joined
May 16, 2008
Messages
22
Reaction score
2
Location
P[r]oland
Hi, i just change script by Archez


DEMO : CLICK


PHP:
<?php 

require("config.php");
$ots = POT::getInstance();
$ots->connect(POT::DB_MYSQL, connection());
$SQL = $ots->getDBHandle();
$config['site']['vdarkborder']='';
$config['site']['darkborder']='';
$config['site']['lightborder']='';
$config['site']['commands_width'] = '15'; // from 0% to 100% (recommended: 15) 
$config['site']['commands'] = array( 
  '!save' => 'Save your character so you avoid items or level loss.', 
  '!buypremium' => 'Buy 30 days of premium time.', 
  '!hunt' => 'Spend some cash with a nice amount for a frag.' 
  ); // 'command' => 'description', 

echo '<table border="0" cellspacing="1" cellpadding="4" width="100%"> 
<tr bgcolor='.$config['site']['vdarkborder'].'> 
<td colspan="2"><b>Commands</b></td> 
</td align="right"></td></tr>'; 
        $number_of_commands = 0; 
        $commands = $config['site']['commands']; 
        foreach ($commands as $command => $use) { 
                        if(is_int($number_of_commands / 2)) 
                    $bgcolor = $config['site']['darkborder']; 
                else 
                    $bgcolor = $config['site']['lightborder']; 
        $number_of_commands++; 
        echo '<tr bgcolor="'.$bgcolor.'"><td width="'.$config['site']['commands_width'].'%">'.$command.'</td><td>'.$use.'</td></tr>'; 
        } 
        echo '</table>'; 
?>
 
so what? it's usefull. Should be happy that some are contributing at all to Modern.
 
Back
Top