
inferno564
Members-
Posts
66 -
Joined
-
Last visited
inferno564's Achievements
Newbie (1/14)
0
Reputation
-
Re: mccodes v2 newspaper go here its an updated version http://criminalexistence.com/ceforums/index.php?topic=29110
-
Re: [Mccode v2] Newspaper Mod "in Order" sorry files got deleted will fix here we go images apoc.wp3h.co.cc/images/a1.jpg.zip php file + css apoc.wp3h.co.cc/images/1.css.zip
-
Re: [mccodes V2] Nuclear Bomb here is how to make the bomb an item got it from donator packs as items create nbuse.php and add this code <?php include "globals.php"; $_GET[iD] = abs((int) $_GET[iD]); if(!$_GET[iD]) { echo '<h2>Oops</h2>Invalid use of file'; } else { $i=$db->query("SELECT iv.*,i.*,it.* FROM inventory iv LEFT JOIN items i ON iv.inv_itemid=i.itmid LEFT JOIN itemtypes it ON i.itmtype=it.itmtypeid WHERE iv.inv_id={$_GET[iD]} AND iv.inv_userid=$userid"); } if(!$db->num_rows($i)) { echo "<h2>Oops</h2>Invalid item ID"; } else { $r=$db->fetch_row($i); if($r[itmid] == 21) { print "You have detonated the bomb, everyone haves been hospitalized and you gained three levels"; $db->query("UPDATE users SET level=level+3 WHERE userid=$userid"); $db->query("UPDATE users SET hospital=100 WHERE userid != $userid"); $db->query("UPDATE users SET hospreason='<a href=viewuser.php?u=$userid>$gn{$u}</a> Detonated a Nuclear Bomb' WHERE userid != $userid"); $db->query("UPDATE users SET bomb=bomb-1 WHERE userid=$userid"); global $db,$ir,$c,$userid,$h; $del_job = sprintf("UPDATE `users` SET `job` = 0, `jobrank` = 0 WHERE (`userid` = %u)", abs(@intval($userid))); $do_del_job = mysql_query($del_job); if($do_del_job === FALSE) { print "".mysql_error().""; } echo '<h2>Nuclear Bomb</h2>You have Detonated a Nuclear Bomb, houses, schools, businesses all burn to the ground! Even the place were you work burns. All of it is lost, but hay you went up 3 levels'; } item_remove($userid, $r['inv_itemid'], 1); } $h->endpage(); ?> make a nuclearbomb item. an change 21 item id to your nuclearbombs id. add this to your header remember replace 21 id with your items id $chance= 25000; $info = ''; $random=mt_rand(1, $chance); if ($random==1){ echo 'You see a US naval cargo ship docked up in your local port, you sneek on to it and shoot the guards as they sip on there herbal tea you look throgh the ships cargo finaly you find a bomb and walk off with it into the night.<a href ='.$SERVER['PHP_SELF'].'?action=info>info</a>'; //item_add($userid, $r['21'], 1); $db->query("INSERT INTO inventory VALUES('',21,$userid,1)",$c) or die(mysql_error()); } if($action=="info") { '<script>alert("'.$info.'");</script>'; } and last but not least add this to inventory.php under this code if($i['effect1_on'] || $i['effect2_on'] || $i['effect3_on']) { echo " [[url='itemuse.php?ID={$i[']Use[/url]]"; } replace 21 with you nuclear bombs id if ($i['itmid'] == 21) { echo " [[url='nbuse.php?ID={$i[']Use[/url]]"; }
-
Re: v2 gang OC finally found it here http://criminalexistence.com/ceforums/index.php?topic=19007.0
-
Re: v2 gang OC where is my million you spelled organized wrong lol even if you fix it it. it still won't come up with :? anything thats why i was asking because i could not find it. i found it once before but i can't find it again. Its like it got removed
-
Re: v2 gang OC where is my million you spelled organized wrong lol
-
this has been probably posted before, but i can't find it. so my question is what are the links to smenu that let you make OCs for gangs aswell as edit and remove OCs and if there is not any. is there a script i can use to do this? thanks for reading. hope to get help
-
Re: [v2] New Header have you tried reuploading your images? because there showing up as corrupted
-
can someone give me this picture for v2 iv lost it and with out it the xp bar is out of shape that is in header.php <font color="white"> 35%</font> [img=navybar.png] [img=redbar.png]
-
ok am a noob at this so don't criticize me for suggesting this im just trying to help. so couldn't you sanitize all the querys from the global php file and make it strip all the slashes or add them or what ever. that way you would have somewhat more security. Ya its better to go through all your files and secure them, but this would be like a fail safe. Just in case you forget a query or 2. ya i now you should write your code secure in the first place, but who does that lol :roll:
-
mccode-v1 Stock Market. Working + Secured
inferno564 replied to Haunted Dawg's topic in Free Modifications
Re: [mccode v2] Stock Market. Working + Secured for some reason the stocks wont go up or down they just stay the same -
Re: [Mccode v2] Newspaper Mod "in Order" ty
-
Re: shoutbox spam help wow it used to be free not any more i gess got it here but now they want you pay for it that sucks http://www.iamwicked.net/mods.php?page=free never mind they upgraded this script so yes i gess it is free
-
Re: shoutbox spam help wow it used to be free not any more i gess got it here but now they want you pay for it that sucks http://www.iamwicked.net/mods.php?page=free
-
i was hoping to find away to make it so people can't spam in my shout box like there urls and stuff, but i can't figure out how. if someone could do that with this code it would be much appreciated. <?php session_start(); if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; include "config.php"; global $_CONFIG; define("MONO_ON", 1); require "class/class_db_{$_CONFIG['driver']}.php"; include "global_func.php"; $db=new database; $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']); $db->connect(); $c=$db->connection_id; $set=array(); $settq=$db->query("SELECT * FROM settings"); $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid"); $ir=mysql_fetch_array($is); stripslashes($variable); print ' <style> body { padding: 0px 0px 0px 0px; background: #FFFFFF; font-family: Tahoma; font-size: 11px; } a { text-decoration: none; color: #323232; font-weight: bold; } </style>'; if($_POST['shout']) { $message = mysql_real_escape_string(strip_tags($_POST['shout'])); mysql_query("INSERT INTO `shoutbox` ( `id` , `time` , `from` , `message` ) VALUES ( NULL , unix_timestamp(), '{$userid}', '{$message}' );") or die(mysql_error()); print '<meta http-equiv="refresh" content="0;url=shoutbox.php"/>'; } $sql = sprintf("SELECT * FROM shoutbox ORDER BY time DESC LIMIT 150"); $q = mysql_query($sql); if(!mysql_num_rows($q)) { print "<center>There are no shouts</center>"; } else { while($r=$db->fetch_row($q)) { $sql = sprintf("SELECT * FROM users WHERE userid={$r['from']}"); $t= mysql_query($sql); if(!mysql_num_rows($t)) { $from="Unknown"; } else { $u = mysql_fetch_array($t); $from = "[url='viewuser.php?u={$u[']{$u['username']}[/url]"; } //Work out if it was sent today or last week. $la=time()-$r['time']; if($la < 86400) { $when="Today"; } if($la > 86400 && $la < 172800) { $when="Yesterday"; } elseif($la >= 172800 && $la <= 604800) { $when="This week"; } elseif($la >= 604800 && $la <= 2419200) { $when="This month"; } $time=($r['time'] > 0) ?date('g:i:s a',$r['time']) : "Never"; $message = strip_tags($r['message']); print "<font color='blue'>{$from} - [b]{$when}[/b] at {$time}:</font> {$message} "; } } ?>