Jump to content
MakeWebGames

Ghetto

Members
  • Posts

    413
  • Joined

  • Last visited

    Never

Everything posted by Ghetto

  1. Re: Debit/Credit Card Mod $15 :-o You read my mine lol. I was going to make something like this. :cry: Good mod anyway 8-)
  2. Re: Updated jail features [V2] I didn't add this it was on the origanal V2 jail codes. Ive only modified the codes hence the topic name "Updated jail features".
  3. Re: door shoot Ok then use this one. online works with the action 'do' <?php /*----------------------------------------------------- -- Made by iseeyou94056. -- Door Shoot Modificiation (Free) -- Please do not remove this -- Please do not resell -- doorshoot.php -----------------------------------------------------*/ include "globals.php"; if ($ir['doorshoot'] ==1) {echo "You have already done Door Shoot today."; EXIT;} if ($ir['hospital']) {echo "You cannot Door Shoot while in hospital."; EXIT;} if ($ir['jail']) {echo "You cannot Door Shoot while in Jail."; EXIT;} if (!isset($_GET['action'])){ echo "<center>Hi and welcome to the Door Shoot, please choose one of the six doors you would like to open and receive prizes, but be careful, not all of the doors have good rewards. <table Border='1' class='table'><tr><td class='table'> [url='doorshoot.php?action=do']Tri a door[/url]</td></tr></table>";} else { if($_GET['action']=='do') { $rand=(int) (rand(1,6)); //code start// //door 1 start// if ($rand==1) { echo "You kick open Door 1 and shoot some guy and take [b]$100[/b] from his wallet. [url='index.php']> Back[/url]"; $db->query("UPDATE users SET money=money+100 WHERE userid=$userid"); $db->query("UPDATE users SET doorshoot=1 Where userid=$userid");}//// //door 1 end// //door 2 start// if ($rand==2) {echo "You open Door 2 and shoot some kid in the head, later that day his dad finds you and kicks the crap out of you and takes [b]$200[/b] from your wallet."; $db->query("UPDATE users SET hospital=hospital+15 WHERE userid=$userid"); $db->query("UPDATE users SET hospreason='Beat up by a dad.' WHERE userid=$userid"); $db->query("UPDATE users SET money=money-200 WHERE userid=$userid"); $db->query("UPDATE users SET doorshoot=1 Where userid=$userid");}//// //door 2 end// //door 3 start// if ($rand==3) {echo "You kick open Door 3 and shoot a lady in her head and take [b]4[/b] Crystals out of her purse."; $db->query("UPDATE users SET crystals=crystals+4 Where userid=$userid"); $db->query("UPDATE users SET doorshoot=1 Where userid=$userid");}//// //door 3 end// //door 4 start// if ($rand==4) {echo "You kick open Door 4 and shoot, but the bullet hits a metal bar bounces back into you, the bum who you should of hit takes [b]6[/b] Crystals from your wallet while you was waiting for the ambulance."; $db->query("UPDATE users SET crystals=crystals-6 WHERE userid=$userid"); $db->query("UPDATE users SET hospital=hospital+15 WHERE userid=$userid"); $db->query("UPDATE users SET hospreason='Got hit by boucning bullet.' WHERE userid=$userid"); $db->query("UPDATE users SET doorshoot=1 Where userid=$userid");}//// //door 4 end// //door 5 start// if ($rand==5) {echo "You kick open Door 5 and shoot some guy and take [b]$100[/b] and [b]10[/b] Crystals from him."; $db->query("UPDATE users SET money=money+100 WHERE userid=$userid"); $db->query("UPDATE users SET crystals=crystals+10 WHERE userid=$userid"); $db->query("UPDATE users SET doorshoot=1 Where userid=$userid");}//// //door 5 end// //door 6 start// if ($rand==6) {echo "You kick open Door 6 and a man hits you with a sledge hammer and puts you to the ground taking [b]$300[/b] and [b]15[/b] Crystals from you while you was waiting for the ambulance."; $db->query("UPDATE users SET money=money-300 WHERE userid=$userid"); $db->query("UPDATE users SET crystals=crystals-15 WHERE userid=$userid"); $db->query("UPDATE users SET hospital=hospital+30 WHERE userid=$userid"); $db->query("UPDATE users SET hospreason='Got hit with sledge hammer.' WHERE userid=$userid"); $db->query("UPDATE users SET doorshoot=1 Where userid=$userid");}//// //door 6 end// //code end// } elseif($_GET['action']!='do') { echo "Hacking attempt"; $h->endpage(); exit; } } ?>
  4. Re: door shoot This is now random doors:   <?php /*----------------------------------------------------- -- Made by iseeyou94056. -- Door Shoot Modificiation (Free) -- Please do not remove this -- Please do not resell -- doorshoot.php -----------------------------------------------------*/ include "globals.php"; if ($ir['doorshoot'] ==1) {echo "You have already done Door Shoot today."; EXIT;} if ($ir['hospital']) {echo "You cannot Door Shoot while in hospital."; EXIT;} if ($ir['jail']) {echo "You cannot Door Shoot while in Jail."; EXIT;} if (!isset($_GET['action'])){ echo "<center>Hi and welcome to the Door Shoot, please choose one of the six doors you would like to open and receive prizes, but be careful, not all of the doors have good rewards. <table Border='1' class='table'><tr><td class='table'> [url='doorshoot.php?action=do']Tri a door[/url]</td></tr></table>";} else { if($_GET['action']=='do') { $rand=(int) (rand(1,6)); //code start// //door 1 start// if ($rand==1) { echo "You kick open Door 1 and shoot some guy and take [b]$100[/b] from his wallet. [url='index.php']> Back[/url]"; $db->query("UPDATE users SET money=money+100 WHERE userid=$userid"); $db->query("UPDATE users SET doorshoot=1 Where userid=$userid");}//// //door 1 end// //door 2 start// if ($rand==2) {echo "You open Door 2 and shoot some kid in the head, later that day his dad finds you and kicks the crap out of you and takes [b]$200[/b] from your wallet."; $db->query("UPDATE users SET hospital=hospital+15 WHERE userid=$userid"); $db->query("UPDATE users SET hospreason='Beat up by a dad.' WHERE userid=$userid"); $db->query("UPDATE users SET money=money-200 WHERE userid=$userid"); $db->query("UPDATE users SET doorshoot=1 Where userid=$userid");}//// //door 2 end// //door 3 start// if ($rand==3) {echo "You kick open Door 3 and shoot a lady in her head and take [b]4[/b] Crystals out of her purse."; $db->query("UPDATE users SET crystals=crystals+4 Where userid=$userid"); $db->query("UPDATE users SET doorshoot=1 Where userid=$userid");}//// //door 3 end// //door 4 start// if ($rand==4) {echo "You kick open Door 4 and shoot, but the bullet hits a metal bar bounces back into you, the bum who you should of hit takes [b]6[/b] Crystals from your wallet while you was waiting for the ambulance."; $db->query("UPDATE users SET crystals=crystals-6 WHERE userid=$userid"); $db->query("UPDATE users SET hospital=hospital+15 WHERE userid=$userid"); $db->query("UPDATE users SET hospreason='Got hit by boucning bullet.' WHERE userid=$userid"); $db->query("UPDATE users SET doorshoot=1 Where userid=$userid");}//// //door 4 end// //door 5 start// if ($rand==5) {echo "You kick open Door 5 and shoot some guy and take [b]$100[/b] and [b]10[/b] Crystals from him."; $db->query("UPDATE users SET money=money+100 WHERE userid=$userid"); $db->query("UPDATE users SET crystals=crystals+10 WHERE userid=$userid"); $db->query("UPDATE users SET doorshoot=1 Where userid=$userid");}//// //door 5 end// //door 6 start// if ($rand==6) {echo "You kick open Door 6 and a man hits you with a sledge hammer and puts you to the ground taking [b]$300[/b] and [b]15[/b] Crystals from you while you was waiting for the ambulance."; $db->query("UPDATE users SET money=money-300 WHERE userid=$userid"); $db->query("UPDATE users SET crystals=crystals-15 WHERE userid=$userid"); $db->query("UPDATE users SET hospital=hospital+30 WHERE userid=$userid"); $db->query("UPDATE users SET hospreason='Got hit with sledge hammer.' WHERE userid=$userid"); $db->query("UPDATE users SET doorshoot=1 Where userid=$userid");}//// //door 6 end// //code end// } } ?>   EDIT: Missed out a " in one of the lines. and the shower thing tooken out. EDIT: Link didnt work. now fixed. 8-)
  5. Re: Updated jail features [V2] That selects the percent of seccess from the setting table witch is edited from the basic setting.
  6. Re: Updated jail features [V2] escape.php:   <?php include "globals.php"; $bravecost=10; if($ir['jail']==0) { echo "You arent in jail!"; $h->endpage(); exit; } if ($ir['brave'] < $bravecost) { echo "You dont have enough bravery to bust out of jail"; $h->endpage(); exit; } $j2per=mysql_query("SELECT conf_value FROM settings WHERE conf_id=17"); $jj2per=mysql_fetch_array($j2per); if (!isset($_GET['action'])){ echo "Are you sure you want to atempt to break out of jail? >[url='escape.php?action=yes']Yes[/url] [url='jail.php']No[/url]<"; } else { if ($_GET['action']=='yes') { if(rand(1,100) <= $jj2per['conf_value']) { $db->query("UPDATE users SET jail=0, jail_reason='', brave=brave-$bravecost WHERE userid=$userid"); echo "1. You start diging a hole. 2. You start to see sun light where you so close. <font color='green'>3. Youve made it you start to run home.</font>"; } elseif(rand(1,100) > $jj2per['conf_value']) { $rand=(int) rand(1,80); if($rand <= 20) { echo "<font color='gray'>The guards are watching you.</font>"; } elseif($rand <= 40) { echo "1. You start digging a hole. 2. Your nearly out untill you hear the guards comeing <font color='gray'>3. You quickly get out the hold and fill it back up befor the guard catch you.</font> >[url='escape.php?action=yes']Try again[/url]"; $db->query("UPDATE users SET brave=brave-$bravecost"); } elseif($rand <= 60) { echo "<font color='gray'>Your cell mate decides he dosent want any part in the escape so you give up.</font> >[url='escape.php?action=yes']Try again[/url]"; } elseif($rand <= 80) { echo "1. You begin digging a hole. 2. You get so far you can start to see the light from the outsite. 3. Youve made it! You start runing as fast as you can. <font color='red'>4. Just as you stop to take a breth you hear a gun reloading from behind you. Its the prision guards.</font>"; $jail=(int) rand(1,30); $db->query("UPDATE users SET brave=brave-$bravecost, jail=jail+$jail, jail_reason='Caught attempting to escape.' WHERE userid=$userid"); echo "You were caught attempting to break out of jail. and $jail minutes was added onto your sentence."; } } } } $h->endpage(); ?>   Enjoy!
  7. The old jail features were quite crap so i thought i would update then. Here they are. bust.php: <?php include "globals.php"; $_GET['ID'] = abs((int) $_GET['ID']); if(!$_GET['ID']) { echo "This user is not in jail."; } if (!isset($_GET['action'])){ $qq=$db->query("SELECT * FROM users WHERE userid={$_GET['ID']}",$c); $r=$db->fetch_row($qq); $brevacost=5; echo "Are you sure you want to bust {$r['username']} out of jail? It will cost $brevacost breva to bust them out of jail. >[url='bust.php?action=yes&ID={$_GET[']Yes[/url] [url='jail.php']No[/url]<"; } else { if ($_GET['action']=='yes') { $qq=$db->query("SELECT * FROM users WHERE userid={$_GET['ID']}",$c); $r=$db->fetch_row($qq); $brevacost=5; if ($ir['jail'] > 0) { echo "You can't bust {$r['username']} when your in jail yourself."; $h->endpage(); exit; } if ($r['jail'] ==0) { echo "{$r['username']} is already out of jail."; $h->endpage(); exit; } if ($ir['userid'] == $_GET['ID']) { echo "You bust yourself out of jail."; $h->endpage(); exit; } if ($ir['breva'] < $brevacost) { echo "You dont have enough breva to bust {$r['username']} out of jail"; $h->endpage(); exit; } if ($ir['hospital'] > 0) { echo "You can't bust {$r['username']} when your the hospital."; $h->endpage(); exit; } if ($ir['userid'] != $_GET['ID']) { $j1per=$db->query("SELECT conf_value FROM settings WHERE conf_id=20",$c); $jj1per=$db->fetch_row($j1per); if(rand(1,100) <= $jj1per['conf_value']) { print "You Successfuly busted {$r['username']} out of jail"; $db->query("UPDATE users SET jail=0 WHERE userid={$_GET['ID']}",$c); $db->query("UPDATE users SET jail_reason='Not In Jail.' WHERE userid={$_GET['ID']}", $c); $db->query("UPDATE users SET breva=breva-$brevacost WHERE userid=$userid",$c); event_add($r['userid'],"[url='viewuser.php?u=$userid']{$ir['username']}[/url] Busted you out of jail.",$c); } else { $jail=(int) rand(1,30); print "You were caught attempting to help {$r['username']} escape and thrown in jail for $jail minutes."; $db->query("UPDATE users SET breva=breva-$brevacost WHERE userid=$userid",$c); $db->query("UPDATE users SET jail=jail+$jail WHERE userid=$userid", $c); $db->query("UPDATE users SET jail_reason='Caught busting {$r['username']} out of jail' WHERE userid=$userid", $c); event_add($r['userid'],"[url='viewuser.php?u=$userid']{$ir['username']}[/url] was arrested while trying to bust you out of jail.",$c); } } } } ?>   bailout.php <?php include "globals.php"; $_GET['ID'] = abs((int) $_GET['ID']); if(!$_GET['ID']) { echo "This user is not in jail."; } if (!isset($_GET['action'])){ $qq=$db->query("SELECT * FROM users WHERE userid={$_GET['ID']}",$c); $r=$db->fetch_row($qq); $j2per=$db->query("SELECT conf_value FROM settings WHERE conf_id=18",$c); $jj2per=$db->fetch_row($j2per); $bailcost=$r['jail']*$jj2per['conf_value']; echo "Are you sure you want to bail {$r['username']} out of jail? It will cost \$$bailcost to bail them. >[url='bailout.php?action=yes&ID={$_GET[']Yes[/url] [url='jail.php']No[/url]<"; } else { if ($_GET['action']=='yes') { $qq=$db->query("SELECT * FROM users WHERE userid={$_GET['ID']}",$c); $r=$db->fetch_row($qq); $j2per=$db->query("SELECT conf_value FROM settings WHERE conf_id=18",$c); $jj2per=$db->fetch_row($j2per); $bailcost=$r['jail']*$jj2per['conf_value']; if ($ir['userid'] == $_GET['ID']) { echo "You cannot bust yourself out of jail."; $h->endpage(); exit; } if ($ir['jail'] > 0) { echo "You cannot bail anyone while in jail."; $h->endpage(); exit; } if ($ir['hospital'] > 0) { echo "You cannot bail anyone while in hospital."; $h->endpage(); exit; } if ($ir['money'] < $bailcost) { echo "You do not have enouth money to bail {$r['username']} out of jail."; $h->endpage(); exit; } if ($ir['userid'] != $_GET['ID']) { $db->query("UPDATE users SET jail=0, jail_reason='' WHERE userid={$_GET['ID']}"); $db->query("UPDATE users SET money=money-$bailcost WHERE userid=$userid",$c); event_add($r['userid'],"[url='viewuser.php?u=$userid']{$ir['username']}[/url] paid \$$bailcost to get you out of jail.",$c); echo "You paid [b]\$$bailcost[/b] and posted bail for {$r['username']}!"; } } } ?>   Ill post escape.php when im finished with it. Enjoy.
  8. Re: Updated Personal Details [V2] Well if it is the same then we must code the same because theres no way i copied his codes! If you look at my old personal details you will see its the same but updates. http://criminalexistence.com/ceforums/index.php?topic=3046.0 And also that one has the personal info in the users table.
  9. Re: Updated Personal Details [V2]   Have you tooken anything lately? Ive made that from scratch today. You can think what you like really dosen't bother me.
  10. Hello There. My last personal details was pritty crap being as it was taking up space in the users table so ive made a new one. Open viewuser.php and put this where ever you want it.   $pd=$db->query("SELECT * FROM pdetails WHERE userid={$r['userid']}"); $p=$db->fetch_row($pd); echo "[b]<u>Personal Information:</u>[/b] "; if($p['personal']=='ON') { echo "First Name: {$p['first']} Last Name: {$p['last']} Age: {$p['age']} Aim Of The Game: {$p['aog']} Msn: {$p['msn']} Aim: {$p['aim']} Aol: {$p['aol']} Yahoo: {$p['yahoo']} "; } else { echo "This person dose not wont to share there personal details."; }   Then Open register.php Find: $db->query("INSERT INTO userstats VALUES($i, 10, 10, 10, 10)");   Add After: $db->query("INSERT INTO pdetails VALUES($i, 'N/A', 'N/A', 0, 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'OFF')") or die(mysql_error());   Open preferences.php Fine: case 'forumchange': forum_change(); break;   Add After: case 'pdetailchange2': do_pdetail_change(); break; case 'pdetailchange': pdetail_change(); break;   Later Find: [url='preferences.php?action=forumchange']Forum Info Change[/url]   Add After: [url='preferences.php?action=pdetailchange']Personal Detail Change[/url]   Later Find: $h->endpage(); ?>   Add Befor: function pdetail_change() { global $db,$userid; echo "<h3>Personal Details Change</h3>"; $pd=$db->query("SELECT * FROM pdetails WHERE userid=$userid"); $p=$db->fetch_row($pd); echo "<form action='preferences.php?action=pdetailchange2' method='post'> First Name: <input type='text' name='fistname' value='{$p['first']}' /> Last Name: <input type='text' name='lastname' value='{$p['last']}' /> Age: <input type='text' name='age' value='{$p['age']}' /> Aim Of The Game: <input type='text' name='aog' value='{$p['aog']}' /> Msn: <input type='text' name='msn' value='{$p['msn']}' /> Aim: <input type='text' name='aim' value='{$p['aim']}' /> Aol: <input type='text' name='aol' value='{$p['aol']}' /> Yahoo: <input type='text' name='yahoo' value='{$p['yahoo']}' /> Personal Details: <select name='pdetails' type='dropdown'> <option value='ON'>On <option value='OFF'>Off</select> <input type='submit' value='Update' /></form>"; } function do_pdetail_change() { global $db,$userid; $pd=$db->query("SELECT * FROM pdetails WHERE userid=$userid"); $p=$db->fetch_row($pd); $db->query("UPDATE pdetails SET first='{$_POST['fistname']}', last='{$_POST['lastname']}', age='{$_POST['age']}', aog='{$_POST['aog']}', msn='{$_POST['msn']}', aim='{$_POST['aim']}', aol='{$_POST['aol']}', yahoo='{$_POST['yahoo']}', personal='{$_POST['pdetails']}' WHERE userid=$userid"); echo "Personal Details Changed!"; }   SQL: CREATE TABLE `pdetails` ( `userid` int(11) NOT NULL auto_increment, `first` varchar(255) NOT NULL default 'N/A', `last` varchar(255) NOT NULL default 'N/A', `age` int(11) NOT NULL default '0', `aog` varchar(255) NOT NULL default 'N/A', `msn` varchar(255) NOT NULL default 'N/A', `aim` varchar(255) NOT NULL default 'N/A', `aol` varchar(255) NOT NULL default 'N/A', `yahoo` varchar(255) NOT NULL default 'N/A', `personal` enum('ON','OFF') NOT NULL default 'OFF', PRIMARY KEY (`userid`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=10 ;   There You Go. Enjoy!
  11. Re: Simple user rating system v2 Might as well use <font color='green'>+</font> <font color='red'>-</font> True but this is only temporary till i can be bothered to make better ones. :-D Or you can just google it for some pictures then resize them or whatever.
  12. Re: Simple user rating system v2 Heres 2 simple + and - ones i got.
  13. Re: Simple user rating system v2 Updated it a bit seen a few problems with it here's my version of it for V1. rating.php: <?php 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']); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm); $h->menuarea(); $ID = mysql_real_escape_string($_GET['ID']); $action = mysql_real_escape_string($_GET['action']); switch($action) { case 'goodrating': good_rating(); break; case 'badrating': bad_rating(); break; } if(!$ID) { echo "Error - invaild player id."; $h->endpage(); exit; } if(!$action) { echo "Error - invaild action."; $h->endpage(); exit; } function good_rating() { global $ir,$userid; if($ir['rates'] > 0){ $ID = mysql_real_escape_string($_GET['ID']); if($ID == $userid) { die("You cannot rate yourself."); } else { $result = mysql_query("SELECT * FROM users WHERE userid='{$ID}'"); while($row = mysql_fetch_array($result)) { $gratings = $row['rating']; } mysql_query("UPDATE users SET rating = {$gratings}+1 WHERE userid='{$ID}'"); mysql_query("UPDATE users SET rates = '0' WHERE userid='{$userid}'"); echo "You gave the user a good rating"; } } else { die("You can only rate once a day."); } } function bad_rating() { global $ir,$userid; if($ir['rates'] > 0){ $ID = mysql_real_escape_string($_GET['ID']); if($ID == $userid) { die("You cannot rate yourself."); } else { $result = mysql_query("SELECT * FROM users WHERE userid='{$ID}'"); while($row = mysql_fetch_array($result)) { $bratings = $row['rating']; } mysql_query("UPDATE users SET rating = {$bratings}-1 WHERE userid='{$ID}'"); mysql_query("UPDATE users SET rates = '0' WHERE userid='{$userid}'"); echo "You gave the user a bad rating"; } } else { die("You can only rate once a day."); } } $h->endpage(); ?>   Edit viewuser.php find: Gender: {$r['gender']}   Add under: Ratings: <a href='rating.php?ID={$r['userid']}&action=goodrating'> [img=/image/plus.gif]</a> [b]"; if($r['rating'] < 0) { echo " <font color='#ff0000'>{$r['rating']}</font>"; } else if($r['rating'] > 0) { echo "<font color='#00ff00'>{$r['rating']}</font>"; } else { echo "{$r['rating']}"; } echo "[/b] <a href='rating.php?ID={$r['userid']}&action=badrating'> [img=/image/minus.gif]</a>   SQL: ALTER TABLE `users` ADD `rating` INT( 11 ) NOT NULL DEFAULT '0'; ALTER TABLE `users` ADD `rates` INT( 11 ) NOT NULL DEFAULT '1';   day cron: mysql_query("UPDATE users SET rates=0",$c);   UPDATED: Font color changes red when minus rating normal on 0 rating and green on plus rating.
  14. Re: [mccode] Supporter Packs   It would be   mysql_query("UPDATE users SET supporterdays=supporterdays-1 WHERE supporterdays > 0",$c);
  15. Re: Guess the next poster Nope tears next.
  16. Re: Counting (nr game) 1375
  17. Re: Counting (nr game) 1369
  18. Re: help testing proxy detector no proxy witch im not even on proxy.
  19. Re: Which File Extension are You?
  20. Re: Guess the next poster Nope Tears next?
  21. Re: FIRST THOUGH! lemon
  22. Re: 3 Word Game They were all
  23. Re: [FREE] Server Time [v1.1 v2 v1] Or a shorter version: <script type="text/javascript"> function startTime() { var today=new Date() var h=today.getHours() var m=today.getMinutes() var s=today.getSeconds() // add a zero in front of numbers<10 m=checkTime(m) s=checkTime(s) document.getElementById('txt').innerHTML=h+":"+m+":"+s t=setTimeout('startTime()',500) } function checkTime(i) { if (i<10) {i="0" + i} return i } </script> </head>[/b] <body onload="startTime()"> <div id="txt"></div>
  24. Re: 3 Word Game Have a big
  25. Re: Counting (nr game) 1353
×
×
  • Create New...