For GESIOR AAC.
Small commands script; yet simple, but useful.
1. go to your index.php and add this:
2. now, create a file called commands.php and paste this code in it:
3. now, go to config/config.php and paste this:
4. now save, close and go to http://localhost/?subtopic=commands
Enjoy!
Small commands script; yet simple, but useful.
1. go to your index.php and add this:
PHP:
case "commands";
$subtopic = "commands";
$topic = "Commands";
include("commands.php");
break;
2. now, create a file called commands.php and paste this code in it:
PHP:
<?php
/* * * * Commands script by Archez * * * */
/* * * * http://otarts.net * * * * * * * */
$main_content .= '<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++;
$main_content .= '<tr bgcolor="'.$bgcolor.'"><td width="'.$config['site']['commands_width'].'%">'.$command.'</td><td>'.$use.'</td></tr>';
}
$main_content .= '</table>';
?>
3. now, go to config/config.php and paste this:
PHP:
// PLAYER COMMANDS by ARCHEZ
$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',
// PLAYER COMMANDS by ARCHEZ
4. now save, close and go to http://localhost/?subtopic=commands
Enjoy!