Jump to content
MakeWebGames

Magictallguy

Administrators
  • Posts

    2,140
  • Joined

  • Last visited

  • Days Won

    148

Everything posted by Magictallguy

  1. Re: always running from a fight attack.php <?php $menuhide = 1; $atkpage = 1; include(DIRNAME(__FILE__) . '/globals.php'); $_GET['ID'] = abs(@intval($_GET['ID'])); if(!$_GET['ID']) { echo "WTF you doing, bro?"; $h->endpage(); exit; } if($_GET['ID'] == $userid) { echo "Only the crazy attack themselves."; $h->endpage(); exit; } if($ir['hp'] <= 1) { echo "Only the crazy attack when their unconscious. [url='index.php']Back[/url]"; $h->endpage(); exit; } if(isset($_SESSION['attacklost'])) { echo "Only the losers of all their EXP attack when they've already lost. [url='index.php']Back[/url]"; unset($_SESSION['attacklost']); $h->endpage(); exit; } //get player data $youdata = $ir; $sql = sprintf( "SELECT u.*, us.* " . "FROM users u " . "LEFT JOIN userstats us ON (u.userid = us.userid) " . "WHERE (u.userid = %u)", $_GET['ID']); $q = $db->query($sql); if(!$db->num_rows($q)) { echo "User does not exist!"; $h->endpage(); exit; } $odata = $db->fetch_row($q); $myabbr = ($ir['gender'] == "Male") ? "his" : "her"; $oabbr = ($ir['gender'] == "Male") ? "his" : "her"; if($ir['attacking'] && $ir['attacking'] != $_GET['ID']) { echo "Bad, bad, bad girl. [url='index.php']Back[/url]"; unset($_SESSION['attacklost']); $h->endpage(); exit; } if($odata['hp'] == 1) { echo "This player is unconscious. [url='index.php']> Back[/url]"; $h->endpage(); unset($_SESSION['attacking']); unset($ir['attacking']); $update = sprintf("UPDATE users SET attacking = 0 WHERE (userid = %u)", $userid); $db->query($update); exit; } if($odata['hospital']) { echo "This player is in hospital. [url='index.php']> Back[/url]"; $h->endpage(); unset($_SESSION['attacking']); unset($ir['attacking']); $update = sprintf("UPDATE users SET attacking = 0 WHERE (userid = %u)", $userid); $db->query($update); exit; } else if($ir['hospital']) { echo "While in hospital you can't attack. [url='hospital.php']> Back[/url]"; $h->endpage(); unset($_SESSION['attacking']); unset($ir['attacking']); $update = sprintf("UPDATE users SET attacking = 0 WHERE (userid = %u)", $userid); $db->query($update); exit; } else if($odata['jail']) { echo "This player is in jail. [url='index.php']> Back[/url]"; $h->endpage(); unset($_SESSION['attacking']); unset($ir['attacking']); $update = sprintf("UPDATE users SET attacking = 0 WHERE (userid = %u)", $userid); $db->query($update); exit; } else if($ir['jail']) { echo "While in jail you can't attack. [url='jail.php']> Back[/url]"; $h->endpage(); unset($_SESSION['attacking']); unset($ir['attacking']); $update = sprintf("UPDATE users SET attacking = 0 WHERE (userid = %u)", $userid); $db->query($update); exit; } echo "<table width='100%'>"; echo "<tr>"; echo "<td colspan='2' align='center'>"; if(isset($_GET['wepid'])) { if(!isset($_SESSION['attacking']) && !$ir['attacking']) { if($youdata['energy'] >= $youdata['maxenergy']/4) { $youdata['energy']-= floor($youdata['maxenergy']/4); $me = floor($youdata['maxenergy']/4); $energy = sprintf("UPDATE users SET energy = energy - %u WHERE (userid = %u)", $me, $userid); $db->query($energy); $_SESSION['attacklog'] = false; $_SESSION['attackdmg'] = 0; } else { echo "You can only attack someone when you have 25% energy"; $h->endpage(); exit; } } $_SESSION['attacking'] = 1; $ir['attacking'] = $odata['userid']; $attacking = sprintf("UPDATE users SET attacking = %u WHERE (userid = %u)", $ir['attacking'], $userid); $db->query($attacking); $_GET['wepid'] = abs(@intval($_GET['wepid'])); $_GET['nextstep'] = abs(@intval($_GET['nextstep'])); //damage if($_GET['wepid'] != $ir['equip_primary'] && $_GET['wepid'] != $ir['equip_secondary']) { echo "Stop trying to abuse a game bug. You can lose all your EXP for that. [url='index.php']> Home[/url]"; $noexp = sprintf("UPDATE users SET exp = 0 WHERE (userid = %u)", $userid); $db->query($noexp); $h->endpage(); exit; } $item = sprintf("SELECT * FROM items WHERE (itmid = %u)", $_GET['wepid']); $qo = $db->query($item); $r1 = $db->fetch_row($qo); $hit = mt_rand(70,75); switch ($hit) { case 70: $hitspot = 'Legs'; $img= '/home2/respect/public_html/legs.jpg'; break; case 71: $hitspot = 'Arm'; $img= '/home2/respect/public_html/arms.jpg'; break; case 72: $hitspot = 'Groin'; $img= '/home2/respect/public_html/groin.jpg'; break; case 73: $hitspot = 'Torso'; $img= '/home2/respect/public_html/torso.jpg'; break; case 74: $hitspot = 'Heart'; $img= '/home2/respect/public_html/heart.jpg'; break; case 75: $hitspot = 'Head'; $img= '/home2/respect/public_html/head.jpg'; } $mydamage = (int) (($r1['weapon'] * $youdata['strength'] / ($odata['guard'] / 1.5)) * (mt_rand(8000,12000) / 10000) * (($hit * .015) * $youdata['will'] / $youdata['maxwill'] * 100 / $odata['will'] * $odata['maxwill'] * 100 / 2.5)); $hitratio = max(10, min(60 * $ir['agility'] / $odata['agility'], 95)); if(mt_rand(1,100) <= $hitratio) { $armour = sprintf("SELECT armor FROM items WHERE (itmid = %u) ORDER BY RAND()", $odata['equip_armor']); $q3 = $db->query($armour); if($db->num_rows($q3)) { $mydamage -= $db->fetch_single($q3); } if($mydamage < -100000) { $mydamage = abs($mydamage); } else if($mydamage < 1) { $mydamage = 1; } $crit = mt_rand(1,40); if($crit == 17) { $mydamage *= mt_rand(20,40) / 10; } else if($crit == 25) { $mydamage /= (mt_rand(20,40) / 10); } $mydamage = round($mydamage); $odata['hp'] -= $mydamage; if($odata['hp'] == 1) { $odata['hp'] = 0; $mydamage += 1; } $updatehp = sprintf("UPDATE users SET hp = hp - %u WHERE (userid = %u)", $mydamage, $_GET['ID']); $db->query($updatehp); echo sprintf("[img=%s]", $img, $set['game_name']); echo sprintf("<span style='color:red;'>%u. Using your %s, you hit %s in the %s doing %s damage (%s)</span> ", $_GET['nextstep'], stripslashes($r1['itmname']), stripslashes($odata['username']), $hitspot, number_format($mydamage), number_format($odata['hp'])); $_SESSION['attackdmg'] += $mydamage; $_SESSION['attacklog'] .= sprintf("<span style='color:red;'>%u. Using %s %s, %s hit %s in the %s doing %s damage (%s)</span> ", $_GET['nextstep'], $myabbr, $r1['itmname'], $ir['username'], $odata['username'], $hitspot, number_format($mydamage), number_format($odata['hp'])); } else { echo sprintf("<span style='color:red;'>%u. You tried to hit %s in the %s, but missed (%s)</span> ", $_GET['nextstep'], stripslashes($odata['username']), $hitspot, number_format($odata['hp'])); $_SESSION['attacklog'] .= sprintf("<span style='color:red;'>%u. %s tried to hit %s in the %s, but missed (%s)</span> ", $_GET['nextstep'], $ir['username'], $odata['username'], $hitspot, number_format($odata['hp'])); } if($odata['hp'] <= 0) { $odata['hp'] = 0; $_SESSION['attackwon'] = $_GET['ID']; $nohp = sprintf("UPDATE users SET hp = 0 WHERE (userid = %u)", $_GET['ID']); $db->query($nohp); echo sprintf(" [b]What do you want to do with %s now?[/b] ", stripslashes($odata['username'])); echo sprintf("<form action='attackwon.php?ID=%u' method='post'><input type='submit' value='Mug Them' align='center' /></form>", $_GET['ID']); echo sprintf("<form action='attackbeat.php?ID=%u' method='post'><input type='submit' value='Hospitalize Them' align='center' /></form>", $_GET['ID']); echo sprintf("<form action='attacktake.php?ID=%u' method='post'><input type='submit' value='Leave Them'align='center' /></form>", $_GET['ID']); } else { //choose opp gun $getweapon = sprintf("SELECT * FROM items WHERE (itmid IN(%u, %u))", $odata['equip_primary'], $odata['equip_secondary']); $eq = $db->query($getweapon); if(!$db->num_rows($eq)) { $wep = "Fists"; $dam = (int)(((($odata['strength'] / $ir['guard'] / 100)) + 1) * (mt_rand(8000,12000) / 10000)); } else { $cnt = 0; while($r = $db->fetch_row($eq)) { $enweps[] = $r; $cnt ++; } $weptouse = mt_rand(0, $cnt-1); $wep = $enweps[$weptouse]['itmname']; $dam = (int) (($enweps[$weptouse]['weapon'] * $odata['strength'] / ($youdata['guard'] / 1.5)) * (mt_rand(8000,12000) / 10000)); } $hitratio = max(10, min(60 * $odata['agility'] / $ir['agility'], 95)); if(mt_rand(1,100) <= $hitratio) { $getarmour = sprintf("SELECT armor FROM items WHERE (itmid = %u) ORDER BY RAND()", $ir['equip_armor']); $q3 = $db->query($getarmour); if($db->num_rows($q3)) { $dam -= $db->fetch_single($q3); } if($dam < -100000) { $dam = abs($dam); } else if($dam < 1) { $dam = 1; } $crit = mt_rand(1,40); if($crit == 17) { $dam *= mt_rand(20,40) / 10; } else if($crit == 25) { $dam /= (mt_rand(20,40) / 10); } $dam = round($dam); $youdata['hp'] -= $dam; if($youdata['hp'] == 1) { $dam += 1; $youdata['hp'] = 0; } $takehp = sprintf("UPDATE users SET hp = hp - %u WHERE (userid = %u)", $dam, $userid); $db->query($takehp); $ns = $_GET['nextstep'] + 1; global $db,$ir,$c,$h,$hitspot; echo sprintf("<span style='color:blue;'>%u. Using %s %s, %s hit you in the %s doing %s damage (%s)</span> ", $ns, $oabbr, stripslashes($wep), stripslashes($odata['username']), $hitspot, number_format($dam), number_format($youdata['hp'])); $_SESSION['attacklog'] .= sprintf("<span style='color:blue;'>%u. Using %s %s, %s hit %s doing %s damage (%s)</span> ", $ns, $oabbr, $wep, $odata['username'], $ir['username'], number_format($dam), number_format($youdata['hp'])); } else { $ns = $_GET['nextstep'] + 1; echo sprintf("<span style='color:red;'>%s. %s tried to hit you in the %s, but missed (%s)</span> ", $ns, stripslashes($odata['username']), $hitspot, number_format($youdata['hp'])); $_SESSION['attacklog'] .= sprintf("<span style='color:blue;'>%u. %s tried to hit %s, but missed (%s)</span> ", $ns, $odata['username'], $ir['username'], number_format($youdata['hp'])); } if($youdata['hp'] <= 0) { $youdata['hp'] = 0; $_SESSION['attacklost'] = 1; $nohp = sprintf("UPDATE users SET hp = 0 WHERE (userid = %u)", $userid); $db->query($nohp); echo sprintf("<form action='attacklost.php?ID=%u' method='post'><input type='submit' value='Continue' />", $_GET['ID']); } } } else if($odata['hp'] < 5) { echo "You can only attack those who have health"; $h->endpage(); exit; } else if($ir['gang'] == $odata['gang'] && $ir['gang'] > 0) { echo sprintf("You are in the same gang as %s! What are you smoking today dude!", stripslashes($odata['username'])); $h->endpage(); exit; } else if($youdata['energy'] < $youdata['maxenergy']/4) { echo "You can only attack someone when you have 25% energy"; $h->endpage(); exit; } else if($youdata['location'] != $odata['location']) { echo "You can only attack someone in the same location!"; $h->endpage(); exit; } else { } echo "</td></tr>"; if($youdata['hp'] <= 0 || $odata['hp'] <= 0) { echo "</table>"; } else { $vars['hpperc'] = round($youdata['hp'] / $youdata['maxhp'] * 100); $vars['hpopp'] = 100 - $vars['hpperc']; $vars2['hpperc'] = round($odata['hp'] / $odata['maxhp'] * 100); $vars2['hpopp'] = 100 - $vars2['hpperc']; $selectweapons = sprintf("SELECT * FROM items WHERE (itmid IN(%u, %u))", $ir['equip_primary'], $ir['equip_secondary']); $mw = $db->query($selectweapons); echo "<tr><td colspan='2' align='center'>Attack with: "; if($db->num_rows($mw)) { while($r = $db->fetch_row($mw)) { $ns = (!isset($_GET['nextstep'])) ? 1 : $_GET['nextstep'] + 2; if($r['itmid'] == $ir['equip_primary']) { echo "[b]Primary Weapon:[/b] "; } if($r['itmid']==$ir['equip_secondary']) { echo "[b]Secondary Weapon:[/b] "; } echo sprintf("[url='attack.php?nextstep=%u&ID=%u&wepid=%u']%s[/url] ", $ns, $_GET['ID'], $r['itmid'], stripslashes($r['itmname'])); } } else { echo "You have nothing to fight with."; } echo "</table>"; echo "<table width='50%' align='center'>"; echo "<tr>"; echo "<td align='right'>Your Health: </td>"; echo sprintf("<td>[img=greenbar.png][img=redbar.png]</td>", $vars['hpperc'], $vars['hpopp']); echo "</tr>"; echo "<tr>"; echo "<td align='right'>Opponents Health: </td>"; echo sprintf("<td>[img=greenbar.png][img=redbar.png]</td>", $vars2['hpperc'], $vars2['hpopp']); echo "</tr>"; echo "</table>"; } $h->endpage(); ?>   NOTICE: Untested
  2. Re: always running from a fight Give me 10 minutes, just recoding the attack.php for you :)
  3. Re: [MCCODES v1_v2} Mp3 Webpage Player ( My Final Free Mod ) Good song :D
  4. Re: always running from a fight   You should be ok :)
  5. Re: always running from a fight Just attack.php is needed for that.
  6. Re: always running from a fight   Nope, just the attacking session.
  7. Re: always running from a fight Nope. While looking similar, the if statement is not the place to put unset :P Oh.. I'd replace that if statement with if(!isset($_SESSION['attacking']) && !$ir['attacking']) While making no difference to what you see, the code like it better :P
  8. Re: always running from a fight One thing that helped me when I noticed this error is unset() Wherever you see $_SESSION['attacking']=0; Replace with unset($_SESSION['attacking']);   That fixed it for me!
  9. Re: [MCCodes V2] Jail/Hosp Count   Ah, 'tis not a problem. 'tis the basics of physics (forgive the language, haven't slept yet..) The more you select, the longer it takes. If you have a database with 100 users, you won't notice much of a difference. But, on the other hand, if you have a database with 100,000 users, you'll surely feel the drain on your server! Select only what is required to keep your code quick, and efficient! You could also use this method: $hc = $db->num_rows($db->query("SELECT userid FROM users WHERE (hospital > 0)")); $jc = $db->num_rows($db->query("SELECT userid FROM users WHERE (jail > 0)"));   Both methods I have posted would return the same answer. Both methods would also work a lot faster than selecting everything. ;)
  10. Re: [MCCodes V2] Jail/Hosp Count   WAH!!! Don't select everything from the users table! lol   $hc = $db->fetch_single($db->query("SELECT COUNT(userid) FROM users WHERE (hospital > 0)")); $jc = $db->fetch_single($db->query("SELECT COUNT(userid) FROM users WHERE (jail > 0)"));
  11. Re: [mccode v1] Mccodes V1 Jail Ah, got there in the end xD
  12. Re: [mccode v1] Mccodes V1 Jail   is the error i get Should now be fixed, I've updated the code, simply add it straight in :)
  13. Re: [mccode v1] Mccodes V1 Jail   <?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(); if(!isset($_GET['u'])) { echo "User has not been specified"; $h->endpage(); exit; } $_GET['u'] = abs(@intval($_GET['u'])); if($_GET['u'] == $userid) { echo "You can't bust yourself out!"; $h->endpage(); exit; } $sql = sprintf("SELECT username, jail FROM users WHERE (userid = %u)", $_GET['u']); $query = mysql_query($sql, $c) or die(mysql_error()); $user = mysql_fetch_assoc($query); if(!mysql_num_rows($query)) { echo sprintf("%s is not in jail", stripslashes($user['username'])); $h->endpage(); exit; } $rand = mt_rand(1, 2); if($rand == 1) { $bust = sprintf("UPDATE users SET jail = 0 WHERE (userid = %u)", $_GET['u']); mysql_query($bust) or die(mysql_error()); echo sprintf("You busted %s from jail!", stripslashes($user['username'])); } else { $jailtime = abs(@intval(mt_rand(1, $user['jail']))); $jail = sprintf("UPDATE users SET jail = %u, jailreason = 'Failed to bust out [url='']%s[/url]' WHERE (userid = %u)", $jailtime, $_GET['u'], $user['username'], $userid); mysql_query($jail, $c) or die(mysql_error()); echo sprintf("You were caught by the jail guards, failed to bust out %s and gained yourself a %u minute jail sentence!", stripslashes($user['username']), $jailtime); } ?>   Should work ;) EDIT: Code updated
  14. Re: help please   This really isn't the place to post that. Having said that, the rules do seem, somewhat, relaxed in recent weeks.. Go into your cPanel, go to phpMyAdmin, go to your database, click on SQL cPanel -> phpMyAdmin -> Your database -> SQL Copy and paste this in - then run it (click Go)! UPDATE users SET user_level = 2 WHERE userid = YOUR ID HERE; I presume you're ID 1? Example: UPDATE users SET user_level = 2 WHERE userid = 1;
  15. Re: [mccode v1] Mccodes V1 Jail   Did you get any errors?
  16. Re: [mccodes v2] Combined Gallery and Comment System [$40.00] This is now free - and can be found on PHP Forums Refunds have been offered, the buyers said I could keep! :D
  17. Re: [v2] CSS Administration System [$10] This is now free - and can be found on PHP Forums Refunds have been offered, the buyers said I could keep! :D
  18. Re: Injection attempt.   That's not what he asked..
  19. Re: always running from a fight Please, wrap it in code tags!
  20. Re: [mccode v1] Mccodes V1 Jail     <?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(); if(!isset($_GET['user'])) { echo "User has not been specified"; $h->endpage(); exit; } $_GET['user'] = abs(@intval($_GET['user'])); if($_GET['user'] == $userid) { echo "You can't bust yourself out!"; $h->endpage(); exit; } $sql = sprintf("SELECT username, jail FROM users WHERE (userid = %u)", $_GET['user']); $query = mysql_query($sql, $c) or die(mysql_error()); $user = mysql_fetch_assoc($query); if(!mysql_num_rows($query)) { echo sprintf("%s is not in jail", stripslashes($user['username'])); $h->endpage(); exit; } $rand = mt_rand(1, 2); if($rand == 1) { $bust = sprintf("UPDATE users SET jail = 0 WHERE (userid = $u)", $_GET['user']); mysql_query($bust) or die(mysql_error()); echo sprintf("You busted %s from jail!", stripslashes($user['username'])); } else { $jailtime = abs(@intval(mt_rand(1, $user['jail']))); $jail = sprintf("UPDATE users SET jail = %u, jailreason = 'Failed to bust out [url='']%s[/url]' WHERE (userid = %u)", $jailtime, $_GET['user'], $user['username'], $userid); mysql_query($jail, $c) or die(mysql_error()); echo sprintf("You were caught by the jail guards, failed to bust out %s and gained yourself a %u minute jail sentence!", stripslashes($user['username']), $jailtime); } ?>   Untested
  21. Re: Injection attempt. Change your IP catcher in header.php and global_func.php. Find: $IP = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR'];   Change to/replace with: $IP = $_SERVER['REMOTE_ADDR'];
  22. Re: mainmenu.php help Your else is missing the curly braces {}
  23. Re: I need help with a Mod i made   You no longer need to worry about the MC Craps version, use mne! :P Hahaha Just yesterday I had a guy ask me to check your 'secure forums' that he installed on his site. Within 2 minutes I had access to the head admin's account. That can't be right O.o I'll look into it some more..
  24. Re: [V1] No EXP from crimes... docrime.php <?php /*----------------------------------------------------- -- Free Mod For CE -- docrime.php edited by $Bull$$ EYE$ -----------------------------------------------------*/ session_start(); require "global_func.php"; if(!isset($_SESSION['loggedin'])) { 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']) { echo "This page cannot be accessed while in jail or hospital."; $h->endpage(); exit; } $_GET['c'] = abs(@intval($_GET['c'])); if(!$_GET['c']) { echo "Invalid crime"; $h->endpage(); exit; } $sql = sprintf("SELECT * FROM crimes WHERE (crimeID = %u)", $_GET['c']); $q = mysql_query($sql,$c) or die(mysql_error()); if(!mysql_num_rows($q)) { echo "Invalid Crime"; $h->endpage(); exit; } $r = mysql_fetch_array($q); if($ir['brave'] < $r['crimeBRAVE']) { echo "You do not have enough Brave to perform this crime."; $h->endpage(); exit; } $find = array("LEVEL","EXP","WILL","IQ"); $replace = array($ir['level'], $ir['exp'], $ir['will'], $ir['IQ']); $ec="\$sucrate=".str_replace($find, $replace, $r['crimePERCFORM']).";"; eval($ec); print stripslashes($r['crimeITEXT']); $ir['brave']-=$r['crimeBRAVE']; $sql = sprintf("UPDATE users SET brave = %u WHERE (userid = %u)", $ir['brave'], $userid); mysql_query($sql,$c) or die(mysql_error()); if(rand(1,10) <= $sucrate) { $moncrys = array('{money}', '{crystals}'); $repmncr = array($r['crimeSUCCESSMUNY'], $r['crimeSUCCESSCRYS']); print str_replace($moncrys, $repmncr, stripslashes($r['crimeSTEXT'])); $ir['money']+=$r['crimeSUCCESSMUNY']; $ir['exp']+=(int) ($r['crimeXP']/8); $sql = sprintf("UPDATE users SET crimes = crimes + 1, money = %s, exp = %s WHERE (userid = %u)", $ir['money'], $ir['exp'], $userid); mysql_query($sql,$c) or die(mysql_error()); } else { print stripslashes($r['crimeFTEXT']); $jailtime = (int) rand(1,15); $sql = sprintf("UPDATE users SET jail = %u, jailreason = 'Failed a crime' WHERE (userid = %u)", $jailtime, $userid); mysql_query($sql, $c) or die(mysql_error()); } echo sprintf(" [url='docrime.php?c=%u']Try Again[/url] ", $_GET['c']); echo "[url='criminal.php']Crimes[/url]"; $h->endpage(); ?>
  25. Re: I need help with a Mod i made   You no longer need to worry about the MC Craps version, use mne! :P
×
×
  • Create New...