Hello!
I wrote this script at the request Lava Titan.
Please don't copy the script to other forums.
Author of script: Aleh
Create a file viplist.php and paste:
OtLand
Screen:
>> The script for VIP Access, which works with my vip list <<
//////////////////////////////////// ////////////////////////////////////
!!! VIP Status in Hightscores !!!
File hightscores.php Change your file with it
or:
open hightscores.php, find the lines ~92 and paste
Next find
and after that paste
Now find
and after that paste
Screen:
Thanks PAXTON to a little help.
//////////////////////////////////// ////////////////////////////////////
!!! VIP Status in Characters !!!
Open characters.php, find the lines ~94
and after that paste
If you already have VIP status replace it:
to
Screen:
Thanks, REP ++!
I wrote this script at the request Lava Titan.
Please don't copy the script to other forums.
Author of script: Aleh
Create a file viplist.php and paste:
PHP:
<?PHP
$zapytanie = $SQL->query('SELECT `player_storage`.`player_id`, `player_storage`.`key`, `player_storage`.`value`, `players`.`id`, `players`.`name`, `players`.`level`, `players`.`online` FROM `player_storage`, `players` WHERE `key` = 19551 AND `player_storage`.`player_id` = `players`.`id` ORDER BY `players`.`level` DESC;')->fetchall();
foreach($zapytanie as $zap) {
$kolor++;
if(is_int($kolor / 2))
$bgcolor = $config['site']['lightborder'];
else
$bgcolor = $config['site']['darkborder'];
if($zap['online'] == 0)
$player_list_status = '<font color="red"><b>Offline</b></font>';
else
$player_list_status = '<font color="green"><b>Online</b></font>';
$tresc .= '<TR BGCOLOR='.$bgcolor.'><TD><center><a href="?subtopic=characters&name='.urlencode($zap['name']).'">'.$zap['name'].'</a></TD><TD><center>'.$zap['level'].'</TD><TD><center>'.$player_list_status.'</center></TD></TR>';
}
$main_content .= '<center><hr/><b>VIP List on '.$config['server']['serverName'].'.</b><hr/><br><TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR="'.$config['site']['vdarkborder'].'"><TD CLASS=white WIDTH=32%><b><center>Name</center></b></TD><TD class="white" WIDTH=32%><b><center>Level</center></b></TD><TD class="white" WIDTH=32%><b><center>Status</center></b></TD></TR>'.$tresc.'</TABLE>';
$main_content .= '<div align="right"><small><b>Author of script: <a href="http://otland.net/members/aleh/">Aleh</a></b></small></div><br />';
?>
Screen:
>> The script for VIP Access, which works with my vip list <<
//////////////////////////////////// ////////////////////////////////////
!!! VIP Status in Hightscores !!!
File hightscores.php Change your file with it
or:
open hightscores.php, find the lines ~92 and paste
PHP:
$vip = $SQL->query('SELECT `player_storage`.`player_id`, `player_storage`.`key`, `players`.`id` FROM `player_storage`, `players` WHERE `player_storage`.`player_id` = '.$player->getId().' AND `key` = 19551;')->fetchall();
if($vip[0]['key'] == 19551)
$vipp = '<center><font color="green"><b>VIP</b></font></center>';
else
$vipp = '<center><font color="red"><b>FREE</b></font></center>';
PHP:
<TD WIDTH=15% CLASS=whites><b><center>Level</center></B></TD>
PHP:
<TD WIDTH=5% CLASS=whites><b><center>Status</center></B></TD>
PHP:
<td><center>'.$skill['value'].'</center></td>
PHP:
<td>'.$vipp.'</td>
Thanks PAXTON to a little help.
//////////////////////////////////// ////////////////////////////////////
!!! VIP Status in Characters !!!
Open characters.php, find the lines ~94
PHP:
if($config['site']['show_creationdate'] && $player->getCreated())
{
$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Created:</TD><TD>'.date("j F Y, g:i a", $player->getCreated()).'</TD></TR>';
}
PHP:
if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++;
$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Vip Status:</TD>';
$vip = $SQL->query('SELECT * FROM `player_storage` WHERE `player_id` = '.$player->getId().' AND `key` = 19551;')->fetch();
if($vip == false) {
$main_content .= '<TD><span class="red"><B>NOT VIP</B></TD></TR>';
}
else
{
$main_content .= '<TD><span class="green"><B>VIP</B></TD></TR>';
}
PHP:
$vip = $SQL->query('SELECT * FROM player_storage WHERE player_id = '.$id.' AND `key` = '.$config['site']['show_vip_storage'].';')->fetch();
PHP:
$vip = $SQL->query('SELECT * FROM `player_storage` WHERE `player_id` = '.$player->getId().' AND `key` = 19551;')->fetch();
Thanks, REP ++!
Last edited: