Jump to content
MakeWebGames

HITMAN 17

Members
  • Posts

    1,145
  • Joined

  • Last visited

Everything posted by HITMAN 17

  1. Re: Hosp And Jail Change Background error $back = (($ir['jail'])) ? "#FF9900" : "#CCCCCC"; $back = (($ir['hospital'])) ? "#FFFFFF" : "#CCCCCC"; this should work but dont
  2. Re: Looking for a one click attack system that works with V2 theres one already on here just search bud
  3. Re: [mccode] Icons i cant get this to work at all i really need it in header under the bars
  4. Re: Battle ladder [Mccodes V2] nice mod richard but please fix and secure your other mods
  5. Re: [self Made] New Login Page btw i dont think this is mccodes as dbconnect.php
  6. Re: Inventory Help nope that didnt work :?
  7. Re: Inventory Help ok mate cheers
  8. Re: Inventory Help why post here then if you dont know jesus man
  9. <?php include "globals.php"; $q=$db->query("SELECT * FROM items WHERE itmid IN({$ir['equip_primary']}, {$ir['equip_secondary']}, {$ir['equip_armor']})"); print "<h3>Equipped Items</h3><hr />"; while($r=$db->fetch_row($q)) { $equip[$r['itmid']]=$r; } print "<table width='75%' cellspacing='1' class='table'> <tr> <th>Primary Weapon</th> <td>"; if($equip[$ir['equip_primary']]['itmid']) { print $equip[$ir['equip_primary']]['itmname']."</td><td>[img=".$r[]</td><td>[url='unequip.php?type=equip_primary']Unequip Item[/url]</td>"; } else { print "None equipped.</td><td> </td>"; } print "</tr> <tr> <th>Secondary Weapon</th> <td>"; if($equip[$ir['equip_secondary']]['itmid']) { print $equip[$ir['equip_secondary']]['itmname']."</td><td>[img=".$r[]</td><td>[url='unequip.php?type=equip_secondary']Unequip Item[/url]</td>"; } else { print "None equipped.</td><td> </td>"; } print "</tr> <tr> <th>Armor</th> <td>"; if($equip[$ir['equip_armor']]['itmid']) { print $equip[$ir['equip_armor']]['itmname']."</td><td>[url='unequip.php?type=equip_armor']Unequip Item[/url]</td>"; } else { print "None equipped.</td><td> </td>"; } print "</tr> </table><hr /> <h3>Inventory</h3><hr />"; $inv=$db->query("SELECT iv.*,i.*,it.* FROM inventory iv LEFT JOIN items i ON iv.inv_itemid=i.itmid LEFT JOIN itemtypes it ON i.itmtype=it.itmtypeid WHERE iv.inv_userid={$userid} ORDER BY i.itmtype ASC, i.itmname ASC"); if ($db->num_rows($inv) == 0) { print "[b]You have no items![/b]"; } else { print "[b]Your items are listed below.[/b] <table width=100% class=\"table\" border=\"0\" cellspacing=\"1\"> <tr> <td class=\"h\">Item</td> <td class=\"h\">Sell Value</td> <td class=\"h\">Total Sell Value</td> <td class=\"h\">Links</td> </tr>"; $lt=""; while($i=$db->fetch_row($inv)) { if($lt!=$i['itmtypename']) { $lt=$i['itmtypename']; print "\n<tr><td colspan=4>[b]{$lt}[/b]</td></tr>"; } if($i['weapon']) { $i['itmname']="<font color='red'>*['itmpic']</font>".$i['itmname']; } if($i['armor']) { $i['itmname']="<font color='green'>*</font>".$i['itmname']; } print "<tr><td>{$i['itmname']}"; if ($i['inv_qty'] > 1) { print " x{$i['inv_qty']}"; } print "</td><td>\${$i['itmsellprice']}</td><td>"; print "$".($i['itmsellprice']*$i['inv_qty']); print "</td><td>[[url='iteminfo.php?ID={$i[']Info[/url]] [[url='itemsend.php?ID={$i[']Send[/url]] [[url='itemsell.php?ID={$i[']Sell[/url]] [[url='imadd.php?ID={$i[']Add To Market[/url]]"; if($i['effect1_on'] || $i['effect2_on'] || $i['effect3_on']) { print " [[url='itemuse.php?ID={$i[']Use[/url]]"; } if($i['weapon']) { print " [[url='equip_weapon.php?ID={$i[']Equip as Weapon[/url]]"; } if($i['armor']) { print " [[url='equip_armor.php?ID={$i[']Equip as Armor[/url]]"; } print "</td></tr>"; } print "</table>"; print "[size="1"][b]NB:[/b] Items with a small red [/size]<font color='red'>*</font>[size="1"] next to their name can be used as weapons in combat. Items with a small green [/size]<font color='green'>*</font>[size="1"] next to their name can be used as armor in combat.[/size]"; } $h->endpage(); ?> ok that is my inventory paddy has added item pic so it shows when equipped but the pictures wont show all i get is Primary Weapon Hammer item pic Unequip Item
  10. Re: [MCCODES V2] User Holidays script i mean travel what ever lol
  11. Re: [MCCODES V2] User Holidays script also do it like tc where you can only do some stuff when on holiday like hunting
  12. Re: [MCCODES V2] Fully Customise your game layout i like it really easy to use and cool Fatal error: Call to undefined function index() in /home/proxymai/public_html/game/gamelayout.php on line 7
  13. can someone make item pic loke primary secoundary and armor pictures when equipped please
  14. if($ir['jail'] > 1) { $back = "#FF0000"; } else if($ir['hospital'] > 1) { $back = "#FF0000";} else { $back = "#CCCCCC"; } this is not working can someone help me fix please
  15. Re: Joinable Organised Crimes Are you still selling this
  16. Re: [Free] TownView   <?php require("mysql.php"); include("globals.php"); $query = mysql_query( sprintf("SELECT `userid` FROM `users` WHERE (`location` = %u)", $ir['location'])); $p = mysql_num_rows($query); $pages = abs(@intval(( ($p / 10) + 1 ))); if ($p % 10 == 0) { $pages--; } echo '<center> <form action="'.$_SERVER['PHP_SELF'].'" method="POST">Page:<select name="page">'; // Pages while ($pages = mysql_fetch_object($query)) { for($i=1; $i <= $pages; $i++) { $pa = ($i-1) * 10; echo '<option value="'.$pa.'">'.$pa.'</option>'; } } echo '</select><input type="submit" name="submit" value="Go To!" /></form> </center><table width="100%"> <tr><th>Name</th> <th>Level</th><th>Money</th><th>Gender</th><th>Online</th><th>In Jail</th> <th>In Hosp</th></tr>'; $pag = abs(@intval($_POST['page'])); $limit_a = 0; $limit_b = 10; if (isset($_POST['page'])) { $limit_a = $_POST['page'] * 10; $limit_b = $limit_a + 10; } $this_q = sprintf('SELECT username,userid,level,money,gender,laston,hospital,jail FROM `users` WHERE `location` = ("%u") ORDER BY userid ASC LIMIT %u , %u', $ir['location'], $limit_a, $limit_b); $this_qu = mysql_query($this_q) or die (mysql_error()); if(!mysql_num_rows($this_qu)) { echo 'You are the only person in this location'; } else { while($ud = mysql_fetch_object($this_qu)) { if ($ud->laston > unix_timestamp-15*60) { $status = 'Online'; } else { $status = 'Offline'; } if ($ud->jail > 0) { $jail = 'Yes'; } else { $jail = 'No'; } if ($ud->hospital > 0) { $hosp = 'Yes'; } else { $hosp = 'No'; } echo ' <tr> <td>' . $ud->username . ' [' . $ud->userid . ']</td> <td>' . number_format($ud->level, "") . '</td> <td>'. money_formatter($ud->money) .'</td> <td>'. $ud->gender .'</td> <td>'. $status .'</td> <td>'. $jail .'</td> <td>'. $hosp .'</td>'; echo '</tr>'; } } echo '</table>'; $h->endpage(); ?> Fixed problem is it always says online when there not online
  17. Re: Cron Problem Ino paddy did and I'm buying it off paddy
  18. Re: Cron Problem i dont get an event can someone try to help me
  19. Re: [mccode] Crystal Market - Buy Amount of Crystals, Not All great if mod actually worked
  20. Re: Cron Problem I got the cron just about fixed now the cron dont work can someone help me please cheers
  21. Re: Cron Problem http://criminalexistence.com/ceforums/i ... ile;u=3902 thats the guy who made and he will not fix at all
  22. Re: Cron Problem i have now
  23. Re: Cron Problem   $USelectResult=$db->query("SELECT * FROM users WHERE CurrentCrime>0") or die ($db->error()); while ($U=$db->fetch_row($USelectResult)) { $db->query("UPDATE users SET CrimeTime=CrimeTime-1 WHERE userid={$U['userid']} AND CrimeTime>0") or die ($db->error()); if ($U['CrimeTime'] == 0) { $C1=$db->query("SELECT * FROM Crimes WHERE cID={$U['CurrentCrime']}") or die ($db->error()); $C=$db->fetch_row($C1) or die ($db->error()); $db->query("UPDATE users SET CurrentCrime = 0 WHERE userid = {$U['userid']}") or die ($db->error()); $SuccessPercent = $C['cSUCCESSPERC']; $SuccessPerc = rand(1,100); if($SuccessPercent >= $SuccessPerc) { $MoneyGain = rand($C['cMINCASH'],$C['cMAXCASH']); $db->query("UPDATE users SET money=money+{$MoneyGain} WHERE userid={$U['userid']}") or die ($db->error()); $db->query("UPDATE userstats SET labour=labour+{$C['cLABOUR']}, IQ=IQ+{$C['cIQ']} WHERE userid={$U['userid']}") or die ($db->error()); $AlertInsert="INSERT INTO events ('', {$U['userid']}, unix_timestamp(), 0, '<font color=green><h4>Crime Complete</h4></font><table border=0> <tr> <td>Cash Gained:</td> <td>\${$MoneyGain}</td> </tr> <tr> <td>IQ Gained:</td> <td>{$C['cIQ']}</td> </tr> <tr> <td>Labour Gained:</td> <td>{$C['cLABOUR']}</td> </tr> <tr colspan=2> <td colspan=2>Complete Speech:</td> </tr> <tr colspan=2> <td colspan=2>[size="1"]{$C['cCOMPLETETEXT']}[/size]</td> </tr> </table>')"; $AlertInsertSub=$db->query($AlertInsert) or die (mysql_error()); } else { $Chance = rand(1,2); if ($Chance == 1) { $AlertInsert="INSERT INTO events ('', {$U['userid']}, unix_timestamp(), 0, '<font color=red><h4>Crime Failed</h4></font>')"; $AlertInsertSub=$db->query($AlertInsert) or die (mysql_error()); } if ($Chance == 2) { $AlertInsert="INSERT INTO events ('', {$U['userid']}, unix_timestamp(), 0, '<font color=red><h4>Crime Failed</h4></font>[b]')"; $AlertInsertSub=$db->query($AlertInsert) or die (mysql_error()); } } } }
  24. $USelectResult=$db->query("SELECT * FROM users WHERE CurrentCrime>0") or die ($db->error()); while ($U=$db->fetch_row($USelectResult)) { $db->query("UPDATE users SET CrimeTime=CrimeTime-1 WHERE userid={$U['userid']} AND CrimeTime>0") or die ($db->error()); if ($U['CrimeTime'] == 0) { $C1=$db->query("SELECT * FROM Crimes WHERE cID={$U['CurrentCrime']}") or die ($db->error()); $C=$db->fetch_row($C1) or die ($db->error()); $db->query("UPDATE users SET CurrentCrime = 0 WHERE userid = {$U['userid']}") or die ($db->error()); $SuccessPercent = $C['cSUCCESSPERC']; $SuccessPerc = rand(1,100); if($SuccessPercent >= $SuccessPerc) { $MoneyGain = rand($C['cMINCASH'],$C['cMAXCASH']); $db->query("UPDATE users SET money=money+{$MoneyGain} WHERE userid={$U['userid']}") or die ($db->error()); $db->query("UPDATE userstats SET labour=labour+{$C['cLABOUR']}, IQ=IQ+{$C['cIQ']} WHERE userid={$U['userid']}") or die ($db->error()); event_add("INSERT INTO events ('', {$U['userid']}, unix_timestamp(), 0, '<font color=green><h4>Crime Complete</h4></font><table border=0> <tr> <td>Cash Gained:</td> <td>\${$MoneyGain}</td> </tr> <tr> <td>IQ Gained:</td> <td>{$C['cIQ']}</td> </tr> <tr> <td>Labour Gained:</td> <td>{$C['cLABOUR']}</td> </tr> <tr colspan=2> <td colspan=2>Complete Speech:</td> </tr> <tr colspan=2> <td colspan=2>[size="1"]{$C['cCOMPLETETEXT']}[/size]</td> </tr> </table>')"; $AlertInsertSub=$db->query($AlertInsert) or die (mysql_error()); } else { $Chance = rand(1,2); if ($Chance == 1) { event_add("INSERT INTO events ('', {$U['userid']}, unix_timestamp(), 0, '<font color=red><h4>Crime Failed</h4></font>')"; $AlertInsertSub=$db->query($AlertInsert) or die (mysql_error()); } if ($Chance == 2) { event_add("INSERT INTO events ('', {$U['userid']}, unix_timestamp(), 0, '<font color=red><h4>Crime Failed</h4></font>[b]')"; $AlertInsertSub=$db->query($AlertInsert) or die (mysql_error()); } } } } ?> i have this cron and it is not working like it does not send an event or credit anyone can someone please help or fix thankyou
  25. Re: Thank a CE mccode Mod Developer Day A BIG THANKYOU TO EVERYONE WHO HAS MADE A MOD THANK YOU
×
×
  • Create New...