
nathanmarck
Members-
Posts
17 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by nathanmarck
-
[REVIEW] www.2452thegamev2.com ---- Please review!!
nathanmarck replied to MaKaVeLi's topic in Browsergames
Re: www.2452thegamev2.com All the 2452 game seem to be good and i like the limits makes it harder and if you go on holiday you can catch up :) -
Title: Modern Mobstars Site URL: http://mobstar.tgd-productions.co.cc Site Description: One day you woke up in a local hospital in London from being hit into a coma. The doctor says you are fine and checks you out of the hospital. While you are walking home, a mysterious well built man with a Hummer H3 pulls up behind you. You look behind and there he is grabbing you by the throat and throwing you into the car. As you enter the car the man forces you in the back seat and with 2 body guards holding your arms. The man says 'My boss wants to speak to you'. Before you can say anything you get hit round the head by a 9mm pistol. When you wake up once again you are slumped on the floor. They pick you up and handcuff you. You are looking around you and you see a lot of photo's of very well known classic bosses. Now as you reach the door you feel something bad is going to happen. The door opens and you see a table with a chair backwards. The guards push you in and close the doors. You start to look around a little worried. You walk down the long room to sit down. Everything is quiet then suddenly you notice a gun on the table. You were about to take it until the man speaks 'I have been waiting for you'. The chair turns around and there you see a man. He looks like a mafia boss with a cigar in his hand wearing a black suit with a multi coloured tie. You are looking eye to eye and you see the mafia boss looking dry. He reaches his hand to his pocket and gets out an envelope with your name on with a smudge on blood on the bottom. Mafia boss says 'Open it'. Before you open it you look at the boss. He nods at you and then you open it. It’s a letter. It reads: Dear You don’t know me but I surely know you. I have heard things have been happening with you lately? Well let’s leave that for the time being. I really need your help on this mission I need you to do. All I will say for now is come visit me in Paris France, I suggest you get a ferry across as I need a Ferrari Enzo. I also need two C4 and two ak-47's. I will meet you there in 10 hours. Here is your £10,000 spend it well! From ? An adictive game based of life as a gangster P.S. i know some pages are missing im fixing them asap
-
[mccode] Making a marquee on all pages
nathanmarck replied to nathanmarck's topic in Free Modifications
Re: Making a marquee on all pages How would we do it in JS then Where would i look? -
I was just reading the Manual and i found a cool little thing. <marquee></marquee> This is the type of thing it outputs So i thought how could i incorporate this into my game? I know add it on all pages. So in header.php under: print "[url='donator.php'][b]Donate to {$set['game_name']} now for game benefits![/b][/url] Add <marquee><center>Some text here<center></marquee> That will output Some text here If you would like more that one line just put where you want the new line
-
Re: [mccodes][V2] owner`s pannel Lol True many times have done the same thing
-
Re: Main Menu Oh ok im a noob at php
-
Re: Mining V2 Converted Im getting the error but i dont know whats rong. Its saying that fetch_array isnt anywhere but it works without $db ~roulet-wilson
-
Re: Mining V2 Converted Everything looks fine it just dont work ~roulet-wilson
-
Re: Main Menu <?php global $db,$c,$ir, $set; $hc=$set['hospital_count']; $jc=$set['jail_count']; $ec=$ir['new_events']; $mc=$ir['new_mail']; .mover a:hover { font-weight:bold; color: pink; } function mover() { if($ir['hospital']) { print "[url='hospital.php']Hospital ($hc)[/url] ($hc)</a> [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='Undercon.html']Car Garage[/url] [url='gym.php']Gym[/url] [url='bounty.php']Hitlist[/url] [url='monkeys.php']Monkey Butlers![/url] [url='criminal.php']Crimes[/url] [url='job.php']Your Job[/url] [url='education.php']Local School[/url] [url='hospital.php']Hospital ($hc)[/url] [url='bugtracker.php']Bug tracking[/url] [url='cstaff.php']Contact a member of staff[/url] [url='jail.php']Jail ($jc)[/url] [url='scubadive.php']Go Diving[/url] "; } else { print "[url='jail.php']Jail ($jc)[/url] "; } print "[url='forums.php']Forums[/url] "; if($ir['new_announcements']) { print "[url='announcements.php']Announcements ({$ir['new_announcements']})[/url] "; } else { print "[url='announcements.php']Announcements (0)[/url] "; } print " [url='newspaper.php']Newspaper[/url] [url='advsearch.php']Search[/url] "; if(!$ir['jail'] && $ir['gang']) { print "[url='yourgang.php']Your Gang[/url] "; } if($ir['user_level'] > 1) { print "<hr />[b]Staff Stuff[/b] [url='staff.php']Staff Panel[/url] [url='sqladmin.php']MySQL Control Panel[/url]"; print "<hr />[b]Non-game stuff[/b] [url='youtube.php']Youtube downloader[/url] <hr />[b]Affiliates[/b] [url='http://mccodes.com']MCcodes[/url] "; print "<hr />[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"; } } 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'); } ?> Something like That
-
Re: Mining V2 Converted Fatal error: Call to undefined function: fetch_array() in /home/www/the-gangster-teritory.freehostia.com/mine.php on line 5 And thats with the code added. ~roulet-wilson
-
Re: Mining V2 Converted That give errors loads of errors so ill stick to how it is.
-
Re: Mining V2 Converted Thanks for the constructive comments and its my first conversion so it must be good if your saying it is I saw a conversion but it didnt have 100% converted so it all works so i converted it so that it will look and feel like a v2 mod if theres anything i could change just ask me. If you would like a mod converting ask me as well
-
I found a Mining mod and converted it (first conversion that works fully) mine.php: <?php require "globals.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); get_mine(); switch($_GET['action']) { case 'mine': mine_1(); break; case 'minesub': mine_1_sub(); break; case 'mine2': mine_2(); break; case 'mine2sub': mine_2_sub(); break; case 'mine3': mine_3(); break; case 'mine3sub': mine_3_sub(); break; case 'mine4': mine_4(); break; case 'mine4sub': mine_4_sub(); break; case 'mine5': mine_5(); break; case 'mine5sub': mine_6_sub(); break; case 'mine6': mine_6(); break; case 'mine6sub': mine_6_sub(); break; default: mine_index(); break; } /** ** Calls the cases so mine.php?mine **/ function mine_index() { global $ir,$c,$userid; print "<center>Welcome to the mine shaft. There are 3 spots to go mining but thay are restricted depending on your mine level. Your mining level is {$ir['mine_level']} and you have {$ir['mine_exp']}/{$ir['mine_needed']} mining experience </center>"; print "<center> <u>Crystal Mines</u> [[url='mine.php?action=mine']Level 1 mine[/url]] [[url='mine.php?action=mine2']Level 20 mine[/url]] [[url='mine.php?action=mine3']Level 40 mine[/url]] <u>Money Mines</u> [[url='mine.php?action=mine4']Level 10 mine[/url]] [[url='mine.php?action=mine5']Level 30 mine[/url]] [[url='mine.php?action=mine6']Level 40 mine[/url]] </center>"; } /** ** This is the main part you see when you come into the php page **/ if ($ir['jailtime'] > 0){ print "<center>The mine is closed to jail birds come back when thay release you</center>"; exit; } if ($ir['hospital'] > 0){ print "<center>You cant go mining while in hospital</center>"; exit; } /** ** That makes sure you are not in jail or hospital ** Shouldnt need to change that enless you making it a jail mine **/ function mine_1() { global $ir,$c,$userid; if($ir['energy'] < 10){ print "You need 10 power to mine here your have {$ir['energy']}"; exit; } mysql_query("UPDATE users SET energy=energy-10 WHERE userid=$userid",$c); $rand_gems = rand(1,5); $rand_exp = rand(1,100); echo "<center>You begin mining in the level 1 mine and found $rand_gems crystal(s).</center> "; mysql_query("UPDATE users SET crystals=crystals+'$rand_gems',mine_exp=mine_exp+'$rand_exp' WHERE userid=$userid",$c); print "<center>[[url='mine.php?action=mine']Mine again[/url]]</center> "; print "<center>[[url='mine.php']Back[/url]]</center> "; } function mine_2() { global $ir,$c,$userid; if($ir['energy'] < 15){ print "<center>You need 15 power to mine here your have {$ir['energy']}</center>"; exit; } if($ir['mine_level'] < 20){ print "<center>You need to be mining level 20 to mine here you are mining level {$ir['mine_level']}</center>"; exit; } mysql_query("UPDATE users SET energy=energy-15 WHERE userid=$userid",$c); $rand_gems = rand(1,20); $rand_exp = rand(1,300); echo "<center>You begin mining in the level 20 mine and found $rand_gems crystal(s).</center> "; mysql_query("UPDATE users SET crystals=crystals+'$rand_gems',mine_exp+'$rand_exp' WHERE userid=$userid",$c); print "<center>[[url='mine.php?action=mine2']Mine again[/url]]</center> "; print "<center>[[url='mine.php']Back[/url]]</center> "; } function mine_3() { global $ir,$c,$userid; if($ir['energy'] < 25){ print "<center>You need 25 power to mine here your have {$ir['energy']}</center>"; exit; } if($ir['mine_level'] < 40){ print "<center>You need to be mining level 40 to mine here you are mining level {$ir['mine_level']}</center>"; exit; } mysql_query("UPDATE users SET energy=energy-25 WHERE userid=$userid",$c); $rand_gems = rand(1,40); $rand_exp = rand(1,600); echo "<center>You begin mining in the level 40 mine and found $rand_gems crystal(s).</center> "; mysql_query("UPDATE users SET crystals=crystals+'$rand_gems',mine_exp+'$rand_exp' WHERE userid=$userid",$c); print "<center>[[url='mine.php?action=mine3']Mine again[/url]]</center> "; print "<center>[[url='mine.php']Back[/url]]</center> "; } function mine_4() { global $ir,$c,$userid; if($ir['energy'] < 10){ print "You need 10 power to mine here your have {$ir['energy']}"; exit; } if($ir['mine_level'] < 10){ print "<center>You need to be mining level 10 to mine here you are mining level {$ir['mine_level']}</center>"; exit; } mysql_query("UPDATE users SET energy=energy-10 WHERE userid=$userid",$c); $rand_money = rand(1,1000); $rand_exp = rand(1,100); echo "<center>You begin mining in the level 10 mine and found $$rand_money .</center> "; mysql_query("UPDATE users SET money=money+'$rand_money',mine_exp=mine_exp+'$rand_exp' WHERE userid=$userid",$c); print "<center>[[url='mine.php?action=mine4']Mine again[/url]]</center> "; print "<center>[[url='mine.php']Back[/url]]</center> "; } function mine_5() { global $ir,$c,$userid; if($ir['energy'] < 15){ print "<center>You need 15 power to mine here your have {$ir['energy']}</center>"; exit; } if($ir['mine_level'] < 30){ print "<center>You need to be mining level 30 to mine here you are mining level {$ir['mine_level']}</center>"; exit; } mysql_query("UPDATE users SET energy=energy-15 WHERE userid=$userid",$c); $rand_money = rand(1,3000); $rand_exp = rand(1,300); echo "<center>You begin mining in the level 30 mine and found $$rand_money .</center> "; mysql_query("UPDATE users SET money=money+'$rand_money',mine_exp+'$rand_exp' WHERE userid=$userid",$c); print "<center>[[url='mine.php?action=mine5']Mine again[/url]]</center> "; print "<center>[[url='mine.php']Back[/url]]</center> "; } function mine_6() { global $ir,$c,$userid; if($ir['energy'] < 25){ print "<center>You need 25 Energy to mine here your have {$ir['energy']}</center>"; exit; } if($ir['mine_level'] < 40){ print "<center>You need to be mining level 40 to mine here you are mining level {$ir['mine_level']}</center>"; exit; } mysql_query("UPDATE users SET energy=energy-25 WHERE userid=$userid",$c); $rand_money = rand(1,8000); $rand_exp = rand(1,600); echo "<center>You begin mining in the level 40 mine and found $$rand_money .</center> "; mysql_query("UPDATE users SET money=money+'$rand_money',mine_exp+'$rand_exp' WHERE userid=$userid",$c); print "<center>[[url='mine.php?action=mine6']Mine again[/url]]</center> "; print "<center>[[url='mine.php']Back[/url]]</center> "; } /** ** This is all the stuff that makes the script/mod work ** You shouldnt need to change it enless you want to ** make something add or have different MYSQL Tables **/ ?> MYSQL Query: ALTER TABLE `users` ADD `mine_level` int(11) NOT NULL ; ALTER TABLE `users` ADD `mine_exp` int(11) NOT NULL ; ALTER TABLE `users` ADD `mine_needed` int(11) NOT NULL ; ALTER TABLE `users` ADD `power` int(11) NOT NULL ; ALTER TABLE `users` ADD `max_power` int(11) NOT NULL ;