
Jameoo
Members-
Posts
160 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by Jameoo
-
Re: Free 2 - Gym i tryed for the past hour to chang the font of the wrighting to white can any 1 do this please thnks
-
Hi How Do I Put A Crime To Do 0 Exp I Put Crime Exp But It Still Gives Thm Exp :? Can Sombody Please Help Me Thanks
-
Re: News Paper Ads no sql Yeh U Do Need A Sql But Its Already In Your Database db->query("TRUNCATE TABLE npaper"); npaper
-
Add This Into A Php File And Call It newspaper.php <?php include "globals.php"; print "<h3>Gangsta Nations Newspaper</h3>"; print " <table width=90% cellspacing=1 class='table'> <tr> <td class=h><center>[url='job.php']<font color='red'>YOUR JOB</font>[/url]</td> <td class=h><center>[url='gym.php']<font color='red'>LOCAL GYM</font>[/url]</td> <td class=h><center>[url='halloffame.php']<font color='red'>HALL OF FAME</font>[/url]</td> <td class=h><center>[url='gangcentral.php']<font color='red'>LOCAL GANGS</font>[/url]</td> <td class=h><center>[url='index.php']<font color='red'>MY HOUSE</font>[/url]</td> </tr> <tr> <td class=h><center>[url='userlist.php']<font color='red'>LOCAL RESIDENTS</font>[/url]</td> <td class=h><center>[url='stats.php']<font color='red'>CITY STATS</font>[/url]</td> <td class=h><center>[url='usersonline.php']<font color='red'>PEOPLE AWAKE</font>[/url]</td> <td class=h><center>[url='gangwars.php']<font color='red'>CURRENT WARS</font>[/url]</td> <td class=h><center>[url='estate.php']<font color='red'>HOUSES FOR SALE</font>[/url]</td> </tr> <tr> <td colspan=6>"; print " <table width=90% cellspacing=1 class='table'><center><h3>Player Advertisements</h3><center> | [url='newspaper.php?action=add'][b]Buy An Advertisement ($10,000)[/b][/url]"; if($ir['user_level'] > 1) { print " | <a href=newspaper.php?action=all>[b]DELETE ALL[/b]</a>"; } $anpdata=$db->query("SELECT * FROM npaper"); $q=$db->query("SELECT user_level FROM users WHERE userid=$userid"); $r=$db->fetch_row($q); print "<marquee speed=2 direction=up onmouseover='this.stop()' onmouseout='this.start()' class='textbox'>"; while($npdata=$db->fetch_row($anpdata)) { $us=$db->query("SELECT username FROM users WHERE userid={$npdata['npADDER']}"); $us=$db->fetch_single($us); $time=date('F j',$npdata['npTIME']); print " <hr> [b]Ad By: [url='viewuser.php?u={$npdata[']<font color=red>{$us}</font> [{$npdata['npADDER']}][/url] | Added On: {$time}[/b]"; if($r['user_level'] != 1) { print " | <a href=newspaper.php?action=npID&npID={$npdata['npID']}>[b]DELETE[/b]</a>"; } print " [i]<u>{$npdata['npTITLE']}[/i]</u> [i]{$npdata['npBODY']}[/i] "; } print "<hr /></marquee> </table>"; $q=$db->query("SELECT user_level FROM users WHERE userid=$userid"); $r=$db->fetch_row($q); if($r['user_level'] != 1) { if($_GET['action'] == "all") { if($r['user_level'] != 1) { $db->query("TRUNCATE TABLE npaper"); print "Newspaper Ads All Cleared! <META HTTP-EQUIV=Refresh CONTENT='1;url=newspaper.php'>"; } } else if($_GET['action'] == "npID") { if($r['user_level'] != 1) { $db->query("DELETE FROM npaper WHERE npID={$_GET['npID']}"); print "News Paper Ad ID {$_GET['npID']} deleted! <META HTTP-EQUIV=Refresh CONTENT='1;url=newspaper.php'>"; } } } if($_GET['action'] == "add") { print "<h3>Add Advertisement ($10,000)</h3> <form action='newspaper.php?action=added' method='post'> Ad Title: <input type='text' name='npTITLE' class='textbox'> Ad Body: <textarea rows=5 cols=18 name='npBODY' class='textbox'></textarea> <input class='textbox' type='submit' value='Place Ad ($10,000)' /> </form> <font color=red>[b]WARNING:[/b] Only plain text will work Do not advertise other games Follow the rules."; } if($_GET['action'] == "added") { if($ir['money']>9999) { print "Congratulations, you bought an ad for \$10,000! "; $db->query("UPDATE users SET money=money-10000 WHERE userid=$userid"); $title=str_replace(array("\n"),array(" "),strip_tags($_POST['npTITLE'])); $body=str_replace(array("\n"),array(" "),strip_tags($_POST['npBODY'])); $q=$db->query("INSERT INTO `npaper` VALUES (NULL, '$userid', '$title', '$body', unix_timestamp())"); print "Advertisement was successfully added! <META HTTP-EQUIV=Refresh CONTENT='5;url=newspaper.php'>"; } else { print "You do not have enough money to place an advertisement. [url='newspaper.php']>Back[/url]"; } } print"</td></tr> <tr> <td td colspan=6> <center>$content</td> </tr> </table>"; $h->endpage(); ?> Yup I Did Not Make IT But Its A Free Mod Hope U Like
-
Re: User Stats Thanks For Sayin That It Cheerd Me Up :-D Well my new game gonna be 100% easy so more ppl play it so yeh we need big numbers
-
Re: Adding Citys V2 i tryed didnt work :-(
-
Re: Header.php [New/More Imrpoved] take the secuiryt off thn and post it cee if urs is betaa
-
Re: Header.php [New/More Imrpoved] Huuummm ..... Matt Post All Ur Secuity On Here Tha Is Top Notch I Dnt Think u Wud Wud Yah .... And A Decent Header Tha Is Top Notch This Is A Good Header So If You Think Yah Better Matt U Post A Better 1 Dnt Think u Can Can Yah Ehh.. If So Post It............................
-
Re: new login.php I Agree Not Worth posting Ummmm.... Maybee Make It A Bit Better Thm Post It :evil: :evil: :evil: :evil: :evil: :evil:
-
Re: Header.php [New/More Imrpoved] Thanks For This You Put It On With Security Thanks Alot Lol Its A Very Good Layout This 1 If U Looking For This One But Without Main Menu2 And mine and dimods aka standerd pm me
-
Re: Hi I Got An Error The News Paper Had 0 Rows Init So Thats Why It Was Showing That Message
-
Wicking Me Off Now I Go To Create A City In Staff Panel And I Type Everything In And Click Submit The Boxes Just Go Blank Agen :cry: I Cant Even Add Citys Without Goin On PhpmyAdmin
-
Re: User Stats Hummm I Tryed Decimal 69 tha was max how do i make it more lol ?? the maximum on decimal 69 is.... 99,999,999,999,999,999,209,038,626,283,633,850,822,756,121,694,230,455,365,568,299,008 GROOVY AY
-
Hi Im Trying To Rais The Max On Stats i use bigint 249 i cant use decimal 249,2 coz it dnt work what is the biggest one you can choose from to get the highest amount EDITED with bigint 249 its only going to 9,223,372,036,854,775,808
-
Re: [$25] Treasure Map! i want this mod but how can i whn he dnt reply to me in mail
-
I Created This. this Morining When I Was Bored It Allows You To Put Honours To Gamble In The Game If You Lose The Game You Lose Your Honour's And If You Win You Get The Honours That You Gambled For Here Is A Simple Screen Shot As Only It Is $3.00 Includes 1 Instructions 1 Php File 1 Sql Thanks And Hope You Like It
-
grrrrrr y isnt der a jail in 1 can some 1 please explain
-
Re: MCCODES + Graphic No Thats Wrong Add In The <style> Bit background-image:url('Image-Here.gif); background-repeat:no-repeat; background-attachment:fixed; background-position:center;
-
Re: [v1] House Tax thats an easy 1 init just add this into cron day //House Tax Update $uq=mysql_query("SELECT * FROM users"); $Row=0; while($r=mysql_fetch_array($uq)) { $will = $r['maxwill']; $hq=mysql_query("SELECT * FROM houses WHERE hWILL='{$will}'"); if(mysql_num_rows($hq) == 0) { } $r2=mysql_fetch_array($hq); $ymny=$r['money']+$r['bankmoney']; if($r['bankmoney'] < $r2['hTAX'] AND $r['money'] < $r2['hTAX']) { $money=$r['money']; event_add($r['userid'],"You failed to pay the house tax, so you have lost your house.",$c); mysql_query("UPDATE users SET money=money+{$r2['hPRICE']}, maxwill=100, willmax=100, will=100 WHERE userid={$r['userid']}"); } } if($r['bankmoney'] > $r2['hTAX']) { mysql_query("UPDATE users SET bankmoney=bankmoney-'{$r2['hTAX']}' WHERE userid='{$r['userid']}'"); event_add($r['userid'],"We have taken the house tax from your bank.",$c); } else if($r['money'] > $r2['hTAX']) { mysql_query("UPDATE users SET money=money-'{$r2['hTAX']}' WHERE userid='{$r['userid']}'"); event_add($r['userid'],"We have taken the house tax from your money.",$c); } $Rows++; }
-
Re: Advance Search {V2} I Dont Know How To Do Table's Can You Do It :-D Please Its The V1 One But Converted Well Good
-
I Converted This Over From V1 To V2 If Any One Hasnt Got It Here U GOOOOO And It Works For Mehhh <?php session_start(); include "globals.php"; if($_POST['submit']) { $levelmin_clause="WHERE level >= {$_POST['levelmin']}"; $levelmax_clause=" AND level <= {$_POST['levelmax']}"; $name_clause=($_POST['name']) ? " AND username LIKE('%{$_POST['name']}%')" : ""; $gender_clause=($_POST['gender']) ? " AND gender LIKE('%{$_POST['gender']}%')" : ""; $job_clause=($_POST['job']) ? " AND job = {$_POST['job']}" : ""; $house_clause=($_POST['house']) ? " AND maxwill = {$_POST['house']}" : ""; $online_clause=($_POST['online']) ? " AND laston >= unix_timestamp() - {$_POST['online']}" : ""; $daysmin_clause=($_POST['daysmin']) ? " AND daysold >= {$_POST['daysmin']}" : ""; $daysmax_clause=($_POST['daysmax']) ? " AND daysold <= {$_POST['daysmax']}" : ""; $db->query("SELECT * FROM users $levelmin_clause$levelmax_clause$name_clause$gender_clause$job_clause$house_clause$online_clause$daysmin_clause$daysmax_clause",$c); print $db->num_rows($q)." players found. <table><tr style='background-color:gray;'><th>User</th><th>Level</th><th>Money</th></tr>"; while($r=$db->fetch_row($q)) { print "<tr><td>[url='viewuser.php?u={$r[']{$r['username']}[/url]</td><td>{$r['level']}</td><td>\${$r['money']}</td></tr>"; } print "</table>"; } else { print <<<EOF <h3>Advanced search</h3> <font color=red>*</font> is a required field. <form action=advsearch.php method=post> <input type=hidden name=submit value=1> Name: <input type=text name=name> Level: From: <font color=red>*</font><input type=text name=levelmin value=1> To: <font color=red>*</font> <input type=text name=levelmax value=100> Gender: <select name=gender type=dropdown> <option value=0 selected>Either</option> <option value=Male>Male</option> <option value=Female>Female</option></select> Job: <select name=job type=dropdown> <option value=0 selected>Any Job</option> <option value=1>Driver</option> <option value=2>Medical</option> <option value=3>Bank</option> <option value=4>Police Officer</option> <option value=5>Technician</option></select> House: <select name=house type=dropdown> <option value=0 selected>Any House</option> EOF; $q=$db->query("SELECT * FROM houses ORDER BY hWILL ASC", $c); while($r=$db->fetch_row($q)) { print "\n<option value='{$r['hWILL']}'>{$r['hNAME']}</option>"; } print <<<EOF </select> Days Old: From: <input type=text name=daysmin> To: <input type=text name=daysmax> <input type='submit' value='Go'></form> EOF; } $h->endpage(); ?> Replace In Mainmenu.php Replace This Search "; With Search AdvSearch ";
-
Re: House Tax yeh like tha but can u add it so they got to jail for 10 mins please
-
hi can some one fix this please so i only add the stuff i need so i can add it to cron day <?php include "config.php"; global $_CONFIG; if($_GET['code'] != $_CONFIG['code']) { die(""); } define("MONO_ON", 1); require "class/class_db_{$_CONFIG['driver']}.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"); while($r=$db->fetch_row($settq)) { $set[$r['conf_name']]=$r['conf_value']; } //House Tax Update $uq=$db->query("SELECT * FROM users"); $Row=0; while($r=$db->fetch_row($uq)) { $will = $r['maxwill']; $hq=$db->query("SELECT * FROM houses WHERE hWILL='{$will}'"); if($db->num_rows($hq) == 0) { } $r2=$db->fetch_row($hq); if($r['money'] < $r2['hTAX']) { $money=$r['money']; event_add($ir['userid'],"You failed to pay the tax, so you have lost the house."); print "You gave {$_POST['qty']} of item ID {$_POST['item']} to user ID {$_POST['user']}"; } else { $db->query("UPDATE users SET money=money-'{$r2['hTAX']}' WHERE userid='{$r['userid']}'"); } $Rows++; } ?> Thanks
-
Re: Hi I Got An Error Yes Its Fixed
-
Re: Staff Apps Event its only 1 line tut tut