Jump to content
MakeWebGames

benlucraft

Members
  • Posts

    89
  • Joined

  • Last visited

  • Days Won

    1

benlucraft last won the day on April 30 2014

benlucraft had the most liked content!

About benlucraft

  • Birthday 06/17/1997

Personal Information

  • Location
    Essex, England
  • Interests
    PHP, Football, Training, Gym, Tattoos
  • Occupation
    SIA Security
  • Website
    http://www.soldierswarfare.net/login.php

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

benlucraft's Achievements

Newbie

Newbie (1/14)

2

Reputation

  1. http://www.falloftheliving.com/register.php?REF=160 This is not my game I'm merely advertising for a friend, his ID is [1] obviously so any questions/queries/ideas can go through either him or me My Game ID [160] My Skype dankturbo His Game ID [1] Thanks in advance guys!
  2. I found the issue it is located in header.php it has it's own colour format, but thanks anyway Dave
  3. Usersonline.php <?php require('globals.php'); $records = $db->query("SELECT `recid`,`rec15`,`rec30`,`rec24`,`rec60` FROM `records` WHERE recid = 1", $c); $v = $db->fetch_row($records); $query = $db->query("SELECT `username` FROM `users` WHERE `laston` > unix_timestamp()-200*720 ORDER BY `laston` DESC", $c); $day = $db->num_rows($query); $query = $db->query("SELECT `username` FROM `users` WHERE `laston` > unix_timestamp()-60*60 ORDER BY `laston` DESC", $c); $sixty = $db->num_rows($query); $query = $db->query("SELECT `username` FROM `users` WHERE `laston` > unix_timestamp()-30*60 ORDER BY `laston` DESC", $c); $thirty = $db->num_rows($query); $query = $db->query("SELECT `username` FROM `users` WHERE `laston` > unix_timestamp()-15*60 ORDER BY `laston` DESC", $c); $fifteen = $db->num_rows($query); if ($v['rec15'] < $fifteen) { $db->query("UPDATE `records` SET `rec15`='$fifteen' WHERE `recid` = 1", $c); } if ($v['rec30'] < $thirty) { $db->query("UPDATE `records` SET `rec30`='$thirty' WHERE `recid` = 1", $c); } if ($v['rec24'] < $day) { $db->query("UPDATE `records` SET `rec24`='$day' WHERE `recid` = 1", $c); } if ($v['rec60'] < $sixty) { $db->query("UPDATE `records` SET `rec60`='$sixty' WHERE `recid` = 1", $c); } echo "<h3 align='center'>Users Online</h3> <hr width='100%'> <table width='100%' class='table'> <tr><th colspan='4'>Time Changer</th></tr> <tr align='center'> <td>[<a href='usersonline.php?view=fifteen'>15 Mins</a>]</td> <td>[<a href='usersonline.php?view=thirty'>30 Mins</a>]</td> <td>[<a href='usersonline.php?view=hour'>1 Hour</a>]</td> <td>[<a href='usersonline.php?view=today'>Today</a>]</td> </tr></table> <table width='100%' class='table'> <tr> <th>Statistics</th> <th>Record</th> <th>Name Legend</th> </tr> <td>"; $q = $db->query("SELECT COUNT(*) as `cnt` FROM `users` WHERE `laston` > unix_timestamp()-15*60 ORDER BY `laston` DESC", $c); while ($r = $db->fetch_row($q)) echo "Users online in the last 15 mins <font color='white'>$r[cnt]</font><br />"; $q = $db->query("SELECT COUNT(*) as `cnt` FROM `users` WHERE `laston` > unix_timestamp()-30*60 ORDER BY `laston` DESC", $c); while ($r = $db->fetch_row($q)) echo "Users online in the last 30 mins <font color='white'>$r[cnt]</font><br />"; $q = $db->query("SELECT COUNT(*) as `cnt` FROM `users` WHERE `laston` > unix_timestamp()-60*60 ORDER BY `laston` DESC", $c); while ($r = $db->fetch_row($q)) echo "Users online in the last 1 Hour <font color='white'>$r[cnt]</font><br />"; $q = $db->query("SELECT COUNT(*) as `cnt` FROM `users` WHERE `laston` > unix_timestamp()-200*720 ORDER BY `laston` DESC", $c); while ($r = $db->fetch_row($q)) echo "Users online in the last 24 Hours <font color='white'>$r[cnt]</font>"; echo "</td> <td>"; echo " Record online in the last 15 mins <font color='white'>{$v['rec15']}</font><br /> Record online in the last 30 mins <font color='white'>{$v['rec30']}</font><br /> Record online in the last 1 Hour <font color='white'>{$v['rec60']}</font><br /> Record online in the last 24 Hours <font color='white'>{$v['rec24']}</font><br />"; echo "</td> <td> <img src='images/staff.gif' width='15'/>Staff Icon <br /> <font color='red'>Red</font> Names are Admin <br /> <font color='#1E90FF'>Dodger Blue</font> Names are Developer <br /> <font color='blue'>Blue</font> Names are Secretary <br /> <font color='green'>Green</font> Names are Moderator <br /> <font color='cyan'>Cyan</font> Names are Assistant <br /> <font color='#008B8B'>Dark Cyan</font> Names are Donator <br /> <img src='images/donator.gif' width='15'/> Donator Star <br /> </td></tr></table>"; if (!isset($_GET['view'])) { $_GET['view'] = ''; } switch ($_GET['view']) { case 'fifteen': fifteen(); break; case 'thirty': thirty(); break; case 'hour': hour(); break; case 'today': today(); break; default: fifteen(); break; } function fifteen() { global $ir, $c, $userid, $db, $h; echo "<table width = '100%' class = 'table'><tr align ='center'><th>Users On In The Last 15 Mins</th></tr></table>"; $q = $db->query("SELECT COUNT(*) as `cnt` FROM `users` WHERE `laston` > unix_timestamp()-15*60 ORDER BY `laston` DESC", $c); while ($r = $db->fetch_row($q)) echo "<table width = '100%' class='table'><tr> <th>&nsbp;</th> <th>Users</th> <th>Last Hit</th> <th>Time Online</th> <th>Level</th> <th>Mail</th> <th>Attack</th> </tr>"; $cn = 0; $q = $db->query("SELECT `u`.*,`g`.* FROM `users` `u` LEFT JOIN `gangs` `g` ON `g`.`gangID`=`u`.`gang` WHERE `u`.`laston` > unix_timestamp()-15*60 ORDER BY `laston` DESC", $c); while ($r = $db->fetch_row($q)) { $lon = date('F j, Y g:i:s a', $r['laston']); $la = time() - $r['laston']; $unit = "secs"; if ($la >= 60) { $la = (int) ($la / 60); $unit = "mins"; } if ($la >= 60) { $la = (int) ($la / 60); $unit = "hours"; if ($la >= 24) { $la = (int) ($la / 24); $unit = "days"; } } $lb = time() - $r['last_login']; $units = "secs"; if ($lb >= 60) { $lb = (int) ($lb / 60); $units = "mins"; } if ($lb >= 60) { $lb = (int) ($lb / 60); $units = "hours"; if ($lb >= 24) { $lb = (int) ($lb / 24); $units = "days"; } } if ($r['laston'] <= time() - 15 * 60) { $lb = "offline"; $units = ""; } if ($r['donatordays']) { $d = "<img src='/images/donator.gif' width='15' alt='Donator: {$r['donatordays']} Days Left' title='Donator: {$r['donatordays']} Days Left' />"; } else { $d = ""; } if ($r['user_level'] > 1) { $staff = "<img src='images/staff.gif 'width='15' alt='Staff' title='Staff' />"; } else { $staff = ""; } if ($r['gang']) { $qg = $db->query("SELECT gangPREF FROM `gangs` WHERE `gangID` = {$r['gang']}", $c); $rr = $db->fetch_row($qg); $gn = "[" . $rr['gangPREF'] . "]"; } else { $gn = ""; } $cn++; if ($r['user_level'] == 2) { $user = "<font color='red'>{$r['username']}</font>"; } else if ($r['user_level'] == 3) { $user = "<font color='blue'>{$r['username']}</font>"; } else if ($r['user_level'] == 4) { $user = "<font color='green'>{$r['username']}</font>"; } else if ($r['user_level'] == 5) { $user = "<font color='cyan'>{$r['username']}</font>"; } else if ($r['user_level'] == 6) { $user = "<font color='#1E90FF'>{$r['username']}</font>"; } else if ($r['donatordays']) { $user = "<font color='#008B8B'>{$r['username']}</font>"; } else { $user = "{$r['username']}"; } echo "<tr><td>$cn. </td><td>$gn <a href='viewuser.php?u={$r['userid']}'>$user</a> $d $staff</td><td>($la $unit)</td><td>({$lb} {$units})</td><td>{$r['level']}</td><td><a href='mailbox.php?action=compose&ID={$r['userid']}'>Mail</a></td><td><a href='attack.php?ID={$r['userid']}'>Attack</a></td></tr>"; } echo "</table>"; } function thirty() { global $ir, $c, $userid, $db, $h; echo "<table width = '100%' class = 'table'><tr align ='center'><th>Users On In The Last 30 Mins</th></tr></table>"; $q = $db->query("SELECT COUNT(*) as `cnt` FROM `users` WHERE `laston` > unix_timestamp()-30*60 ORDER BY `laston` DESC", $c); while ($r = $db->fetch_row($q)) echo "<table width = '100%' class='table'><tr> <th>&nsbp;</th> <th>Users</th> <th>Last Hit</th> <th>Time Online</th> <th>Level</th> <th>Mail</th> <th>Attack</th> </tr>"; $cn = 0; $q = $db->query("SELECT `u`.*,`g`.* FROM `users` `u` LEFT JOIN `gangs` `g` ON `g`.`gangID`=`u`.`gang` WHERE `u`.`laston` > unix_timestamp()-30*60 ORDER BY `laston` DESC", $c); while ($r = $db->fetch_row($q)) { $lon = date('F j, Y g:i:s a', $r['laston']); $la = time() - $r['laston']; $unit = "secs"; if ($la >= 60) { $la = (int) ($la / 60); $unit = "mins"; } if ($la >= 60) { $la = (int) ($la / 60); $unit = "hours"; if ($la >= 24) { $la = (int) ($la / 24); $unit = "days"; } } $lb = time() - $r['last_login']; $units = "secs"; if ($lb >= 60) { $lb = (int) ($lb / 60); $units = "mins"; } if ($lb >= 60) { $lb = (int) ($lb / 60); $units = "hours"; if ($lb >= 24) { $lb = (int) ($lb / 24); $units = "days"; } } if ($r['laston'] <= time() - 30 * 60) { $lb = "offline"; $units = ""; } if ($r['donatordays']) { $d = "<img src='/images/donator.gif' width='15' alt='Donator: {$r['donatordays']} Days Left' title='Donator: {$r['donatordays']} Days Left' />"; } else { $d = ""; } if ($r['user_level'] > 1) { $staff = "<img src='images/staff.gif 'width='15' alt='Staff' title='Staff' />"; } else { $staff = ""; } if ($r['gang']) { $qg = $db->query("SELECT gangPREF FROM `gangs` WHERE `gangID` = {$r['gang']}", $c); $rr = $db->fetch_row($qg); $gn = "[" . $rr['gangPREF'] . "]"; } else { $gn = ""; } $cn++; if ($r['user_level'] == 2) { $user = "<font color='red'>{$r['username']}</font>"; } else if ($r['user_level'] == 3) { $user = "<font color='blue'>{$r['username']}</font>"; } else if ($r['user_level'] == 4) { $user = "<font color='green'>{$r['username']}</font>"; } else if ($r['user_level'] == 5) { $user = "<font color='cyan'>{$r['username']}</font>"; } else if ($r['user_level'] == 6) { $user = "<font color='#1E90FF'>{$r['username']}</font>"; } else if ($r['donatordays']) { $user = "<font color='#008B8B'>{$r['username']}</font>"; } else { $user = "{$r['username']}"; } echo "<tr><td>$cn. </td><td>$gn <a href='viewuser.php?u={$r['userid']}'>$user</a> $d $staff</td><td>($la $unit)</td><td>({$lb} {$units})</td><td>{$r['level']}</td><td><a href='mailbox.php?action=compose&ID={$r['userid']}'>Mail</a></td><td><a href='attack.php?ID={$r['userid']}'>Attack</a></td></tr>"; } echo "</table>"; } function hour() { global $ir, $c, $userid, $db, $h; echo "<table width = '100%' class = 'table'><tr align ='center'><th>Users On In The Last 60 Mins</th></tr></table>"; $q = $db->query("SELECT COUNT(*) as `cnt` FROM `users` WHERE `laston` > unix_timestamp()-60*60 ORDER BY `laston` DESC", $c); while ($r = $db->fetch_row($q)) echo "<table width = '100%' class='table'><tr> <th>&nsbp;</th> <th>Users</th> <th>Last Hit</th> <th>Time Online</th> <th>Level</th> <th>Mail</th> <th>Attack</th> </tr>"; $cn = 0; $q = $db->query("SELECT `u`.*,`g`.* FROM `users` `u` LEFT JOIN `gangs` `g` ON `g`.`gangID`=`u`.`gang` WHERE `u`.`laston` > unix_timestamp()-60*60 ORDER BY `laston` DESC", $c); while ($r = $db->fetch_row($q)) { $lon = date('F j, Y g:i:s a', $r['laston']); $la = time() - $r['laston']; $unit = "secs"; if ($la >= 60) { $la = (int) ($la / 60); $unit = "mins"; } if ($la >= 60) { $la = (int) ($la / 60); $unit = "hours"; if ($la >= 24) { $la = (int) ($la / 24); $unit = "days"; } } $lb = time() - $r['last_login']; $units = "secs"; if ($lb >= 60) { $lb = (int) ($lb / 60); $units = "mins"; } if ($lb >= 60) { $lb = (int) ($lb / 60); $units = "hours"; if ($lb >= 24) { $lb = (int) ($lb / 24); $units = "days"; } } if ($r['laston'] <= time() - 60 * 60) { $lb = "offline"; $units = ""; } if ($r['donatordays']) { $d = "<img src='/images/donator.gif' width='15' alt='Donator: {$r['donatordays']} Days Left' title='Donator: {$r['donatordays']} Days Left' />"; } else { $d = ""; } if ($r['user_level'] > 1) { $staff = "<img src='images/staff.gif 'width='15' alt='Staff' title='Staff' />"; } else { $staff = ""; } if ($r['gang']) { $qg = $db->query("SELECT gangPREF FROM `gangs` WHERE `gangID` = {$r['gang']}", $c); $rr = $db->fetch_row($qg); $gn = "[" . $rr['gangPREF'] . "]"; } else { $gn = ""; } $cn++; if ($r['user_level'] == 2) { $user = "<font color='red'>{$r['username']}</font>"; } else if ($r['user_level'] == 3) { $user = "<font color='blue'>{$r['username']}</font>"; } else if ($r['user_level'] == 4) { $user = "<font color='green'>{$r['username']}</font>"; } else if ($r['user_level'] == 5) { $user = "<font color='cyan'>{$r['username']}</font>"; } else if ($r['user_level'] == 6) { $user = "<font color='#1E90FF'>{$r['username']}</font>"; } else if ($r['donatordays']) { $user = "<font color='#008B8B'>{$r['username']}</font>"; } else { $user = "{$r['username']}"; } echo "<tr><td>$cn. </td><td>$gn <a href='viewuser.php?u={$r['userid']}'>$user</a> $d $staff</td><td>($la $unit)</td><td>({$lb} {$units})</td><td>{$r['level']}</td><td><a href='mailbox.php?action=compose&ID={$r['userid']}'>Mail</a></td><td><a href='attack.php?ID={$r['userid']}'>Attack</a></td></tr>"; } echo "</table>"; } function today() { global $ir, $c, $userid, $db, $h; echo "<table width = '100%' class = 'table'><tr align ='center'><th>Users On In The Last 24 Hours</th></tr></table>"; $q = $db->query("SELECT COUNT(*) as `cnt` FROM `users` WHERE `laston` > unix_timestamp()-200*720 ORDER BY `laston` DESC", $c); while ($r = $db->fetch_row($q)) echo "<table width = '100%' class='table'><tr> <th>&nsbp;</th> <th>Users</th> <th>Last Hit</th> <th>Time Online</th> <th>Level</th> <th>Mail</th> <th>Attack</th> </tr>"; $cn = 0; $q = $db->query("SELECT `u`.*,`g`.* FROM `users` `u` LEFT JOIN `gangs` `g` ON `g`.`gangID`=`u`.`gang` WHERE `u`.`laston` > unix_timestamp()-200*720 ORDER BY `laston` DESC", $c); while ($r = $db->fetch_row($q)) { $lon = date('F j, Y g:i:s a', $r['laston']); $la = time() - $r['laston']; $unit = "secs"; if ($la >= 60) { $la = (int) ($la / 60); $unit = "mins"; } if ($la >= 60) { $la = (int) ($la / 60); $unit = "hours"; if ($la >= 24) { $la = (int) ($la / 24); $unit = "days"; } } $lb = time() - $r['last_login']; $units = "secs"; if ($lb >= 60) { $lb = (int) ($lb / 60); $units = "mins"; } if ($lb >= 60) { $lb = (int) ($lb / 60); $units = "hours"; if ($lb >= 24) { $lb = (int) ($lb / 24); $units = "days"; } } if ($r['laston'] <= time() - 200 * 720) { $lb = "offline"; $units = ""; } if ($r['donatordays']) { $d = "<img src='/images/donator.gif' width='15' alt='Donator: {$r['donatordays']} Days Left' title='Donator: {$r['donatordays']} Days Left' />"; } else { $d = ""; } if ($r['user_level'] > 1) { $staff = "<img src='images/staff.gif 'width='15' alt='Staff' title='Staff' />"; } else { $staff = ""; } if ($r['gang']) { $qg = $db->query("SELECT gangPREF FROM `gangs` WHERE `gangID` = {$r['gang']}", $c); $rr = $db->fetch_row($qg); $gn = "[" . $rr['gangPREF'] . "]"; } else { $gn = ""; } $cn++; if ($r['user_level'] == 2) { $user = "<font color='red'>{$r['username']}</font>"; } else if ($r['user_level'] == 3) { $user = "<font color='blue'>{$r['username']}</font>"; } else if ($r['user_level'] == 4) { $user = "<font color='green'>{$r['username']}</font>"; } else if ($r['user_level'] == 5) { $user = "<font color='cyan'>{$r['username']}</font>"; } else if ($r['user_level'] == 6) { $user = "<font color='#1E90FF'>{$r['username']}</font>"; } else if ($r['donatordays']) { $user = "<font color='#008B8B'>{$r['username']}</font>"; } else { $user = "{$r['username']}"; } echo "<tr><td>$cn. </td><td>$gn <a href='viewuser.php?u={$r['userid']}'>$user</a> $d $staff</td><td>($la $unit)</td><td>({$lb} {$units})</td><td>{$r['level']}</td><td><a href='mailbox.php?action=compose&ID={$r['userid']}'>Mail</a></td><td><a href='attack.php?ID={$r['userid']}'>Attack</a></td></tr>"; } echo "</table>"; } echo "<hr width='100%'><a href='index.php'>$goback</a><hr width='100%'>"; $h->endpage(); ?>   Then add to PHPMyAdmin Code: CREATE TABLE records ( recid INT(6) AUTO_INCREMENT PRIMARY KEY, rec15 INT(6) NOT NULL DEFAULT 0, rec30 INT(6) NOT NULL DEFAULT 0, rec24 INT(6) NOT NULL DEFAULT 0, rec60 INT(6) NOT NULL DEFAULT 0 ); That is the full upload for default Mccodes v2 then after you need to change the images for staff and donator to the pictures on your file manager
  4. The strength now works but labour doesn't
  5. Do you know how to fix it?
  6. $statnames=array( 'Strength' => 'strength', 'Agility' => 'agility', 'Labour ' => 'labour', 'Guard' => 'guard'); I got the strength training to work but now it will not let me train my Labour it just says cannot train stat...
  7. As you can see I have edited my game.css exactly the same as my login and register.css them 2 have worked perfectly fine but game.css has become an issue as the middle of my pages stay white... Below is a screenshot, I cannot upload the file for .css as it won't let me but where am i going wrong here? Also how do i get the game to fill up the whole page? as it only covers the middle of the page due to v2 default settings
  8.   Ill give it a shot thanks Mcfarlin! +1
  9. Hi fellow coders, got a little issue with a Gym mod for V2 everything works ok except when i attempt to train my strength i get this error when i turn debug on Line executed: /home/colleg30/public_html/gym.php:22 This stat cannot be trained. Below is lines 20-30 if($_POST['stat'] && $_POST['amnt']) { $stat=$statnames[$_POST['stat']]; if(!$stat); { die("This stat cannot be trained."); } if($_POST['amnt'] > $ir['energy']) { print("You do not have enough energy to train that much.<hr />"); What is my issue? everything else is ok?
  10. Tell me about it do you have or does anyone you know have maybe a mod that changes the create a crime function to set crime pass based on level or stats??
  11. Hi guys does anyone know how the sums on creating crimes work? I've never been good at mathematics lol Thanks in advance guys
  12. Thanks for that Mcfarlin I will give it a shot
  13. Does anyone have the codes for cronless crons? for some reason x10hosting does not allow mccodes default crons to run :/ Running Mccodes v2 thanks in advance guys
  14. I'm still confused on how to install this? have you got an instructions.txt for this? sorry for my stupidity lol
  15. Thanks for getting back to me, is there an engine where you simple install then to add new items, shops, cities etc. via a staff menu rather than a mysql query
×
×
  • Create New...