Jump to content
MakeWebGames

Neji_Hyuuga

Members
  • Posts

    46
  • Joined

  • Last visited

    Never

Everything posted by Neji_Hyuuga

  1. Re: need help with a code the cron_min code   what host is it ???
  2. the host im using does not allow u to use the cron_min witch make the hospital and jail time work and go down is there any way of making that work without using the cron_min like add wot happens in teh cron_min in the cron_fivemin
  3. Re: Need Help With My Staff List got it now mate cheers for the help i really do appreciate it
  4. Re: Need Help With My Staff List thanks mate for that but it only shows me wot the admins have in crystals and donator days mate how do i make it so secretary and assistant have that as well
  5. <?php include "globals.php"; $staff=array(); $q=$db->query("SELECT * FROM users WHERE user_level IN(2,3,5) ORDER BY userid ASC"); while($r=$db->fetch_row($q)) { $staff[$r['userid']]=$r; } print "[b]Admins[/b] <table width=75% cellspacing=1 class='table'> <tr style='background:silver'><th>User</th> <th>Level</th> <th>Money</th> <th>Last Seen</th> <th>Status</th> </tr>"; foreach($staff as $r) { if($r['user_level']==2) { if($r['laston'] >= time()-15*60) { $on="<font color=green>[b]Online[/b]</font>"; } else { $on="<font color=red>[b]Offline[/b]</font>"; } print "<tr> <td>[url='viewuser.php?u={$r[']{$r['username']}[/url] [{$r['userid']}]</td> <td>{$r['level']}</td> <td>\${$r['money']}</td> <td>".date('F j, Y, g:i:s a',$r['laston'])."</td> <td>$on</td> </tr>"; } } print "</table>"; print "[b]Secretaries[/b] <table width=75% cellspacing=1 class='table'> <tr style='background:silver'><th>User</th> <th>Level</th> <th>Money</th> <th>Last Seen</th> <th>Status</th> </tr>"; foreach($staff as $r) { if($r['user_level']==3) { if($r['laston'] >= time()-15*60) { $on="<font color=green>[b]Online[/b]</font>"; } else { $on="<font color=red>[b]Offline[/b]</font>"; } print "<tr> <td>[url='viewuser.php?u={$r[']{$r['username']}[/url] [{$r['userid']}]</td> <td>{$r['level']}</td> <td>\${$r['money']}</td> <td>".date('F j, Y, g:i:s a',$r['laston'])."</td> <td>$on</td> </tr>"; } } print "</table>"; print "[b]Assistants[/b] <table width=75% cellspacing=1 class='table'> <tr style='background:silver'><th>User</th> <th>Level</th> <th>Money</th> <th>Last Seen</th> <th>Status</th> </tr>"; foreach($staff as $r) { if($r['user_level']==5) { if($r['laston'] >= time()-15*60) { $on="<font color=green>[b]Online[/b]</font>"; } else { $on="<font color=red>[b]Offline[/b]</font>"; } print "<tr> <td>[url='viewuser.php?u={$r[']{$r['username']}[/url] [{$r['userid']}]</td> <td>{$r['level']}</td> <td>\${$r['money']}</td> <td>".date('F j, Y, g:i:s a',$r['laston'])."</td> <td>$on</td> </tr>"; } } print "</table>"; $h->endpage(); ?>   i need help with this if someone could help me with it it shows the amount of money my staff has and there levels i want so it shows there crystals and donator days can anyone help with that please
  6. Re: [mccode v2] News Paper Ads no sql works nicely mate thanks for the mod i have been meaning to get a new newspaper for my game
  7. Re: Donator only crystal temple code dont work i get 6 errors wot is it for v1 or v2 games
  8. Primary Weapon Nuclear Bomb Unequip Item Secondary Weapon Gatling Gun Unequip Item Armor Ultimate Body Armor Unequip Item <?php /*----------------------------------------------------- -- RentASpy V2 -- Coded by Zero-Affect -----------------------------------------------------*/ include "globals.php"; if(!$ir['donatordays']) { die("You have to be a donator to do this!"); } $q=mysql_query("SELECT * FROM users WHERE userid={$_GET['ID']}",$c); $r=mysql_fetch_array($q); if($_GET['ID']==$userid) { die("Wow some people are stupid trying to spy on yourself wont work here sorry."); } if($_GET['ID'] && $_GET['PAID']) { $cost=$r['level']*10000; if($_GET['PAID']!=$cost) { die("Quit trying to abuse bugs."); } if($_GET['PAID']>$ir['money']) { die("You don't have enough cash to rent a spy on {$r['username']}."); } $rand=rand(1,15); if($rand==1) { $lk=mysql_query("SELECT * FROM users WHERE userid=$userid",$c); $n=mysql_fetch_array($lk); mysql_query("UPDATE users SET money=money-{$_GET['PAID']} WHERE userid=$userid",$c); print "[b]Your spy has been caught. Your name may have been mentioned.[/b]"; event_add($_GET['ID'],"<a href=viewuser.php?u=$userid>{$n['username']}</a> tried to rent a spy on you but failed.",$c); } else { $sta=mysql_query("SELECT * FROM userstats WHERE userid={$_GET['ID']}",$c); $sats=mysql_fetch_array($sta); $st=mysql_query("SELECT * FROM userstats WHERE userid=$userid",$c); $stats=mysql_fetch_array($st); $we=mysql_query("SELECT * FROM items WHERE itmid={$r['equip_primary']}",$c); $pri=mysql_fetch_array($we); $we1=mysql_query("SELECT * FROM items WHERE itmid={$r['equip_secondary']}",$c); $sey=mysql_fetch_array($we1); $we2=mysql_query("SELECT * FROM items WHERE itmid={$r['equip_armor']}",$c); $arm=mysql_fetch_array($we2); if($pri['itmname'] == '') { $prim="None"; } else { $prim="{$pri['itmname']}"; } if($sey['itmname'] == '') { $secon="None"; } else { $prim="{$sey['itmname']}"; } if($arm['itmname'] == '') { $arm="None"; } else { $prim="{$arm['itmname']}"; } if($sats['strength'] > $stats['strength']) { $stren="<font color=red>Weaker</font>"; } elseif($sats['strength'] == $stats['strength']) { $stren="<font color=blue>Equal</font>"; } else { $stren="<font color=green>Stronger</font>"; } if($sats['agility'] > $stats['agility']) { $agility="<font color=red>Weaker</font>"; } elseif($sats['agility'] == $stats['agility']) { $agility="<font color=blue>Equal</font>"; } else { $agility="<font color=green>Stronger</font>"; } if($sats['guard'] > $stats['guard']) { $guard="<font color=red>Weaker</font>"; } elseif($sats['guard'] == $stats['guard']) { $guard="<font color=blue>Equal</font>"; } else { $guard="<font color=green>Stronger</font>"; } if($sats['labour'] > $stats['labour']) { $labour="<font color=red>Weaker</font>"; } elseif($sats['labour'] == $stats['labour']) { $labour="<font color=blue>Equal</font>"; } else { $labour="<font color=green>Stronger</font>"; } if($sats['IQ'] > $stats['IQ']) { $IQ="<font color=red>Weaker</font>"; } else if($sats['IQ'] == $stats['IQ']) { $IQ="<font color=blue>Equal</font>"; } else { $IQ="<font color=green>Stronger</font>"; } print "<table width='75%' border='1' class='h'><tr><th>Primary</th> <th>Secondary</th><th>Armor</th></tr> <tr><td>$prim</td><td>$secon</td><td>$arm</td></tr></table>"; mysql_query("UPDATE users SET money=money-{$_GET['PAID']} WHERE userid=$userid",$c); print "<table width='75%' border='1' class='h'><tr><th>Stats</th> <th>Your Stats</th><th>Compare</th></tr> <tr><td>Strength: {$sats['strength']}</td><td>Strength: {$stats['strength']}</td><td><center>[b]$stren[/b]</center></td></tr> <tr><td>Agility: {$sats['agility']}</td><td>Agility: {$stats['agility']}</td><td><center>[b]$agility[/b]</center></td></tr> <tr><td>Guard: {$sats['guard']}</td><td>Guard: {$stats['guard']}</td><td><center>[b]$guard[/b]</center></td></tr> <tr><td>Labour: {$sats['labour']}</td><td>Labour: {$stats['labour']}</td><td><center>[b]$labour[/b]</center></td></tr> <tr><td>IQ: {$sats['IQ']}</td><td>IQ: {$sats['IQ']}</td><td><center>[b]$IQ[/b]</center></td></tr></table> <table width='75%' border='1'><tr><td><center>[url='attack.php?ID={$_GET['][b]Attack?[/b][/url]</center></td></tr></table>"; print "<table width='45%' border='1' class='h'><tr><th>$$$</th><th>Misc</th></tr> <tr><td>Money {$r['money']}</td><td>Rating: {$r['rating']}</td></tr> <tr><td>Bank Money: {$r['bankmoney']}</td><td>Crime exp: {$r['crimexp']}</td></tr> <tr><td>Nuggets {$r['crystals']}</td><td>Level: {$r['level']}</td></tr></table>"; print "<table width='75%' border='1' class='h'><tr><th>Name</th> <th>Ammount</th></tr>"; $z=mysql_query("SELECT * FROM inventory WHERE inv_userid={$_GET['ID']} ORDER BY inv_itemid DESC"); while($e=mysql_fetch_array($z)) { $t=mysql_query("SELECT * FROM items WHERE itmid={$e['inv_itemid']}",$c); $itm=mysql_fetch_array($t); print "\n<tr><td>[b]{$itm['itmname']}[/b]</td><td>[b]{$e['inv_qty']}[/b]</td></tr>"; } print "</table> >[url='viewuser.php?u={$_GET[']Back To Profile.[/url]</br> Created By Zero-Affect"; } } else if($_GET['ID']) { $cost=$r['level']*10000; print "[b]You are hiring a spy on {$r['username']}[/b] It will cost you $$cost for the spys expenses. But be warned spying is not always 100% successful. <form action='rentaspy.php' method='get'> <input type='hidden' name='ID' value='{$_GET['ID']}' /> <input type='hidden' name='PAID' value='$cost' /> <input type='submit' value='Hire Spy'/></form>"; } $h->endpage(); ?> can anyone help me so it says wot the primary weapon , secondary weapons are when the user has them and the armor please
  9. Re: Crystal Market - Buy Amount of Crystals, Not All i got it to add mate but when i went on the cmarket i had to click on buy to type in a amount of how many i wanted and then once i typed in the box i got a query error but it still let me buy the crystals how do i stop that error can anyone plz help me with it
  10. Re: [mccode] Multi IP Prevention i need help with a multi stopper i add the one on this post and it stops everyone signing up even if its there first time playing my game can anyone help me
  11. Re: Crystal Market - Buy Amount of Crystals, Not All i added it mate but it was still like the normal cmarket for me mate i never got to option to buy a certain amount of them
  12. Re: [Other] Disable Register(not technicaly disabled) this seems like a alright mod to stop people joining up for a game till everything is ready on it nice idea mate :lol:
  13. Re: [mccode v2] Advanced RentASpy cheers for the mod i like having this on my game
  14. Re: [requests] Weapon & Armor Qualitys, & Bonuses wow mate that looks like some code to make and looks to be a good one once its made i be tthat took u a while to think of
  15. Re: [mccode v2] Staff Applications where do i find that then mate
  16. Re: [mccode v2] Another New Mailbox thanks mate works fine for me now i finally found a better mailbox than wot u get started with when u install a ame thats too cramped up this is much better spaces them out and everything
  17. Re: [mccode v2] Staff Applications if i use the orginal staff apps will i still be able to lock it and unlock it
  18. Re: [mccode] Reset your users without deleating them im looking for a rest code that when done it also resets wots in ur inventory like : items , and wots weapons , armor u have eqipped can anyone help me with this
  19. Re: [mccode v2] Staff Applications nice mod i like this staff app's better than any other one i added and i got it in right to where the links are but when i go in staff panel and unlock it and go back to the game to see if it works i get a white screen saying NOT FOUND
×
×
  • Create New...