
inferno564
Members-
Posts
66 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by inferno564
-
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} "; } } ?>
-
Well i know how mods can get hard to install when there is multiple posts every where so i decided to make it easy. So lets get started Demo http://apoc.wp3h.co.cc/login.php User: demo pass is: demo note you spam, sql inject,hack, or be dumb on my site I'm removing the user. Don't ruin it for others! :-( First download this zip file and extract it to your web folder ---->apoc.wp3h.co.cc/css-images-php files.zip enter these sqls INSERT INTO `settings` ( `conf_id` , `conf_name` , `conf_value` ) VALUES ( '', 'game_marquee', 'default' ) ALTER TABLE `papercontent` ADD `content1` LONGTEXT CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL ; ALTER TABLE `papercontent` ADD `content2` LONGTEXT CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL ; ALTER TABLE `papercontent` ADD `content3` LONGTEXT CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL ; ALTER TABLE `papercontent` ADD `content4` LONGTEXT CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL ; ALTER TABLE `papercontent` ADD `content5` LONGTEXT CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL ; CREATE TABLE `npaper` ( `npID` int(11) NOT NULL auto_increment, `npADDER` int(11) NOT NULL default '0', `npTITLE` varchar(255) NOT NULL default '', `npBODY` text NOT NULL, `npTIME` int(11) NOT NULL default '0', PRIMARY KEY (`npID`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=20 ; Find In staff.php Game Description: <textarea rows='7' cols='50' name='game_description'>{$set['game_description']}</textarea> Add Under: Game MARQUEE: <textarea rows='7' cols='50' name='game_marquee'>{$set['game_marquee']}</textarea> second I worked hard on this don't take my credit some things i used from the forms here you can see the credit here and anything else http://criminalexistence.com/ceforums/index.php?topic=29011.0 :-D hope there's no problems if there is post them. Oh and if you want screen shots there here http://criminalexistence.com/ceforums/index.php?topic=29011.0
-
Re: mccodes v2 newspaper what do you mean? i have pics
-
Re: mccodes v2 newspaper here u go staff menu smenu.php <?php global $db,$c,$ir, $set; echo "> [url='index.php']Back To Game[/url]<hr /> [b]General[/b] > [url='staff.php']Index[/url] "; if($ir['user_level']==2) { $m = mysql_query("SELECT * FROM messages"); $t = mysql_num_rows($m); echo '>[url="staff_contact.php"]Contact Messages (' .$t. ' UnReplied)[/url] '; echo " > [url='staff.php?action=basicset']Basic Settings[/url] > [url='staff.php?action=announce']Add Announcement[/url] "; } if($ir['user_level'] <= 3) { echo " <hr /> [b]Users[/b] "; if($ir['user_level']==2) { echo "> [url='staff_users.php?action=newuser']Create New User[/url] > [url='staff_users.php?action=edituser']Edit User[/url] > [url='staff_users.php?action=deluser']Delete User[/url] "; } echo "> [url='staff_users.php?action=invbeg']View User Inventory[/url] > [url='staff_users.php?action=creditform']Credit User[/url] "; if($ir['user_level']==2) { echo "> [url='staff_users.php?action=masscredit']Mass Payment[/url] > [url='staff_users.php?action=forcelogout']Force User Logout[/url] "; } echo " > [url='staff_users.php?action=reportsview']Player Reports[/url] "; echo " <hr /> [b]Items[/b] "; if($ir['user_level']==2) { echo ">[url='staff_items.php?action=newitem']Create New Item[/url] "; echo "> [url='uploaditmpic.php']Upload Picture of Item[/url] "; } echo "> [url='staff_items.php?action=giveitem']Give Item To User[/url] "; if($ir['user_level']==2) { echo "> [url='staff_items.php?action=edititem']Edit Item[/url] > [url='staff_items.php?action=killitem']Delete An Item[/url] > [url='staff_items.php?action=newitemtype']Add Item Type[/url] "; } } echo "<hr />[b]Logs[/b] > [url='staff_logs.php?action=atklogs']Attack Logs[/url] > [url='staff_logs.php?action=cashlogs']Cash Xfer Logs[/url] > [url='staff_logs.php?action=cryslogs']Crystal Xfer Logs[/url] > [url='staff_logs.php?action=banklogs']Bank Xfer Logs[/url] > [url='staff_logs.php?action=itmlogs']Item Xfer Logs[/url] > [url='staff_logs.php?action=maillogs']Mail Logs[/url] "; if($ir['user_level'] == 2) { echo "> [url='staff_logs.php?action=stafflogs']Staff Logs[/url] "; } if($ir['user_level'] <= 3) { echo " <hr /> [b]Gangs[/b] > [url='staff_gangs.php?action=grecord']Gang Record[/url] > [url='staff_gangs.php?action=gcredit']Credit Gang[/url] > [url='staff_gangs.php?action=gwar']Manage Gang Wars[/url] > [url='staff_gangs.php?action=gedit']Edit Gang[/url] <hr /> [b]movies[/b] > [url='staff_videos.php?action=addvideo']Add Movie[/url] > [url='staff_videos.php?action=editvideo']Edit Movies[/url] > [url='staff_videos.php?action=delvideo']Delete Movie[/url] "; } if($ir['user_level']==2) { echo " <hr /> [b]Shops[/b] > [url='staff_shops.php?action=newshop']Create New Shop[/url] > [url='staff_shops.php?action=newstock']Add Item To Shop[/url] > [url='staff_shops.php?action=delshop']Delete Shop[/url] <hr />[b]Polls[/b] > [url='staff_polls.php?action=spoll']Start Poll[/url] > [url='staff_polls.php?action=endpoll']End A Poll[/url] <hr />[b]Jobs[/b] > [url='staff_jobs.php?action=newjob']Make a new Job[/url] > [url='staff_jobs.php?action=jobedit']Edit a Job[/url] > [url='staff_jobs.php?action=jobdele']Delete a Job[/url] > [url='staff_jobs.php?action=newjobrank']Make a new Job Rank[/url] > [url='staff_jobs.php?action=jobrankedit']Edit a Job Rank[/url] > [url='staff_jobs.php?action=jobrankdele']Delete a Job Rank[/url] <hr />[b]Houses[/b] > [url='staff_houses.php?action=addhouse']Add House[/url] > [url='staff_houses.php?action=edithouse']Edit House[/url] > [url='uploadhsepix.php']Upload House Pic[/url] > [url='staff_houses.php?action=delhouse']Delete House[/url] <hr />[b]Cities[/b] > [url='staff_cities.php?action=addcity']Add City[/url] > [url='staff_cities.php?action=editcity']Edit City[/url] > [url='staff_cities.php?action=delcity']Delete City[/url] <hr />[b]Forums[/b] > [url='staff_forums.php?action=addforum']Add Forum[/url] > [url='staff_forums.php?action=editforum']Edit Forum[/url] > [url='staff_forums.php?action=delforum']Delete Forum[/url] <hr />[b]School[/b] > [url='staff_courses.php?action=addcourse']Add a course.[/url] > [url='staff_courses.php?action=editcourse']Edit a course.[/url] > [url='staff_courses.php?action=delcourse']Delete a course.[/url] <hr />[b]Crimes[/b] > [url='staff_crimes.php?action=newcrime']Create New Crime[/url] > [url='staff_crimes.php?action=editcrime']Edit Crime[/url] > [url='staff_crimes.php?action=delcrime']Delete Crime[/url] > [url='staff_crimes.php?action=newcrimegroup']Create New Crime Group[/url] > [url='staff_crimes.php?action=editcrimegroup']Edit Crime Group[/url] > [url='staff_crimes.php?action=delcrimegroup']Delete Crime Group[/url] > [url='staff_crimes.php?action=reorder']Reorder Crime Groups[/url] <hr />[b]Battle Tent[/b] > [url='staff_battletent.php?action=addbot']Add Challenge Bot[/url] > [url='staff_battletent.php?action=editbot']Edit Challenge Bot[/url] > [url='staff_battletent.php?action=delbot']Remove Challenge Bot[/url] "; } echo "<hr /> [b]Punishments[/b] > [url='staff_punit.php?action=mailform']Mail Ban User[/url] > [url='staff_punit.php?action=unmailform']Un-Mailban User[/url] > [url='staff_punit.php?action=forumform']Forum Ban User[/url] > [url='staff_punit.php?action=unforumform']Un-Forumban User[/url] > [url='staff_punit.php?action=fedform']Jail User[/url] > [url='staff_punit.php?action=fedeform']Edit Fedjail Sentence[/url] > [url='staff_punit.php?action=unfedform']Unjail User[/url] > [url='staff_punit.php?action=ipform']Ip Search[/url] "; if($ir['user_level']==2) { echo "<hr />[b]Special[/b] > [url='staff_special.php?action=editnews']Edit Newspaper[/url] > [url='staff_special.php?action=massmailer']Mass mailer[/url] > [url='staff_special.php?action=stafflist']Staff List[/url] > [url='staff_special.php?action=userlevelform']Adjust User Level[/url] > [url='staff_special.php?action=givedpform']Give User Donator Pack[/url] "; } echo "<hr />"; echo "[b]Staff Online:[/b] "; $q=$db->query("SELECT * FROM users WHERE laston>(unix_timestamp()-15*60) AND user_level>1 ORDER BY userid ASC"); while($r=$db->fetch_row($q)) { $la=time()-$r['laston']; $unit="secs"; if($la >= 60) { $la=(int) ($la/60); $unit="mins"; } if($la >= 60) { $la=(int) ($la/60); $unit="hours"; if($la >= 24) { $la=(int) ($la/24); $unit="days"; } } echo "[url='viewuser.php?u={$r[']{$r['username']}[/url] ($la $unit) "; } echo "<hr /> > [url='logout.php']Logout[/url] Time is now "; echo date ('F j, Y')." ".date('g:i:s a'); ?>
-
Re: Spam filter New- very nice +1
-
Re: mccodes v2 newspaper version 2 mccodes only
-
[mccodes V2] Add any type of video media to your game
inferno564 replied to Uridium's topic in Free Modifications
Re: [mccodes V2] Add any type of video media to your game ya still wont work when you add a video and click [add video] it just refreshes the page :? -
[mccodes V2] Add any type of video media to your game
inferno564 replied to Uridium's topic in Free Modifications
Re: [mccodes V2] Add any type of video media to your game i cant get it to add a video? -
Re: mccodes v2 newspaper :-D
-
Re: mccodes v2 newspaper lol thank you for reminding me here is the css and images images go in images folder 76.114.46.95/cssimages.zip oh and this is why cant use header.php
-
Re: mccodes v2 newspaper thanks it my first mod so glade you like it