Jump to content
MakeWebGames

gurpreet

Members
  • Posts

    834
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by gurpreet

  1. Re: User Levels [v2] He probs means instead of 0 put members, instead of 1, Bot, instead of 2, Admin etc etc.
  2. Re: Daily Donators Reward [Mccode v2]   http://criminalexistence.com/ceforums/index.php?topic=20786.0
  3. Re: php Card Duel I think those are copyrighted images...Look like ones from World of Warcraft on http://www.teampo2.com/cardduel/card_duel_shops.php
  4. Re: PLEASE DONT LISTEN TO SKULL ABOUT BUYING LW CODES ITS A SCAM Haha that's neat Cronus :p
  5. Re: Problem with instaling V2 McCodes Ask Dabs for help...IF you bought it, if not, go buy a legit one and get help from Dabs.
  6. Re: Crime Formula TMan did you buy that from Dazza?
  7. Re: Were does ppl host www.galaxyvisions.com Been with them nearly 2 years, was down for 1 day just to update the cpanels. Other than that, never had downtime unless it was my fault.
  8. Re: Wanted-criminals.net Haha even stole the bars for energy and stuff :P
  9. Re: [review]Serious Wars You fail... You have been put in the your game name Federal Prision for 99999945 day(s).   Your Game Name...FAIL!
  10. Re: what you think of this header :P Actually looks very nice. 10/10 for looks 5/10 for suitability, like Pog said, not really a text-based game thing. Overall: 7.5/10
  11. Re: [Drug mod]SQL query You haven't addedin the column "df_dayleft" to your mysql db.
  12. Re: [McCodes][v2] Event Layout Mod
  13. Re: Need an Mccodes hall of fame of referrals   QUERY ERROR: Invalid use of group function Query was SELECT COUNT('refREFED') AS total,refREFER FROM referals ORDER BY COUNT('referred') DESC LIMIT 10   I took out the group function but it's still using it, here's my query.   $ar=$db->query("SELECT COUNT('refREFED') AS total,refREFER FROM referals ORDER BY COUNT('referred') DESC LIMIT 10"); while($s = $db->fetch_row($ar))   Can anyone put me in the right directon?
  14. Re: [Need]Sql Dump[Need] +1 doesn't equal hours or work.
  15. Re: Any help to remove 10 bullet signup So a bunch of idiots were right.
  16. Re: cron help plz Well Chris I think you're wrong cos I'm getting iamwicked to do some work for me...And most people have trusted him with their stuff, take a look at his site and his reviews, all positive.
  17. Re: [Mccodes V2] Streets   Why make 2 files? You also left out the ; at the end of the MYSQL table thing.
  18. Re: [Mccodes V2] Streets   <?php include "globals.php"; if($ir['jail'] or $ir['hospital']) { die("This page cannot be accessed while in jail or hospital."); } print "<h3>You are currently searching the streets</h3> "; if ($_GET['action'] != 'scavenge') { $turns=$ir['turns']; print "You wander around the streets, looking for something to do. You see an alley and want to go in. You have {$turns} turns left for today and will be topped up by 100 at 12 am, but the maximum amount of steps you can have is 1000. "; print " <form method=post action=streets.php?action=scavenge><input type=hidden name=action value=scavenge><input type='text' name='steps' value='{$ir['turns']}'> <input type=submit value='search'></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 search the streets any more. Come back at newday. "); }else { $chance = rand(1,17); $db->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 search 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. "; $db->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. "; $db->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. "; $db->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(2,20); print "While searching the streets you found [b]$gain[/b] crystals."; $db->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]. "; $db->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)"; $itemidexplore = 57; item_add($ir['userid'],57,1); print" "; } if ($chance == 10) { print "You see a medi kit on the ground, and decide to pick it up. Looks good enough..."; $itemidexplore = 23; $db->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!) "; $db->query("UPDATE users SET exp=exp+$exp WHERE userid=$userid",$c); } if ($chance == 14) { print "Nothing here. "; } if ($chance == 15) { $jailtime=(int) rand(3,27); $loseruser = $ir['userid']; $reasonjail = 'Got caught trying to sell DVDs'; $db->query("UPDATE users SET jail=$jailtime WHERE userid=$loseruser",$c); $db->query("UPDATE users SET jail_reason='$reasonjail' WHERE userid=$loseruser",$c); print ("You got caught trying to sell DVD's and got chucked in jail, unlucky... [b]Good news[/b]: You lost no money from before. [b]Bad News[/b]:You have to go to jail. "); } if ($chance == 16) { $gain = rand(1,5); print "While searching the streets you found [b]$gain[/b] crystals."; $db->query("UPDATE users SET crystals=crystals+$gain where userid=$userid",$c); } if ($chance == 17) { $hosptime=(int) rand(5,15); $loseruser = $ir['userid']; $reasonhosp = 'Beaten up by a Hobo'; $db->query("UPDATE users SET hospital=$hosptime WHERE userid=$loseruser",$c); $db->query("UPDATE users SET hospreason='$reasonhosp' WHERE userid=$loseruser",$c); print ("You got beaten up by a Hobo, pathetic. [b]Good news[/b]: You lost no money from being beaten up. [b]Bad News[/b]:You go to hospital. "); } $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=streets.php?action=scavenge><input type=hidden name=action value=scavenge><input type='text' name='steps' value=' {$ir['turns'] }'> <input type=submit value='search'></form>"; } } $h->endpage(); ?>   A bit tweaked from the original one. Not that good I know, but you can change it. I think there's a table too   ALTER TABLE `users` ADD `turns` (int)11 not null default 100;   Cron_Day:   $db->query("UPDATE users SET turns=turns+100 WHERE turns < 1000");   Easily editable, my query just tops them up 100 per day until it gets to 1000, then it won't go higher.
  19. Re: Any help to remove 10 bullet signup Earlier before the query you must have something like this:   $cr=5;
  20. Re: [v2]User Competitions[v2]   <?php include "globals.php"; $q=$db->query("SELECT * FROM competitions WHERE id={$_GET['u']}"); $r=$db->fetch_row($q); $f=$ir['level']*10000; if($ir['money'] < $f) { die("You don't have enough money. You need \$ $f to create a competion."); } if($ir['compown']) { die ("You are already running a competition!"); } if($_POST['submit']) { $name=htmlspecialchars($_POST['name']); $desc=htmlspecialchars($_POST['desc']); $db->query("INSERT INTO competitiona VALUES('','$name','$desc','{$ir['username']}','$cash','$crys','$item','$fee','$time','')"); $i=$db->insert_id(); $cost=$cash+$f; $db->query("UPDATE users SET compown=$i,money=money-$cost,crystals=crystals-$crys where userid=$userid"); print "Competition created!"; } else { print "<h3> Create A Competition </h3> <form action='createcomp.php' method='post'><input type='hidden' name='submit' value='1' /> Name:<input type='text' name='name' /> Description: <textarea name='desc' cols='40' rows='7'></textarea> Entry Fee:<input type='text' name='fee' /> Cash Reward:<input type='text' name='cash' /> Crystals Reward:<input type='text' name='crys' /> Hours:<input type='text' name='time' /> Item: ".item_dropdown($c,'item')." <input type='submit' value='Create Competition' /></form>"; } $h->endpage(); ?>   was missing a ;
  21. Re: Permenant Increase? What do you mean by a "permanent increase"?
  22. Re: [v2] If course done?   Something like this (this wont work..)   if $ir['cdays'] > 0 { die ("You have not finished the course. You must finish the course before seeing this page.") }
  23. Re: Airplanes [V2]   No... I believe Killah is right, it's were And you was trying to sell this to me for $10? PFFT! I don't think so. Was is used for something like: It was yesterday XD What country are you from? Since when do we worry about grammar mistake's? Off topic: What the ******** is up with your post count? 99 million?
  24. Re: will ? What do you mean...Will should be included in your codes.
  25. Re: greatwarz.co.uk Setup a demo account?
×
×
  • Create New...