Jump to content
MakeWebGames

HITMAN 17

Members
  • Posts

    1,145
  • Joined

  • Last visited

Everything posted by HITMAN 17

  1. Re: [Free] Jail / Prison   <?php /*----------------------------------------------------- -- Mono Country v1.0 BETA -- A product of DBS-entertainment -- Copyright held 2005 by Dabomstew -- INDEX.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']); $cm=money_formatter($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); switch($_GET['action']) { case 'escape': escape(); break; } if (isset($_GET['action']) && $_GET['action']!="escape") { echo 'Prison Error'; $h->endpage(); exit; } $bail=abs(@intval(clean($_GET['bail']))); $bust=abs(@intval(clean($_GET['bust']))); if (empty($bail) && empty($bust) && empty($_GET['action'])) { echo '<h3>The Local Prison</h3>'; if ($ir['prison']!=0) { echo '[url="prison.php?action=escape"][Attempt to escape][/url] '; } echo '<table width="85%" border="2"><tr bgcolor="#004400"><th>ID</th><th>Name</th> <th>Rank</th> <th>Time</th><th>Reason</th><th>Options</th></tr>'; $q=mysql_query("SELECT u.*,c.* FROM users u LEFT JOIN gangs c ON u.gang=c.gangID WHERE u.prison > 0 ORDER BY u.prison DESC",$c); while($r=mysql_fetch_array($q)) { $blah=$r['userid']; $fee=$r['prison']*10; echo '<tr><td>'.$r['userid'].'</td><td>'.$r['gangPREFIX'].' [url="viewuser.php?u='.$r['userid'].'"]'.$r['username'].'[/url] ['.$r['userid'].']</td><td> '.$r['level'].'</td><td>'.$r['prison'].' minutes</td><td>'.$r['prisonreason'].'</td><td><form action="prison.php" method="GET">[url="prison.php?bust='.$r['userid'].'"]Bust[/url] | [url="prison.php?bail='.$r['userid'].'"]Bail [i](\$'.$fee.')[/i][/url] </form></td></tr>'; } echo '</table>'; } if ($bust!="") { if ($ir['energy']<1) { echo 'You need 7 power to bust! [url="prison.php"]Back[/url]'; $h->endpage(); exit; } if ($bust==$userid) { echo 'You cannot bust yourself out! [url="prison.php"]Back[/url]'; $h->endpage(); exit; } $bustlvl=$ir['bustlvl']; $randd=rand(1,250); $rand=$randd*$bustlvl-10; $lvllrand=rand(1,50); $lvlrand=$lvllrand*$bustlvl-5; if ($rand<=200) { $bust=abs(@intval(clean($_GET['bust']))); $eeeeee=mysql_query("SELECT u.*,c.* FROM users u LEFT JOIN gangs c ON u.gang=c.gangID WHERE u.prison > 0 AND userid=$bust ORDER BY u.prison DESC",$c); while($eee=mysql_fetch_array($eeeeee)) { $busterr=$eee['userid']; $bustooo=$eee['username']; if ($ir['hospital']!="0") { echo "You cannot bust out while in Hospital!"; exit; } if ($ir['prison']!="0") { echo "You cannot bust out while in Prison!"; exit; } echo 'You were caught trying to bust '.$bustooo.' out of prison and thrown in prison yourself!'; mysql_query("UPDATE users SET energy=energy-1 WHERE userid=$userid", $c); event_add($busterr, "<a href=viewuser.php?u={$ir['userid']}>{$ir['username']}</a> was caught trying to bust you out!", $c); mysql_query("UPDATE users SET prison='100' WHERE userid=$userid", $c); mysql_query("UPDATE users SET totalprison=totalprison+1 WHERE userid=$userid", $c); mysql_query("UPDATE users SET prisonreason='Attempting to bust $bustooo out of prison' WHERE userid=$userid", $c); $h->endpage(); exit; } } if ($rand>200 && $lvlrand<10) { $bust=abs(@intval(clean($_GET['bust']))); $e=mysql_query("SELECT u.*,c.* FROM users u LEFT JOIN gangs c ON u.gang=c.gangID WHERE u.prison > 0 AND userid=$bust ORDER BY u.prison DESC",$c); while($eee=mysql_fetch_array($e)) { $bustingg=$eee['userid']; $bustingge=$eee['username']; if ($ir['hospital']!="0") { echo 'You cannot bust out while in Hospital!'; $h->endpage(); exit; } if ($ir['prison']!="0") { echo 'You cannot bust out while in Prison!'; $h->endpage(); exit; } echo "You Busted $bustingge out of prison! And your bust level went up!"; mysql_query("UPDATE users SET bustlvl=bustlvl+1 WHERE userid=$userid", $c); mysql_query("UPDATE users SET energy=energy-1 WHERE userid=$userid", $c); mysql_query("UPDATE users SET totalbust=totalbust+1 WHERE userid=$userid", $c); mysql_query("UPDATE users SET prison=0 WHERE userid=$bustingg", $c); event_add($bustingg, "<a href=viewuser.php?u={$ir['userid']}>{$ir['username']}</a> busted you out of prison!", $c); $h->endpage(); exit; } } if ($rand>200) { $bust=abs(@intval(clean($_GET['bust']))); $e=mysql_query("SELECT u.*,c.* FROM users u LEFT JOIN gangs c ON u.gang=c.gangID WHERE u.prison > 0 AND userid=$bust ORDER BY u.prison DESC",$c); while($ee=mysql_fetch_array($e)) { $busting=$ee['userid']; $busto=$ee['username']; if ($ir['hospital']!="0") { echo 'You cannot bust out while in Hospital!'; $h->endpage(); exit; } if ($ir['prison']!="0") { echo 'You cannot bust out while in Prison!'; $h->endpage(); exit; } echo 'You Busted '.$busto.' out of prison!'; mysql_query("UPDATE users SET totalbust=totalbust+1 WHERE userid=$userid", $c); mysql_query("UPDATE users SET energy=energy-1 WHERE userid=$userid", $c); mysql_query("UPDATE users SET prison=0 WHERE userid=$busting", $c); event_add($busting, "<a href=viewuser.php?u={$ir['userid']}>{$ir['username']}</a> busted you out of prison!", $c); $h->endpage(); exit; } } } if (!empty($_GET['bail'])) { $bust=abs(@intval($_GET['bail'])); $eeee=mysql_query("SELECT * FROM users WHERE prison > 0 AND userid=$bust",$c); while($eeeee=mysql_fetch_array($eeee)) { $bustingee=$eeeee['userid']; $bustee=$eeeee['username']; $time=$eeeee['prison']; $price=$time*10; if ($bustingee==$userid) { echo 'You cannot bail yourself out!'; $h->endpage(); exit; } if ($ir['money']<$price) { echo 'You dont have that sort of cash'; $h->endpage(); exit; } if ($ir['hospital']!="0") { echo 'You cannot bail out while in Hospital!'; $h->endpage(); exit; } if ($ir['prison']!="0") { echo 'You cannot bail out while in Prison!'; $h->endpage(); exit; } echo 'You payed $'.$price.' to bail '.$bustee.' out of prison!'; mysql_query("UPDATE users SET money=money-$price WHERE userid=$userid", $c); mysql_query("UPDATE users SET prison=0 WHERE userid=$bustingee", $c); $h->endpage(); exit; } } function escape() { global $ir,$c,$userid,$h; if ($ir['prison']==0) { echo 'Your not even in prison!'; $h->endpage(); exit; } $rand=rand(1,400); $randd=$rand*$ir['bustlvl']/$ir['prison']; if ($ir['energy']<5) { echo 'It cost 35 Energy to attempt to escape'; $h->endpage(); exit; } if ($randd>150) { echo 'You escaped from prison!'; mysql_query("UPDATE users SET energy=energy-5 WHERE userid=$userid", $c); mysql_query("UPDATE users SET prison='0' WHERE userid=$userid", $c); $h->endpage(); exit; } if ($randd<=150) { echo 'You were caught trying to escape and sent back for longer'; mysql_query("UPDATE users SET energy=energy-5 WHERE userid=$userid", $c); mysql_query("UPDATE users SET prison=prison+100 WHERE userid=$userid", $c); mysql_query("UPDATE users SET prisonreason='Trying to escape from Prison' WHERE userid=$userid", $c); $h->endpage(); exit; } } $h->endpage(); ?> http://www.chavsterv1.co.cc/prison.php this is not showing for v1
  2. Re: mccodes V2] Upgrade IPFINDER original Script by Magicaltallguy ok cheers illusions but i get one more error which is What do you think your doing? An Invalid entry has been made. Please contact GameOwner [1] if this error persists.
  3. Re: mccodes V2] Upgrade IPFINDER original Script by Magicaltallguy ok i need to test this out and im using v1 in admin panel so what would the link be and the sql also i have not got no errors yet
  4. Re: [mccode V2] Very simple travel time mod. ahh right ok cheers i will do this thank you
  5. Re: [mccode lite / V1] Basic Forums very buggy
  6. Please dont forget this is a showcase not a review place Here Is ChavsterV1 www.chavsterv1.co.cc
  7. Re: [mccode V2] Very simple travel time mod. The Tavern I Made Shows The People Traveling Also if i was to convert the staff_cities what would i have to change the include sglobals.php to
  8. Re: Updated jail features [V2]   Whats the mysql for settings
  9. Re: Add Jail Time to Crimes! seriously i done it my self sorry thanks though
  10. Re: [mccode] Jail break thanks arson for great v1 mod
  11. Re: Mccodes V1 Jail   Please Dont Forget To Add This
  12. Re: [mccode v1] Mccodes V1 Jail here is the docrime.php file where adds you to jail <?php /*----------------------------------------------------- -- Free Mod For CE -- docrime.php edited by $Bull$$ EYE$ -----------------------------------------------------*/ 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(); if($ir['jail'] or $ir['hospital']) { die("This page cannot be accessed while in jail or hospital."); } $_GET['c']=abs((int) $_GET['c']); if(!$_GET['c']) { print "Invalid crime"; } else { $q=mysql_query("SELECT * FROM crimes WHERE crimeID={$_GET['c']}",$c); $r=mysql_fetch_array($q); if($ir['brave'] < $r['crimeBRAVE']) { print "You do not have enough Brave to perform this crime."; } else { $ec="\$sucrate=".str_replace(array("LEVEL","EXP","WILL","IQ"), array($ir['level'], $ir['exp'], $ir['will'], $ir['IQ']),$r['crimePERCFORM']).";"; eval($ec); print $r['crimeITEXT']; $ir['brave']-=$r['crimeBRAVE']; mysql_query("UPDATE users SET brave={$ir['brave']} WHERE userid=$userid",$c); if(rand(1,100) <= $sucrate) { print str_replace("{money}",$r['crimeSUCCESSMUNY'],$r['crimeSTEXT']); $ir['money']+=$r['crimeSUCCESSMUNY']; $ir['exp']+=(int) ($r['crimeSUCCESSMUNY']/8); mysql_query("UPDATE users SET crimes=crimes+1 WHERE userid={$ir['userid']}",$c); mysql_query("UPDATE users SET money={$ir['money']},exp={$ir['exp']} WHERE userid=$userid",$c); } else { print $r['crimeFTEXT']; $jailtime=(int) rand(1,15); mysql_query("UPDATE users SET jail=$jailtime WHERE userid=$userid", $c); mysql_query("UPDATE users SET jailreason='Failed a crime' WHERE userid=$userid", $c); } } print " [url='docrime.php?c={$_GET[']Try Again[/url] [url='criminal.php']Crimes[/url]"; } $h->endpage(); ?> Now dont for get the sql ALTER TABLE `users` ADD `jailreason` VARCHAR( 255 ) NOT NULL DEFAULT '' If you like what i have done thank me
  13. Re: Auto Fed Url links in mail I will try can someone give an example of what it should be like
  14. Re: Add Jail Time to Crimes! ok it puts me in jail but no reason
  15. Is there any script that auto feds anyone who sends a url link in a game if so please can either create one or post one mad before
  16. HITMAN 17

    Time

    Re: Time nice one mate :)
  17. Re: Add Jail Time to Crimes!   Please Dont Untill I Have Mine Fixed Please
  18. Re: Alot of help needed kust to try to get a few more bugs fixed :roll:
  19. Re: Alot of help needed i know there are some fixes but not all
  20. Re: Add Jail Time to Crimes! should this code work as .co.cc is down so i cant see <?php /*----------------------------------------------------- -- Mono Country v1.0 BETA -- A product of DBS-entertainment -- Copyright held 2005 by Dabomstew -- docrime.php edited by Shaved92Bravada -----------------------------------------------------*/ 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(); $_GET['c']=abs((int) $_GET['c']); if(!$_GET['c']) { print "Invalid crime"; } else { $q=mysql_query("SELECT * FROM crimes WHERE crimeID={$_GET['c']}",$c); $r=mysql_fetch_array($q); if($ir['brave'] < $r['crimeBRAVE']) { print "You do not have enough Brave to perform this crime."; } else { $ec="\$sucrate=".str_replace(array("LEVEL","EXP","WILL","IQ"), array($ir['level'], $ir['exp'], $ir['will'], $ir['IQ']),$r['crimePERCFORM']).";"; eval($ec); print $r['crimeITEXT']; $ir['brave']-=$r['crimeBRAVE']; mysql_query("UPDATE users SET brave={$ir['brave']} WHERE userid=$userid",$c); if(rand(1,100) <= $sucrate) { print str_replace("{money}",$r['crimeSUCCESSMUNY'],$r['crimeSTEXT']); $ir['money']+=$r['crimeSUCCESSMUNY']; $ir['exp']+=(int) ($r['crimeSUCCESSMUNY']/8); mysql_query("UPDATE users SET crimes=crimes+1 WHERE userid={$ir['userid']}",$c); mysql_query("UPDATE users SET money={$ir['money']},exp={$ir['exp']} WHERE userid=$userid",$c); } else { print $r['crimeFTEXT']; $jailtime=(int) rand(10,30); mysql_query("UPDATE users SET jail=$jailtime WHERE userid=$userid", $c); mysql_query("UPDATE users SET jailreason='Failed a crime' WHERE userid=$userid", $c); } } print " [url='docrime.php?c={$_GET[']Try Again[/url] [url='criminal.php']Crimes[/url]"; } } $h->endpage(); ?>
  21. Re: Add Jail Time to Crimes! i have tryed this and dosnt work for me add you docrime here then i will try it to see if it is me
  22. Re: Alot of help needed i thought people are suppose to help come on help a little
  23. Re: Change password i this for v1 as i am pretty sure i might need to use it
  24. Re: [request][mccodes v2] attack mode i have one where you cannot attack the admin and all you would need to do is change it to a different user level
  25. HITMAN 17

    Time

    Re: Time isnt there a better way like changing the whold game time to uk time
×
×
  • Create New...