
HITMAN 17
Members-
Posts
1,145 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by HITMAN 17
-
Re: wats correct 5) You will need to add a field into the user database as follows: currentmission int 11 default 0 wats the query to add it to database then
-
currentmission int 11 default 0 wats the sql for that
-
Re: [FREE] Bodyguard V2.0 can someone post v1 plz
-
[mccode v1] Paper Boy Panel With New User Level
HITMAN 17 replied to Klikoka's topic in Free Modifications
Re: [V1]Paper Boy Panel With New User Level[V1] ye same i got that as well -
Re: [mccode]streetsv1[mccode] ye lol gud luck and i will next time dementor thnx
-
[mccode v1] Paper Boy Panel With New User Level
HITMAN 17 replied to Klikoka's topic in Free Modifications
Re: [V1]Paper Boy Panel With New User Level[V1] nice great if v2 -
Re: [Free] [v1&v2] High Low i get this State your wager: (Your max bet is $5) Bet: $ The maximum bet is your current level x $5.
-
Re: [v1][FREE] DONATION PACKS TO ITEMS but it still dont work for v1 error invalid use of file Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/tbgaming/public_html/userp1.php on line 28 Invalid item ID
-
Re: [v1][FREE] DONATION PACKS TO ITEMS this does not work for v2
-
Re: [mccode] Register Page sweet
-
Re: [v1][FREE] DONATION PACKS TO ITEMS ye same for me
-
Re: [mccode] Register Page i mean can someone make it so when a person on the same ip tries to register it comes up not allowed to make multis
-
Re: [mccode] Register Page can some one make this multi proof
-
Re: [Free] [v1] Profile Image Uploader soz i ment anyone have this in v1 so i understand it
-
Re: [mccode]streetsv1[mccode] ye lol i just wanted to add a better one
-
Re: [mccode]streetsv1[mccode] lol it hasnt not the one wat i did
-
street.php <?php /*----------------------------------------------------- -- Mono Country v1.0 BETA -- CONVERTED BY У$T®O¥£® -----------------------------------------------------*/ session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); print "<h3>You are currently scavenging the streets</h3> "; if ($_GET['action'] != 'scavenge') { $turns=$ir['turns']; print "Holy smokes! You should scavenge for some serious shit dude. Maybe grab some money off the ground, or get some Experience... maybe even find a special item or two...? Start goin! You have {$turns} turns left for today and will be topped up to 100 at newday. "; print " <form method=post action=street.php?action=scavenge><input type=hidden name=action value=scavenge><input type='text' name='steps' value='{$ir['turns']}'> <input type=submit value='scavenge'></form>"; } else { $steps=abs((int) $_POST['steps']); for($i=0;$i<$steps;$i++) { if ($ir['turns'] < 1) { print("You do NOT have enough steps to scavenge the streets any more. Come back at newday. "); }else { $chance = rand(1,15); mysql_query("UPDATE users SET turns=turns-1 where userid=$userid",$c); if ($chance == 1) { $amnt=rand(50,200); if($ir['money'] > $amnt) { print "As you scavenge the streets you see a hobo; he asks you for \$$amnt and you tell him to piss off. Then he proceeds to smack the shit out of you. He takes the \$$amnt anyway. "; mysql_query("UPDATE users SET money=money- {$amnt } where userid=$userid",$c); $ir['money']-=$amnt; } else { print "As you walk the streets you see a hobo he asks you for \$1 you tell him to piss off he smacks you over the head and looks in your wallet. Finding it almost empty he just runs off with it. "; mysql_query("UPDATE users SET money=0 where userid=$userid",$c); $ir['money']=0; } } if ($chance == 2) { print "Nothing here. "; } if ($chance == 3) { $gained=rand(20,90)*$ir['level']; print "You found a bag of cash on the side walk you open it up and find [b] \$$gained[/b] was inside. "; mysql_query("UPDATE users SET money=money+$gained where userid=$userid",$c); } if ($chance == 7) { print "You see a guy getting mugged, but you decide to keep walking. You don't want to be in his shoes anytime soon. "; } if ($chance == 4) { print "While exploring the streets you found some cash, but a hobo came quickly behind you and whacked you over the head. You lurch in suprise and the hobo takes the cash and runs off."; } if ($chance == 5) { $gain = rand(5,20); print "While searching the streets you found [b]$gain[/b] crystals."; mysql_query("UPDATE users SET crystals=crystals+$gain where userid=$userid",$c); } if ($chance == 6) { $gain = rand(50,100)*(floor($ir['level']/2)+1); print "While searching the streets you found [b] \$$gain[/b]. "; mysql_query("update users set money=money+$gain where userid=$userid",$c); } if ($chance == 8) { print "Nothing here. Just a few drunk bums. "; } if ($chance == 9) { print "You see a small item on the ground, and decide to pick it up... wonder what it is? (Hint, look in your inventory lol)"; $itemidexplore = 40; mysql_query("INSERT INTO inventory VALUES('',$itemidexplore,$userid,1)",$c); print" "; } if ($chance == 10) { print "You see a syringe on the ground, and decide to pick it up. Looks deadly enough..."; $itemidexplore = 16; mysql_query("INSERT INTO inventory VALUES('',$itemidexplore,$userid,1)",$c); print" "; } if ($chance == 11) { print "Nothing here. "; } if ($chance == 12) { print "Nothing here. "; } if ($chance == 13) { $expcur=(($ir['exp']+$ir['exp_needed'])/100); $exp=(($expcur)*rand(1,5)); print "You got in a scuffle with a bum, and WON you gained some EXP!! (Go have a look!) "; mysql_query("UPDATE users SET exp=exp+$exp WHERE userid=$userid",$c); } if ($chance == 14) { print "Nothing here. "; } if ($chance == 15) { $hosptime=(int) rand(1,5); $loseruser = $ir['userid']; $reasonhosp = 'Stepped on a land mine while scavenging.'; mysql_query("UPDATE users SET hospital=$hosptime WHERE userid=$loseruser",$c); mysql_query("UPDATE users SET hospreason='$reasonhosp' WHERE userid=$loseruser",$c); event_add($ir['userid'],"You stepped on a land mine while exploring. Do be a bit more careful next time...",$c); die ("You stepped on a land mine. [b]Good news[/b]: You aren't dead [b]Bad News[/b]:You have to stop exploring and go into Recovery "); } $ir['turns']--; print"you have [b] {$ir['turns'] }[/b] steps left "; } } if($ir['turns']==0) { print "Sorry, all turns used! "; } else { print " <form method=post action=street.php?action=scavenge><input type=hidden name=action value=scavenge><input type='text' name='steps' value=' {$ir['turns'] }'> <input type=submit value='scavenge'></form>"; } } $h->endpage; ?> } Code: alter table users add turns int(11) not null default 100; *Change the above default number to something you want it to be, So when users sign up they start with that amount of turns* Add to day cron Code: mysql_query("UPDATE users SET turns=25");
-
Re: v2 update settings the settings on owner panel to make the game validate and all that
-
Re: [Mccode][Free] House Pictures can someone type the v1 out so ppl actually understand it as it is everywhere
-
Re: [Free] [v1] Profile Image Uploader kk mate is v1 one
-
Re: [Free][v1][v2] Password reset code who is an ipod hacker
-
Re: v2 update settings theres no errors that come up it just wont set the settings
-
everythime i update settings they dont update why is this plz help me
-
Re: [Free] [v1] Profile Image Uploader does this work for v1
-
Re: [MCCODE]Revamped login.php[V1] cool mod