
jamiee
Members-
Posts
129 -
Joined
-
Last visited
-
Days Won
3
Content Type
Profiles
Forums
Events
Everything posted by jamiee
-
this looks very nice going to download it and have a play :)
-
try changeing 'lotus.x10hosting.com' to localhost
-
Peter || MaxPixa is very good at layout/template lol just some people dont see the point of posting everything they do on hee .. like taxed is is very good too but you see no posts from him ?
-
i remember a post saying you was leaveing here lol funny thing your back agen lol
-
Well done, nice little script. I have something like this on my game just a little more advanced. Ill put my one up at some point it may give you a few more ideas.
-
Add the following to the "login" SQL table: If value does not equal 0 the affected users will not show up. [mysql]`staff` int(11) NOT NULL DEFAULT '0',[/mysql]
-
::::::::::::::::::::::: Essential Upgrade Pack ::::::::::::::::::::::::::: Below is a list of essential scripts required to make a fully working (and enjoyable) game from the Gangster Legends source. Full details below. Essential Upgrade Pack Price: $25 USD Bank Robbery Bullet Factory Detective Hospital Murder Player Management Shooting Range :::: Bank Robbery :::: Bank robbery is an organised crime script, which allows four players to commit a crime every twelve hours for big cash and exp rewards. http://i795.photobucket.com/albums/yy238/devtek_solutions/Bank_robbery.jpg http://i795.photobucket.com/albums/yy238/devtek_solutions/bank_robbery_planned.jpg :::: Bullet Factory :::: Bullet factory allows the players to arm themselves with ammo for those all important player kills. http://i795.photobucket.com/albums/yy238/devtek_solutions/bullet_factory.jpg :::: Detective :::: Detective allows you to search the games cities for a player you wish to kill. http://i795.photobucket.com/albums/yy238/devtek_solutions/detective.jpg :::: Hospital :::: The hospital speaks for itself. If players are injured this is where they go to heal. http://i795.photobucket.com/albums/yy238/devtek_solutions/hospital.jpg :::: Murder :::: Murder allows you to kill a player, but only once you hire a detective to find their location. http://i795.photobucket.com/albums/yy238/devtek_solutions/murder.jpg :::: Player Management :::: Player management is an admin tool for editing players money, credits and bullets. http://i795.photobucket.com/albums/yy238/devtek_solutions/player_management.jpg :::: Shooting Range :::: Shooting range is where you go to train your weapons. Every weapon requires training and the better the weapon the higher the cost to train it. http://i795.photobucket.com/albums/yy238/devtek_solutions/shooting_range.jpg Message me here or email me at [email protected] I will try my best to reply as quickly as possible. Thanks.
-
:::::::::::::::::: Player Statistics :::::::::::::::::::: Screenshot: Make player_stats.php add code below: <?php require("top.php"); require("connect.php"); ?> <form method="post"> <html> <Head> </Head> <body> <table width="350" border="0" align="center" cellspacing="2" class="table"> <tr> <td width="350" Class="head" colspan="4" align="left">Site Statistics</td> </tr> <tr> <td width="35%" align="left" class="sub">Total Members:</td> <td width="65%" align="left" class="cell"><?php $res = "SELECT name FROM login"; $tquery = mysql_query($res) or die(mysql_error()); $total_members = mysql_num_rows($tquery); echo number_format($total_members); ?></td> </tr> <tr> <td align="left" class="sub">Members Dead:</td> <td align="left" class="cell"><?php $res = "SELECT name FROM login WHERE sitestate='2'"; $tquery = mysql_query($res) or die(mysql_error()); $totalmembers = mysql_num_rows($tquery); echo number_format($totalmembers); ?></td> </tr> <tr> <td align="left" class="sub">Members Alive:</td> <td align="left" class="cell"><?php $res = "SELECT name FROM login WHERE sitestate='9'"; $tquery = mysql_query($res); $totalmembers = mysql_num_rows($tquery); $tres = "SELECT name FROM login WHERE sitestate='0'"; $ttquery = mysql_query($tres); $atotalmembers = mysql_num_rows($ttquery); $ttotalmembers= $atotalmembers + $totalmembers; echo number_format($ttotalmembers); ?></td> </tr> <tr> <td align="left" class="sub">Swiss bank:</td> <td align="left" class="cell"><?php $query = "SELECT SUM(amount) FROM swiss_bank"; $result = mysql_query($query) or die(mysql_error()); $row = mysql_fetch_array($result); $swiss_bank = $row['SUM(amount)']; echo "$ ".number_format($row['SUM(amount)']).",-"; ?></td> </tr> <tr> <td width="35%" align="left" class="sub">Total Money:</td> <td width="65%" align="left" class="cell"><?php $query = "SELECT SUM(money) FROM login WHERE staff='0'"; $result = mysql_query($query) or die(mysql_error()); $row = mysql_fetch_array($result); $cash = $row['SUM(money)']; echo "$ ".number_format($row['SUM(money)']).",-"; ?></td> </tr> <tr> <td width="35%" align="left" class="sub">Total Gang Money:</td> <td width="65%" align="left" class="cell"><?php $query = "SELECT SUM(bank) FROM gangs"; $result = mysql_query($query) or die(mysql_error()); $row = mysql_fetch_array($result); $gang_money = $row['SUM(bank)']; echo "$ ".number_format($row['SUM(bank)']).",-"; ?></td> </tr> <tr> <td width="35%" align="left" class="sub">Most Members Online:</td> <td width="65%" align="left" class="cell"><?php $query = "SELECT max_online FROM sitestats WHERE id='1'"; $result = mysql_query($query) or die(mysql_error()); $row = mysql_fetch_array($result); echo $row['max_online']; ?></td> </tr> </table> </fieldset> <table width="350" border="0" align="center" cellpadding="0" cellspacing="2" class="table"> <tr> <td colspan="4" align="left" class="head">Last 20 Kills: </td> </tr> <tr> <td width="125" align="left" class="sub">[b]Name:[/b]</td> <td width="125" align="left" class="sub">[b]Rank:[/b]</td> <td width="250" align="left" class="sub">[b]Gang:[/b]</td> </tr> <? $result = mysql_query("SELECT * FROM kills WHERE state='1' ORDER BY id DESC LIMIT 0,20 ") or die(mysql_error()); // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $result )) { // Print out the contents of each row into a table ?> <tr> <td width="125" align="left" class="cell"><?php echo "<a href=\"view_profile.php?name=". $row['target'] ."\" onFocus=\"if(this.blur)this.blur()\">".$row['target']."</a>"; ?></td> <td width="125" align="left" class="cell"><?php echo $rank_array[$row['rank'] - 1]; ?></td> <td width="250" align="left" class="cell"><?php if(empty($row['gang'])){ echo "No Gang."; }else{ echo $row['gang']; }?> <?php }// end while lop.?> </tr> </table> <table width="350" border="0" align="center" cellpadding="0" cellspacing="2" class="table"> <tr> <td colspan="4" align="left" class="head">Last 20 Signups: </td> </tr> <tr> <td width="125" align="left" class="sub">[b]Name:[/b]</td> <td width="225" align="left" class="sub">[b]Signup Date:[/b]</td> </tr> <form> <?php $result = mysql_query("SELECT * FROM login ORDER BY id DESC LIMIT 0,20 ") or die(mysql_error()); // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $result )) { ?> <tr> <td width="125" align="left" class="cell"><?php echo"<a href=\"view_profile.php?name=". $row['name'] ."\" onFocus=\"if(this.blur)this.blur()\">".$row['name']."</a>";?></td> <td width="225" align="left" class="cell" ><?php echo $row['signup']; ?></td> </tr> <?php }// while loop?> </table> </body> </html> <? require("bottom.php") ?> Add the following code to top.php: Player Statistics Enjoy the free script. :)
-
::::::::::: Leaderboard ::::::::::::: Screenshot: http://i795.photobucket.com/albums/yy238/devtek_solutions/Leaderboard.jpg Add the following to the "login" SQL table: If value does not equal 0 the affected users will not show up. [mysql]`staff` int(11) NOT NULL DEFAULT '0',[/mysql] Add the following code to leaderboard.php: <?php require("top.php"); ?> <? require("usercheck.php"); require("prison_check.php"); ?> <form method="post"> <table width="550" border="0" align="center" cellpadding="0" cellspacing="2" class="table"> <tr> <td colspan="3" align="left" class="head">Top 10 Ranked Players: </td> </tr> <tr> <td width="150" align="left" class="sub">Name:</td> <td width="150" align="left" class="sub">Rank:</td> <td width="250" align="left" class="sub">Gang:</td> </tr> <? $result = mysql_query("SELECT name,gang,exp,rank FROM login WHERE staff='0' AND sitestate='0' ORDER BY exp + 0 DESC LIMIT 0,10") or die(mysql_error()); // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $result )) { // Print out the contents of each row into a table ?> <tr> <td width="150" align="left" class="cell"><?php echo "<a href=\"view_profile.php?name=". $row['name'] ."\" onFocus=\"if(this.blur)this.blur()\">".$row['name']."</a>"; ?></td> <td width="150" align="left" class="cell"><?php echo $rank_array[$row['rank']]; ?></td> <td width="250" align="left" class="cell"><?php if(empty($row['gang'])){ echo "No Gang."; }else{ echo "<a href=\"view_gang.php?name=". $row['gang'] ."\" onFocus=\"if(this.blur)this.blur()\" >".$row['gang']."</a>"; }?></td> </tr> <?php } // while ?> </table> <table width="550" border="0" align="center" cellpadding="0" cellspacing="2" class="table"> <tr> <td colspan="3" align="left" class="head">Top 10 wealthiest Players: </td> </tr> <tr> <td width="150" align="left" class="sub">Name:</td> <td width="150" align="left" class="sub">Wealth:</td> <td width="250" align="left" class="sub">Gang:</td> </tr> <? $result = mysql_query("SELECT money,name,gang FROM login WHERE staff='0' AND sitestate='0' ORDER BY money + 0 DESC LIMIT 0,10") or die(mysql_error()); // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $result )) { // Print out the contents of each row into a table ?> <tr> <td width="150" align="left" class="cell"><?php echo "<a href=\"view_profile.php?name=". $row['name'] ."\" onFocus=\"if(this.blur)this.blur()\">".$row['name']."</a>"; ?></td> <td width="150" align="left" class="cell"><?php if($row['money'] >= 0 ){ $profile_wealth = $wealth_array[0];} if($row['money'] >= 25000 ){ $profile_wealth = $wealth_array[1];} if($row['money'] >= 50000 ){ $profile_wealth = $wealth_array[2];} if($row['money'] >= 100000 ){ $profile_wealth = $wealth_array[3];} if($row['money'] >= 250000 ){ $profile_wealth = $wealth_array[4];} if($row['money'] >= 500000 ){ $profile_wealth = $wealth_array[5];} if($row['money'] >= 1000000 ){ $profile_wealth = $wealth_array[6];} if($row['money'] >= 10000000 ){ $profile_wealth = $wealth_array[7];} if($row['money'] >= 1000000000 ){ $profile_wealth = $wealth_array[8];} if($row['money'] >= 10000000000 ){ $profile_wealth = $wealth_array[9];} echo $profile_wealth; ?></td> <td width="250" align="left" class="cell"><?php if(empty($row['gang'])){ echo "No Gang."; }else{ echo "<a href=\"view_gang.php?name=". $row['gang'] ."\" onFocus=\"if(this.blur)this.blur()\" >".$row['gang']."</a>"; }?></td> </tr> <?php } // while ?> </table> </p> </form> <?php require("bottom.php"); ?> Add the following to the top.php navigation: Leaderboard Enjoy the free script. :)
-
:::::::::: Properties Information :::::::::::: Screenshot: http://i795.photobucket.com/albums/yy238/devtek_solutions/Properties.jpg Add function below to functions.php: function money($value){ return "$ ".number_format($value).""; } Add the following source code to a new file named properties.php: <?php require("top.php"); ?> <? require("usercheck.php"); require("prison_check.php"); ?> <style type="text/css"> <!-- .style1 {color: #FFFFFF} --> </style> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="2" bgcolor="#111111" class="table"> <tr> <center> [b]Note: You may only own one of each kind of property. Anyone with more than one will either loose all of them, or be banned. You have been warned.[/b] </center></tr> <tr> <td colspan="4" align="left" class="head style1">Casino Information: </td> </tr> <tr> <td width="150" align="left" class="sub"><span class="style1">[b]Location:[/b]</span></td> <td width="125" align="left" class="sub"><span class="style1">[b]Keno:[/b]</span></td> <td width="125" align="left" class="sub"><span class="style1">[b]Horse Racing:[/b]</span></td> <td width="125" align="left" class="sub"><span class="style1">[b]Roulette:[/b]</span></td> </tr> <?php $result = mysql_query("SELECT * FROM location ORDER BY id ASC ") or die(mysql_error()); // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $result )) { // Print out the contents of each row into a table ?> <tr> <td width="150" align="left" class="cell"><span class="style1"> <label><?php echo $location_array[$row['id']]; ?></label> </span></td> <td width="125" align="left" class="cell" <?php if($row['keno'] <> "No Owner."){ echo "onclick=\"location.href='view_profile.php?name=".$row['keno']."'\" style=\"cursor: pointer;\" ";} ?>><a class="style1"> <label onmouseover="this.innerHTML = '<?php echo money($row['keno_max']); ?>';" onmouseout="this.innerHTML = '<?php echo $row['keno']; ?>';"><?php echo $row['keno']; ?></label> </a></td> <td width="125" align="left" class="cell" <?php if($row['rt'] <> "No Owner."){ echo "onclick=\"location.href='view_profile.php?name=".$row['rt']."'\" style=\"cursor: pointer;\" ";} ?>><a> <label onmouseover="this.innerHTML = '<?php echo money($row['rt_max']); ?>';" onmouseout="this.innerHTML = '<?php echo $row['rt']; ?>';"><?php echo $row['rt']; ?></label> </a></td> <td width="125" align="left" class="cell" <?php if($row['rl'] <> "No Owner."){ echo "onclick=\"location.href='view_profile.php?name=".$row['rl']."'\" style=\"cursor: pointer;\" ";} ?>><a> <label onmouseover="this.innerHTML = '<?php echo money($row['rl_max']); ?>';" onmouseout="this.innerHTML = '<?php echo $row['rl']; ?>';"><?php echo $row['rl']; ?></label> </a></td> </tr> <?php } // while ?> </table> <?php include("bottom.php"); ?> Add the following link to top.php: Properties Enjoy the free script. :)
-
Re: Total Time Logged In! Total time logged in: 4 days, 21 hours and 12 minutes.
-
Re: Zend Certification ive got Microsoft and many others at this time its not helping me much >.>
-
Re: strtotime produces wrong time. After using that bit of sql i got this in the SQL. 57600 which is the time i need. But i require the 0- before this. The code below is how im working out the time. $sql = "SELECT * FROM login WHERE id='".mysql_real_escape_string($_SESSION['user_id'])."'"; $query = mysql_query($sql) or die(mysql_error()); $row = mysql_fetch_object($query); $rm_check = explode("-", $rm); if(empty($rm_check[0])){ if((time() <= $rm_check[1]) ) { $master = $rm_check[1] - time(); if ($master < 3600) { echo date( "00:i:s", $rm_check[1] - time() ); } if (($master > 3600) and ($master < 86400)){ echo date( "H:i:s", $rm_check[1] - time() - 3600 ); } echo " before you are ready."; }else{
-
Re: strtotime produces wrong time. I tried what you have posted but i cant get it to add the time to the sql. Infact it doesnt add the 0- either. $rm_time = "0-".time () + 60 *60 * 16; $result = mysql_query("UPDATE login SET newmail='0',rm='".my_real_escape_string($rm_time)."' WHERE name='" .mysql_real_escape_string($bo). "'") or die(mysql_error()); Im not sure where im going wrong?
-
Hi all, I have some code that basicly inputs start time and is supposed to + 16 hours then other functions use this to countdown to zero. $rm = "0-".strtotime ("+57600"); The problem is that the time actually sets +9 hours instead. So it misses +7 hours which would make sense as the server time is GMT -7. However whatever i try to correct this does not work. ("+57600") ("+16 hours") ("+16 hours gmt -7") does anyone have an idea on how to solve this problem? Thanks.
-
Re: v2.0 now released ive seen someone eles sell this this some where :?
-
Re: [review] Godfathers United we don't have a demo account because you have to login with your email not your user name.
-
Re: [review] Godfathers United well the template has been made 100% by us, so i donno where you have seen it :? :? the script is Gangster Legends there is a download on here some where for it but you have to pay for all the add on like the kill page and so on but the people that made it took there site down.
-
Re: [review] Godfathers United its made from an open source php script
-
Re: [review] Godfathers United no one ?
-
Hey all, Theres a new game on the web. Godfathers United! With a unique layout and plenty of custom features the game really sets itself apart from the rest and theres still more features to be released. Come and check us out at www.gfunited.com and see if you have what it takes to be the best. Release Date: 08 May 2009
-
well i just wanted to know if any one has done any exams on things like php or any microsoft exams. or do you learn from your computer and think you know it "all"
-
Re: What is the best Operating System Made by Microsoft 98 is the best out of the lot but that is just what i think, but i use xp. but its good how you have to use a 98 boot up disk for xp some times brings back the old days :-D
-
Re: ***FREE POKER SCRIPT FOR MCCODES V1*** the game never ends :S
-
Re: ***FREE POKER SCRIPT FOR MCCODES V1*** wow this is a good game but i lost first time :-( +1