
~Spooky~
Members-
Posts
103 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by ~Spooky~
-
Nice think I will take whirl at this one.
-
you get that also if you didnt convert all V1 to V2. Make sure nothing is above include global's or the session_start. If you need help just message me I can walk you through what you need to do and look for.
-
Nice concept to the gym. I will be sending you payment for this one, maybe more. Nice Job
-
There seems to be a problem with the new updates of Firefox. I have noticed that when you use firefox some players cannot log in or connect to a RPG game. I also noticed that sometimes the players are charged double for the crimes, items in stores, etc. If you download and use Opera till the problems with firefox are over, your players and donors be able to log back in to game. I know it cant be my codes or the server cause this affects only few players here and there, but not whole game. Opera works just as good, maybe even better the Firefox.
-
Re: please iwant db.php file the db.php seems to be missing from the engine. Thanks for posting
-
Re: [mccodes] Board Game [$15] Nice one Iso. Maybe talking to you in few days. My games be up and running in few more days need some new additions to it
-
Re: [V2] Main Menu (army/gangsta Theme) I got the first one to work. Im posting it as fixed. This is for V2 NOT GONNA REPOST THE IMAGES since Im just posting the File as FIXED <?php global $db,$c,$ir,$userid, $set; $adomain=$_SERVER['HTTP_HOST']; $hc=$set['hospital_count']; $jc=$set['jail_count']; $ec=$ir['new_events']; $mc=$ir['new_mail']; print " <div align=left width='170'> <table cellspacing=1 width='170' class=table> <tr> <td>[img=top.png]</td> </tr> <tr> <td background='middle.png'><div align='center'>"; if($ir['hospital']) { print "[url='hospital.php']Hospital ($hc)[/url] [url='inventory.php']Inventory[/url] "; } elseif($ir['jail']) { print "[url='jail.php']Jail ($jc)[/url] "; } else { print "[url='index.php']Home[/url] [url='inventory.php']Inventory[/url] "; } if($ec > 0) { print "[url='events.php']Events ($ec)[/url] "; } else { print "[url='events.php']Events (0)[/url] "; } if($mc > 0) { print "[url='mailbox.php']Mailbox ($mc)[/url] "; } else { print "[url='mailbox.php']Mailbox (0)[/url] "; } if($ir['jail'] and !$ir['hospital']) { print "[url='gym.php']Jail Gym[/url] [url='hospital.php']Hospital ($hc)[/url] "; } else if (!$ir['hospital']) { print "[url='explore.php']Explore[/url] [url='gym.php']Gym[/url] [url='criminal.php']Missions[/url] [url='job.php']Your Rank[/url] [url='education.php']Training Courses[/url] [url='hospital.php']Hospital ($hc)[/url] [url='jail.php']Jail ($jc)[/url] "; } else { print "[url='jail.php']Jail ($jc)[/url] "; } print "[url='forums.php']Forums[/url] "; if($ir['new_announcements']) { print "[url='ann.php']Announcements ({$ir['new_announcements']})[/url] "; } else { print "[url='ann.php']Announcements (0)[/url] "; } print " [url='bank.php']Bank[/url] [url='newspaper.php']Newspaper[/url] [url='search.php']Search[/url] "; if ($ir['level'] >= 100) { print "<hr>[b]100 Club![/b] [url='100clubforum.php']Forum[/url] [url='100clubchat.php']Chat[/url] [url='100clubshop.php']Shop[/url] <hr>"; } if(!$ir['jail'] && $ir['gang']) { print "[url='yourgang.php']Your Squad[/url] "; } print "[url='viewuser.php?u={$r[']{$r['username']}[/url] ($la $unit) "; if($ir['donatordays']) { print "<hr /> [b]Donators Only[/b] [url='friendslist.php']Friends List[/url] [url='blacklist.php']Black List[/url]"; } print "<hr /> [url='preferences.php']Preferences[/url] [url='preport.php']Player Report[/url] [url='helptutorial.php']Help Tutorial[/url] [url='gamerules.php']Game Rules[/url] [url='viewuser.php?u={$ir[']My Profile[/url] [url='logout.php']Logout[/url] Time is now "; echo date ('F j, Y')." ".date('g:i:s a'); print "</td> </tr> <tr> <td>[img=bottom.png]</td> </tr> </table>"; ?> This should fix all the errors. I did not add the staff panel link. Any problems holler Posting screen shot also: http://www.criminaltown.co.cc/screenshots/menu.bmp
-
Re: Psychotic Insanity DELETE THIS POST Please MODS!
-
Re: Modified Libary for V2 WHY I did a modified from free one. Im not selling it I JUST ADDED it for donors only and IQ STATS the real ones.
-
Re: Modified Libary for V2 its already been posted. I just modified one file. If you have it on game then you should have rest of sql and stuff but posted anyway for those that dont feel like searching for the mod.
-
Re: Modified Libary for V2 its already posted on CE the rest. Thanks for fix. I just noticed it was not working.
-
Re: [mccodes v2]New and improved inventory If he spends the time coding this MOD then he should SELL IT not give away free. If its simple mod yeah free is good, but hell half these people on here now BEG for free stuff when some of us game owners spend hundreds to get good game going and legal. He should sell it. I think its good idea and looks like a good mod.
-
I added the IQ stats and made this for donors only. This was done by another CE Member. <?php //FREE MOD //CE POSTED //SNIKO` //FREE FOR ALL //DO NOT REMOVE THIS //Modified by ~Spooky~ include "globals.php"; if($ir['donatordays'] < 1) { die("<center>Hey this feature is for donors only. Donate to game [url='donator.php'] HERE...[/url]"); } print "Library Gets you to an intelligent reader [url='librarystats.php'][b]Library Stats[/b][/url] <table border=2> <th>Book</th> <th>How Much</th> <th>Read</th> <tr> <td>Mafia Guide</td> <td>$50,000</td> <td>[url='libary.php?spend=buy']Read[/url]</td> <tr> <td>Most Wanted</td> <td>$100,000</td> <td>[url='libary.php?spend=buy1']Read[/url]</td>"; if($_GET['spend'] == 'buy') { if($ir['money'] < 50000) { print "You don't have enough money to read the book!"; } else { $db->query("UPDATE users SET money=money-50000, iqbooks=iqbooks+5, booksread=booksread+1 WHERE userid=$userid",$c); $db->query("UPDATE userstats SET IQ=IQ+2 WHERE userid=$userid",$c); print "You read the book and gained 2 IQ! [url='index.php']Back[/url] "; } } { if($_GET['spend'] == 'buy1') { if($ir['money'] < 100000) { print "You don't have enough money to read the book!"; } else { $db->query("UPDATE users SET money=money-100000, iqbooks=iqbooks+10, booksread=booksread+1 WHERE userid=$userid",$c); $db->query("UPDATE userstats SET IQ=IQ+5 WHERE userid=$userid",$c); print "You read the book and gained 5 IQ! [url='index.php']Back[/url] "; } } } } ?> Not taking Credit for this was good idea I just did little changes on it. library stats: <?php include "globals.php"; print "<h3>Libary Stats</h2>"; print "Books Read: {$ir['booksread']} IQ Gained: {$ir['iqbooks']} "; ?> Go To viewuser.php and add this code Code: [select] Books Read: {$r['booksread']} Also put this code anywhere you want to add it Code: [select] Books Read: {$ir['booksread']} Run these SQL's Code: [select] ALTER TABLE users ADD iqbooks INT(11) DEFAULT 0; Code: [select] ALTER TABLE users ADD booksread INT(11) DEFAULT 0; That should be rest of it.
-
Re: Psychotic Insanity thanks. I know banner not right its just temp till new layout is done for the game.
-
Okay its still in works but I have had this project going since Gangst3rs-Paradis3.com. Would like to know how you all feel about it. This is not your basic GANGSTER type game it is all based on crazy people and doing crazy insane stuff. Remember its still in works, but most bugs been fixed and security is pretty good thanks to Iamwicked helping me out on the sql injections. Description: It's dark, you are walking along, when you run up on a gang mugging an old lady, you notice a sign that reads PSYCHOTIC covered in blood. You continue to walk down the street and you hear a woman screaming, suddenly its cut short by silence. You turn around and you see the gang approaching you. There's five of them and one of you, what do you do? You can join the gang and wreck havoc on the city, RUN, or fight for your life.....but are you really that good?? The choice is yours! url: http://www.psychoticinsanity.com Screen shot:
-
Re: [Mcodes V2]Auction Cron Fix[Needed] <?php /*----------------------------------------------------- -- Psychotic Insanity -- A product of iMatters Game and Web Design -- Copyright held 2008 by ~Spooky~ -- E-mail: sexysalemchickgamer[AT]hotmail[DOT]com -----------------------------------------------------*/ include "config.php"; if($_GET['code'] != $_CONFIG['code']) { die(""); } require "mysql.php"; mysql_query("UPDATE auctions SET time=time-1 WHERE time>0",$c); $qqq=mysql_query("SELECT * FROM auctions WHERE time=0",$c); while($win=mysql_fetch_array($qqq)) { $time=$win['time']; $item=$win['itemname']; $winner=$win['bidder']; $owner=$win['owner']; $iname=mysql_result(mysql_query("SELECT itmname FROM items WHERE itmid={$item}", $c), 0, 0); if($win['bids']>0) { mysql_query("insert into inventory VALUES('',$item,$winner,1)",$c) or die(mysql_error()); mysql_query("INSERT INTO events VALUES('',$winner,UNIX_TIMESTAMP(),0,'You won the auction of the {$iname} for \${$win['current']}')",$c) or die(mysql_error()); mysql_query("INSERT INTO events VALUES('',$owner,UNIX_TIMESTAMP(),0,'Your {$iname} sold succesfully on the auction market with {$win['bids']} bids. You have been paid \${$win['current']}')",$c) or die(mysql_error()); mysql_query("UPDATE users SET new_events=new_events+1 WHERE owner={$userid}", $c); mysql_query("UPDATE users SET new_events=new_events+1 WHERE winner={$userid}", $c); mysql_query("update users set money=money+{$win['current']},auctionquota=auctionquota-1 where userid=$owner", $c); } if($win['bids']==0) { $owner=$win['owner']; mysql_query("INSERT INTO events VALUES('',$owner,UNIX_TIMESTAMP(),0,'Your auction has ended with no bidders. Your {$iname} has been returned to your inventory.')",$c) or die(mysql_error()); $winner=$win['owner']; mysql_query("insert into inventory VALUES('',$item,$winner,1)",$c) or die(mysql_error()); } } mysql_query("DELETE FROM auctions WHERE time=0", $c); print "Done!"; ?> Try that code. Works on my game. May need to edit little I do run both V1 and V2 games. If you add the mysql to your V2 it be just fine.
-
Re: [mccode] jail/hosp shoutbox Oh and no cron to set and I also have this in my bar file so players can chat there when they at the bar.
-
Re: [mccode] jail/hosp shoutbox If anyone wants a better shoutbox NOT RUN on TEXT files, but wants it in Database with an ADMIN Panel just let me know. I have a shout box not run on TEXT files and its only one file and one table for shouts. If you want me to post mine let me know I will, this is used for both V1 and V2 with no CONVERTING for all you noob coders. Very very easy to install and dose limit the shouts to 5 to 50 however many you want. Just admin panel keeps all chats till you delete them, but only posts 20 at time. I have mine at 20 but you can put in main menu and limit to 5 very easy to do. Anyone want it just MSN me and I will send it and tell you how to set it up.
-
Re: can anyone fix this if it errors take out the ../ part...........
-
Re: can anyone fix this <?php include "../config.php"; if($_GET['code'] != $_CONFIG['code']) { die(""); } require "../mysql.php"; mysql_query("UPDATE auctions SET time=time-1 WHERE time>0",$c); $qqq=mysql_query("SELECT * FROM auctions WHERE time=0",$c); while($win=mysql_fetch_array($qqq)) { $time=$win['time']; $item=$win['itemname']; $winner=$win['bidder']; $owner=$win['owner']; $iname=mysql_result(mysql_query("SELECT itmname FROM items WHERE itmid={$item}", $c), 0, 0); if($win['bids']>0) { mysql_query("insert into inventory VALUES('',$item,$winner,1)",$c) or die(mysql_error()); mysql_query("INSERT INTO events VALUES('',$winner,UNIX_TIMESTAMP(),0,'You won the auction of the {$iname} for \${$win['current']}')",$c) or die(mysql_error()); mysql_query("INSERT INTO events VALUES('',$owner,UNIX_TIMESTAMP(),0,'Your {$iname} sold succesfully on the auction market with {$win['bids']} bids. You have been paid \${$win['current']}')",$c) or die(mysql_error()); mysql_query("UPDATE users SET new_events=new_events+1 WHERE owner={$userid}", $c); mysql_query("UPDATE users SET new_events=new_events+1 WHERE winner={$userid}", $c); mysql_query("update users set money=money+{$win['current']},auctionquota=auctionquota-1 where userid=$owner", $c); } if($win['bids']==0) { $owner=$win['owner']; mysql_query("INSERT INTO events VALUES('',$owner,UNIX_TIMESTAMP(),0,'Your auction has ended with no bidders. Your {$iname} has been returned to your inventory.')",$c) or die(mysql_error()); $winner=$win['owner']; mysql_query("insert into inventory VALUES('',$item,$winner,1)",$c) or die(mysql_error()); } } mysql_query("DELETE FROM auctions WHERE time=0", $c); print "Done!"; ?> Try that one..................
-
Re: A little help here anyone? please Read the damn install file! Since when HAS CE been so FLIPPING RUDE to other members???????
-
Re: door shoot Im not on good PC right now. I will have a screen shot posted asap. Just moving today and at internet cafe. Sorry....
-
Re: door shoot I will have screen shot of one. Just give me time to install it.
-
Re: door shoot gonna do a screenshot for everyone to see it. I will post it in bit after I get it up and going
-
Re: No Attack DONT CALL ME a B*tch. Im also trying to help and its a smaller code and works. So do me a favor and STFU