
HITMAN 17
Members-
Posts
1,145 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by HITMAN 17
-
Re: Halloffame Playing up yes i am using my one mate
-
Parse error: syntax error, unexpected ';', expecting T_FUNCTION in /home/thedestr/public_html/header.php on line 445 This Is The Code I Added To Header if($ir['mission'] != 0) { $mq=$db->query("SELECT * FROM missions WHERE id=".$ir['mission']."",$c); if($db->num_rows($mq)== 0) { $db->query("UPDATE users SET mission=0 WHERE userid=".$userid."",$c); } $rm=$db->fetch_row($mq); if($rm['location_on']== 1) { if($rm['location_value'] != $ir['location']) { $db->query("UPDATE users SET mission=0 WHERE userid=".$userid."",$c); event_add($ir['userid'],"Your mission has been ended because you have moved city.",$c); } } if($rm['item_on']== 1 && $rm['attack_on']== 0) { $invq=$db->query("SELECT * FROM inventory WHERE inv_userid=".$userid." AND inv_itemid=".$rm['item_value']."",$c); if($db->num_row($invq)) { $exp=rand($ir['level'],$ir['level']*5); $db->query("UPDATE users SET mission=0, money=money+".$rm['money'].", crystals=crystals+".$rm['crystals'].", exp=exp+".$exp.", mission_counter=mission_counter+'1' WHERE userid=".$userid."",$c); $mission=($ir['mission']); $db->query("INSERT INTO missdone VALUES ($userid,$mission);",$c); $db->query("DELETE FROM inventory WHERE inv_userid=$userid AND inv_itemid=".$rm['item_value']."",$c); event_add($ir['userid'],"You have completed the mission and you was credited your reward.",$c); } } if($rm['item_on']== 0 && $rm['attack_on']== 0) { $db->query("UPDATE users SET mission=0 WHERE userid=".$userid."",$c); $owner=1; event_add($owner,"The mission $rm[name] mission ($rm[id]) is not set to a mission, Please do so.",$c); } if($rm['item_on']== 0 && $rm['attack_on']== 1) { $usa=$_SESSION['mission_attack']; $aa=$db->query("SELECT * FROM missions WHERE id=".$ir['mission']." AND attack_value=".$_SESSION['mission_attack']."",$c); if($db->num_rows($aa)) { $exp=rand($ir['level'],$ir['level']*10); $db->query("UPDATE users SET mission=0, money=money+".$rm['money'].", crystals=crystals+".$rm['crystals'].", exp=exp+".$exp.", mission_counter=mission_counter+'1' WHERE userid=".$userid."",$c); $mission=($ir['mission']); $db->query("INSERT INTO missdone VALUES ($userid,$mission);",$c); event_add($ir['userid'],"You have completed the mission and you was credited your reward.",$c); } } Line Of Error ?>
-
Re: Halloffame Playing up i get same 1 The_Legend [1] 21 2 Sniper2k8 [2] 21 3 lambo_68 [4] 21 4 cole32 [5] 21 5 kingpin [7] 21 6 MR_BEAN_LADEN [8] 21 7 kalador [9] 21 8 Terry [10] 21 9 Zagger [12] 21 10 Kiss [13] 21 11 HandOfBlood [14] 21 12 Kaisha [15] 21 13 gearsofwar2 [16] 21 14 Dante [18] 21 15 dodgeydom [21] 21 16 -bpg- [23] 21 17 Blaze [24] 21 18 TheHeadliner [25] 21 19 cobra [26] 21 20 blaz [27] 21
-
Re: Jailbust How Do I.. im going to stop replying to these silly topics and like other people say i like learning off other people instead off reading
-
Re: Halloffame Playing up now it dosnt show busts at all
-
<?php include "globals.php"; $filters=array( 'nodon' => 'AND donatordays=0', 'don' => 'AND donatordays > 0', 'all' => ''); $filter=(isset($filters[$_GET['filter']])) ? $_GET['filter'] : 'all'; $myf=$filters[$filter]; $bt1=($filter=="nodon") ? "[b]" : ""; $bet1=($filter=="nodon") ? "[/b]" : ""; $bt2=($filter=="don") ? "[b]" : ""; $bet2=($filter=="don") ? "[/b]" : ""; $bt3=($filter=="all") ? "[b]" : ""; $bet3=($filter=="all") ? "[/b]" : ""; print "<h3>Hall Of Fame</h3><hr /> Filter: [$bt1[url='halloffame.php?action={$_GET[']Non-Donators[/url]$bet1 | $bt2[url='halloffame.php?action={$_GET[']Donators[/url]$bet2 | $bt3[url='halloffame.php?action={$_GET[']All Users[/url]$bet3]<hr /> <table width=75% cellspacing=1 class='table'> <tr> <td>[url='halloffame.php?action=level&filter={$filter}']LEVEL[/url]</td> <td>[url='halloffame.php?action=money&filter={$filter}']MONEY[/url]</td> <td>[url='halloffame.php?action=respect&filter={$filter}']RESPECT[/url]</td> <td>[url='halloffame.php?action=crystals&filter={$filter}']CRYSTALS[/url]</td> <td>[url='halloffame.php?action=busts&filter={$filter}']Busts[/url]</td> <td>[url='halloffame.php?action=total&filter={$filter}']TOTAL STATS[/url]</td> </tr> <tr> <td>[url='halloffame.php?action=strength&filter={$filter}']STRENGTH[/url]</td> <td>[url='halloffame.php?action=agility&filter={$filter}']AGILITY[/url]</td> <td>[url='halloffame.php?action=guard&filter={$filter}']GUARD[/url]</td> <td>[url='halloffame.php?action=labour&filter={$filter}']LABOUR[/url]</td> <td>[url='halloffame.php?action=iq&filter={$filter}']IQ[/url]</td> </tr> </table>"; switch($_GET['action']) { case "level": hof_level(); break; case "money": hof_money(); break; case "crystals": hof_crystals(); break; case "busts": hof_busts(); break; case "respect": hof_respect(); break; case "total": hof_total(); break; case "strength": hof_strength(); break; case "agility": hof_agility(); break; case "guard": hof_guard(); break; case "labour": hof_labour(); break; case "iq": hof_iq(); break; } function hof_level() { global $db,$ir,$c,$userid, $myf; print "Showing the 20 users with the highest levels <table width=75% cellspacing=1 class='table'><tr style='background:gray'> <th>Pos</th> <th>User</th> <th>Level</th> </tr>"; $q=$db->query("SELECT u.*,g.* FROM users u LEFT JOIN gangs g ON g.gangID=u.gang WHERE u.user_level != 0 $myf ORDER BY level DESC,userid ASC LIMIT 20"); $p=0; while($r=$db->fetch_row($q)) { $p++; if($r['userid'] == $userid) { $t="[b]";$et="[/b]"; } else { $t="";$et=""; } print "<tr> <td>$t$p$et</td> <td>$t{$r['gangPREF']} {$r['username']} [{$r['userid']}]$et</td> <td>$t{$r['level']}$et</td> </tr>"; } print "</table>"; } function hof_money() { global $db,$ir,$c,$userid, $myf; print "Showing the 20 users with the highest amount of money <table width=75% cellspacing=1 class='table'><tr style='background:gray'> <th>Pos</th> <th>User</th> <th>Money</th> </tr>"; $q=$db->query("SELECT u.*,g.* FROM users u LEFT JOIN gangs g ON g.gangID=u.gang WHERE u.user_level != 0 $myf ORDER BY money DESC,userid ASC LIMIT 20"); $p=0; while($r=$db->fetch_row($q)) { $p++; if($r['userid'] == $userid) { $t="[b]";$et="[/b]"; } else { $t="";$et=""; } print "<tr> <td>$t$p$et</td> <td>$t{$r['gangPREF']} {$r['username']} [{$r['userid']}]$et</td> <td>$t\$".money_formatter($r['money'],'')."$et</td> </tr>"; } print "</table>"; } function hof_crystals() { global $db,$ir,$c,$userid, $myf; print "Showing the 20 users with the highest amount of crystals <table width=75% cellspacing=1 class='table'><tr style='background:gray'> <th>Pos</th> <th>User</th> <th>Crystals</th> </tr>"; $q=$db->query("SELECT u.*,g.* FROM users u LEFT JOIN gangs g ON g.gangID=u.gang WHERE u.user_level != 0 $myf ORDER BY crystals DESC,userid ASC LIMIT 20"); $p=0; while($r=$db->fetch_row($q)) { $p++; if($r['userid'] == $userid) { $t="[b]";$et="[/b]"; } else { $t="";$et=""; } print "<tr> <td>$t$p$et</td> <td>$t{$r['gangPREF']} {$r['username']} [{$r['userid']}]$et</td> <td>$t".money_formatter($r['crystals'],'')."$et</td> </tr>"; } print "</table>"; } function hof_busts() { global $db,$ir,$c,$userid, $myf; print "Showing the 20 users with the highest amount of Busts <table width=75% cellspacing=1 class='table'><tr style='background:gray'> <th>Pos</th> <th>User</th> <th>Busts</th> </tr>"; $q=$db->query("SELECT u.*,g.* FROM users u LEFT JOIN gangs g ON g.gangID=u.gang WHERE u.user_level != 0 $myf ORDER BY busts DESC,userid ASC LIMIT 20"); $p=0; while($r=$db->fetch_row($q)) { $p++; if($r['userid'] == $userid) { $t="[b]";$et="[/b]"; } else { $t="";$et=""; } print "<tr> <td>$t$p$et</td> <td>$t{$r['gangPREF']} {$r['username']} [{$r['userid']}]$et</td> <td>$t".money_formatter($r['busts'],'')."$et</td> </tr>"; } print "</table>"; } function hof_respect() { global $db,$ir,$c,$userid; print "Showing the 20 gangs with the highest amount of respect <table width=75% cellspacing=1 class='table'><tr style='background:gray'> <th>Pos</th> <th>Gang</th> <th>Respect</th> </tr>"; $q=$db->query("SELECT * FROM gangs ORDER BY gangRESPECT DESC,gangID ASC LIMIT 20"); $p=0; while($r=$db->fetch_row($q)) { $p++; if($r['gangID'] == $ir['gang']) { $t="[b]";$et="[/b]"; } else { $t="";$et=""; } print "<tr> <td>$t$p$et</td> <td>$t{$r['gangNAME']} [{$r['gangID']}]$et</td> <td>$t".money_formatter($r['gangRESPECT'],'')."$et</td> </tr>"; } print "</table>"; } function hof_total() { global $db,$ir,$c,$userid, $myf; print "Showing the 20 users with the highest total stats <table width=75% cellspacing=1 class='table'><tr style='background:gray'> <th>Pos</th> <th>User</th> </tr>"; $q=$db->query("SELECT u.*,g.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN gangs g ON g.gangID=u.gang WHERE u.user_level != 0 $myf ORDER BY (us.strength+us.agility+us.guard+us.labour+us.IQ) DESC,u.userid ASC LIMIT 20"); $p=0; while($r=$db->fetch_row($q)) { $p++; if($r['userid'] == $ir['userid']) { $t="[b]";$et="[/b]"; } else { $t="";$et=""; } print "<tr> <td>$t$p$et</td> <td>$t{$r['gangPREF']} {$r['username']} [{$r['userid']}]$et</td> </tr>"; } print "</table>"; } function hof_strength() { global $db,$ir,$c,$userid, $myf; print "Showing the 20 users with the highest strength <table width=75% cellspacing=1 class='table'><tr style='background:gray'> <th>Pos</th> <th>User</th> </tr>"; $q=$db->query("SELECT u.*,g.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN gangs g ON g.gangID=u.gang WHERE u.user_level != 0 $myf ORDER BY us.strength DESC,u.userid ASC LIMIT 20"); $p=0; while($r=$db->fetch_row($q)) { $p++; if($r['userid'] == $ir['userid']) { $t="[b]";$et="[/b]"; } else { $t="";$et=""; } print "<tr> <td>$t$p$et</td> <td>$t{$r['gangPREF']} {$r['username']} [{$r['userid']}]$et</td> </tr>"; } print "</table>"; } function hof_agility() { global $db,$ir,$c,$userid, $myf; print "Showing the 20 users with the highest agility <table width=75% cellspacing=1 class='table'><tr style='background:gray'> <th>Pos</th> <th>User</th> </tr>"; $q=$db->query("SELECT u.*,g.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN gangs g ON g.gangID=u.gang WHERE u.user_level != 0 $myf ORDER BY us.agility DESC,u.userid ASC LIMIT 20"); $p=0; while($r=$db->fetch_row($q)) { $p++; if($r['userid'] == $ir['userid']) { $t="[b]";$et="[/b]"; } else { $t="";$et=""; } print "<tr> <td>$t$p$et</td> <td>$t{$r['gangPREF']} {$r['username']} [{$r['userid']}]$et</td> </tr>"; } print "</table>"; } function hof_guard() { global $db,$ir,$c,$userid, $myf; print "Showing the 20 users with the highest guard <table width=75% cellspacing=1 class='table'><tr style='background:gray'> <th>Pos</th> <th>User</th> </tr>"; $q=$db->query("SELECT u.*,g.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN gangs g ON g.gangID=u.gang WHERE u.user_level != 0 $myf ORDER BY us.guard DESC,u.userid ASC LIMIT 20"); $p=0; while($r=$db->fetch_row($q)) { $p++; if($r['userid'] == $ir['userid']) { $t="[b]";$et="[/b]"; } else { $t="";$et=""; } print "<tr> <td>$t$p$et</td> <td>$t{$r['gangPREF']} {$r['username']} [{$r['userid']}]$et</td> </tr>"; } print "</table>"; } function hof_labour() { global $db,$ir,$c,$userid, $myf; print "Showing the 20 users with the highest labour <table width=75% cellspacing=1 class='table'><tr style='background:gray'> <th>Pos</th> <th>User</th> </tr>"; $q=$db->query("SELECT u.*,g.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN gangs g ON g.gangID=u.gang WHERE u.user_level != 0 $myf ORDER BY us.labour DESC,u.userid ASC LIMIT 20"); $p=0; while($r=$db->fetch_row($q)) { $p++; if($r['userid'] == $ir['userid']) { $t="[b]";$et="[/b]"; } else { $t="";$et=""; } print "<tr> <td>$t$p$et</td> <td>$t{$r['gangPREF']} {$r['username']} [{$r['userid']}]$et</td> </tr>"; } print "</table>"; } function hof_iq() { global $db,$ir,$c,$userid, $myf; print "Showing the 20 users with the highest IQ <table width=75% cellspacing=1 class='table'><tr style='background:gray'> <th>Pos</th> <th>User</th> </tr>"; $q=$db->query("SELECT u.*,g.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN gangs g ON g.gangID=u.gang WHERE u.user_level != 0 $myf ORDER BY us.IQ DESC,u.userid ASC LIMIT 20"); $p=0; while($r=$db->fetch_row($q)) { $p++; if($r['userid'] == $ir['userid']) { $t="[b]";$et="[/b]"; } else { $t="";$et=""; } print "<tr> <td>$t$p$et</td> <td>$t{$r['gangPREF']} {$r['username']} [{$r['userid']}]$et</td> </tr>"; } print "</table>"; } $h->endpage(); ?> I just tryed adding busts to halloffame and it worked sort of but every it says for everyone they have 17 busts when they have 0 Pos User Busts 1 The_Legend [1] 17 2 Sniper2k8 [2] 17 3 lambo_68 [4] 17 4 cole32 [5] 17 5 kingpin [7] 17 6 MR_BEAN_LADEN [8] 17 7 kalador [9] 17 8 Terry [10] 17 9 Zagger [12] 17 10 Kiss [13] 17 11 HandOfBlood [14] 17 12 Kaisha [15] 17 13 gearsofwar2 [16] 17 14 Dante [18] 17 15 dodgeydom [21] 17 16 -bpg- [23] 17 17 Blaze [24] 17 18 TheHeadliner [25] 17 19 cobra [26] 17 20 blaz [27] 17
-
Re: Jailbust How Do I.. Omg You Do Love Spamming Dont You
-
How Do I Make It Take Energy As All It Says Is That I Need Full Energy Please Can Someone Tell Me Code Cheers <?php include "globals.php"; if($ir['energy'] < 10) { die("Sorry, it costs 10 energy to bust someone. You only have {$ir['energy']} energy. Come back later."); } if($ir['jail']) { die("You cannot bust out people while in jail."); } $_GET['ID']=abs((int) $_GET['ID']); $r=$db->fetch_row($db->query("SELECT * FROM users WHERE userid={$_GET['ID']}")); if(!$r['userid']) { die("Invalid user"); } if(!$r['jail']) { die("That user is not in jail!"); } $mult=$r['level']*$r['level']; $chance=min(($ir['crimexp']/$mult)*50+1, 95); if(rand(1,100) < $chance) { $gain=$r['level']*5; print "You successfully busted {$r['username']} out of jail. > [url='jail.php']Back[/url]"; $db->query("UPDATE users SET crimexp=crimexp+{$gain} WHERE userid=$userid"); $db->query("UPDATE users SET jail=0 WHERE userid={$r['userid']}"); $db->query("UPDATE users SET busts=busts+1"); event_add($r['userid'], "[url='viewuser.php?u={$ir[']{$ir['username']}[/url] busted you out of jail.", $c); } else { print "While trying to bust out your friend, a guard spotted you and dragged you into jail yourself. Unlucky! > [url='jail.php']Back[/url]"; $time=min($mult, 20); $db->query("UPDATE users SET jail=$time, jail_reason='Caught trying to bust out {$r['username']}' WHERE userid=$userid"); event_add($r['userid'], "[url='viewuser.php?u={$ir[']{$ir['username']}[/url] was caught trying to bust you out of jail.", $c); } $h->endpage(); ?>
-
Re: [mccodes v2] arcade how does that work he is on a .co.cc but is using ipb which costs a lot
-
Re: [mccode] Free Starter Pack Parse error: syntax error, unexpected T_VARIABLE in /home/thedestr/public_html/starterkit.php on line 42 error on this line `donatorpack` = '%d'
-
Crons! Dont worry its not the usual question
HITMAN 17 replied to Dazza's topic in General Discussion
Re: Crons! Dont worry its not the usual question maybe the host didnt fix them -
[mccode v2] Very simple travel time mod.
HITMAN 17 replied to shaved92bravada's topic in Free Modifications
Re: [mccode v2] Very simple travel time mod. i really like this do you have the staff_cities.php which works with this mod which works for edit city and add city function also do you actually need to type in a time or does it do it randomly as i dont understand how this works -
[Request][Any Version] No Display Picture Mod
HITMAN 17 replied to HITMAN 17's topic in General Discussion
Re: [Request][Any Version] No Display Picture Mod thank you +1 to both of you -
i have an image which i would like to use instead of it saying No Display Picture I Want An Image Can Someone Give Me Code Please
-
my members keep telling me that there nerve bar sometimes go down to -7 can someone tell me what this might be as it isnt crons as i checked
-
Re: Crystal market exploit? QUERY ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 Query was INSERT INTO `cheater_catcher` VALUES ('', '2', '1' i got that
-
Re: [mccode v2] Fishing Mod by the way im getting people telling me from my game that its say that are gaining 67 exp when they gain like 10
-
Re: [mccode] jail/hosp shoutbox i didnt get that error but my one show at the bootom after the table ends
-
Re: [mccode] jail/hosp shoutbox i have added hosp shouts but still showing when someone is not in hosp but i only want to show when someone is in hosp the code i have at the moment is if($ir['hospital']>0 || $ir['user_level']==2) {include_once("hospchat.php");}
-
Re: [mccode v2] Slots i really like these slots and want to add them to my game so lease nyna can you add images back cheers :wink:
-
Re: [mccode v2] Items Pic mod o ok i might have a got to see if i can do it but i dont think i will
-
Re: [mccode v2] Items Pic mod i have a suggestion what about the images like on torncity where it shows your equipped weapons
-
Re: [MCV1]Crimes Need An Item illegal hahahaha
-
Re: [mccode v2] Simple Job Specials what part of the code do i add it like below which line of the code
-
Re: [MCV1]Crimes Need An Item lol you couldnt do it also i am learning if you didnt know and dont jump on here for codes