
OutcasT
Members-
Posts
18 -
Joined
-
Last visited
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
OutcasT's Achievements
Newbie (1/14)
1
Reputation
-
Thug Paradise 2 Beta - Text Based Crime Game 2014
OutcasT replied to Warren Cartel's topic in Show off
I'm liking the layout aswell. Looks better than the .com and more cleaner. Keep up the work. -
[MENTION=65371]sniko[/MENTION] My main page is a page with 3 frames. - One is the players stats (this refreshes to update) - Two is the navigation, where all the pages are linked from - Three is the main page where the action happens
-
I will try that but how can I make it so people can access the main page without being logged in. they cant do anything but access it. how can I redirect then back to the login page?
-
How can I make my game log out someone after some inactivity? Currently if someone goes off the page and returns later, they are still signed in. How can I change that? Also, if they access the page that it logs in to, it comes up but everything is blank, how can I redirect them?
-
can you give me some?
-
have you got any others that are similar? like mafia ones (free)
-
Anyone got the scripts and database for gang city? for free add me on skype - x_outcast_x
-
-
Anybody know how to make the game layout? When you login. I dont know how to make it so the links on the top/left change only the bottom right of the page. So i want there to be a player info bar at the top Navigation links to the left and the rest is the only part of the page that changes.
-
Bump, can anyone help?
-
Seker, it doesn't work, no change, i replaced it and "MAXHEALTH" with 100
-
That works but i want it to add the difference. If they had 89% health and bought the 25% pack it would only go to 100% not 114%. Or if anyone can make it so they can input their desired amount and they would have to wait a specific amount of time depending on how much they bought. So if they had 77% and they could buy 23% and not waste money. Thanks
-
Hi, i just used a current page, duplicated it and adapted it into a hospital page. Now Everything is working except for 2 things; - Waiting Time ( people can just buy and buy and buy health ) - Max Health ( If they have 15% health and buy 100 it will become 115%, i dont know how to do it ) Thanks, Im new to the coding game. Heres The Code (back end of it); <? $page_url = explode(".", $_SERVER['REQUEST_URI']); $_SERVER['REQUEST_URI'] = $page_url[0].".php"; if($_SERVER['REQUEST_URI'] == "/_hospital.php"){ exit(); } if($_POST['Option'] == 1){ $amount = 25; $price = 5000; $time = "+5 minutes";} if($_POST['Option'] == 2){ $amount = 50; $price = 10000; $time = "+10 minutes";} if($_POST['Option'] == 3){ $amount = 75; $price = 15000; $time = "+15 minutes";} if($_POST['Option'] == 4){ $amount = 100; $price = 20000; $time = "+20 minutes";} if(isset($_POST['Purchase'])){ if ($button_value == $_POST['userdigit']) { if(empty($_POST['Option'])){ echo $lang_empty_field; }else{ if($money < $price){ echo "You don't have that much money."; }else{ $health_current = "SELECT health FROM login"; $max_health = 100; if($health_current == $max_health) { echo "You have 100% health."; }else{ $result = mysql_query("UPDATE login SET health=health+'".mysql_real_escape_string($amount)."', exp=exp+'5', money=money-'".mysql_real_escape_string($price)."', bullet_time='".strtotime ($time)."' WHERE id='" .mysql_real_escape_string($_SESSION['user_id']). "'") or die(mysql_error()); $sql = "SELECT money FROM login WHERE id='".mysql_real_escape_string($_SESSION['user_id'])."'"; $query = mysql_query($sql) or die(mysql_error()); $row = mysql_fetch_object($query); $money = htmlspecialchars($row->money); if($money < 0){ $result = mysql_query("UPDATE login SET sitestate='1' WHERE id='".mysql_real_escape_string($_SESSION['user_id'])."'") or die(mysql_error()); $sql = "INSERT INTO banned SET id = '', name = '" .mysql_real_escape_string($name). "', banner = '" .mysql_real_escape_string($site_name). "', reason = 'Exploiting bullets.'"; $res = mysql_query($sql); echo "You have been banned for exploiting."; } $health = $health + $amount; $exp = $exp + 5; $dissable = true; echo "You bought ".number_format($amount)." health for $ ".number_format($price).",-."; if(!empty($ref)){ $result = mysql_query("UPDATE login SET health=health+'25' WHERE name='".mysql_real_escape_string($ref)."'") or die(mysql_error()); } }// if not enough money. }// if empty field. }// if no in stock. } else { echo "The verification code did not match."; }// else wrong activation code. }// if purchase. ?> Heres the "Front Of House" (if it is of use); <fieldset style="color: #000000; border: 1px solid #000000; width: 300px; text-align: left; padding: 5px;"> <legend style="color: #999999; font-weight: bold;">Bullet Factory.</legend> <form method="post"> <table width="300" border="0" cellpadding="0" cellspacing="2" class="table"> <tr> <td colspan="2" align="left" class="sub"><b>Health:</b></td> <td width="100" align="left" class="sub"><b>Price:</b></td> <td width="75" align="left" class="sub"><b>Time:</b></td> </tr> <tr> <td width="25" class="cell"><input name="Option" type="radio" value="1" id="1" onfocus="if(this.blur)this.blur()"/></td> <td width="150" align="left" class="cell"><label for="1">25% Health.</label></td> <td width="100" align="left" class="cell"><label for="1">$ 5,000,-</label></td> <td width="75" align="left" class="cell"><label for="1">5 Minutes.</label></td> </tr> <tr> <td width="25" class="cell"><input name="Option" type="radio" value="2" id="2" onfocus="if(this.blur)this.blur()"/></td> <td width="150" align="left" class="cell"><label for="2">50% Health.</label></td> <td width="100" align="left" class="cell"><label for="2">$ 10,000,-</label></td> <td width="75" align="left" class="cell"><label for="2">10 Minutes.</label></td> </tr> <tr> <td width="25" class="cell"><input name="Option" type="radio" value="3" id="3" onfocus="if(this.blur)this.blur()"/></td> <td width="150" align="left" class="cell"><label for="3">75% Health.</label></td> <td width="100" align="left" class="cell"><label for="3">$ 15,000,-</label></td> <td width="75" align="left" class="cell"><label for="3">15 Minutes.</label></td> </tr> <tr> <td width="25" class="cell"><input name="Option" type="radio" value="4" id="4" onfocus="if(this.blur)this.blur()"/></td> <td width="150" align="left" class="cell"><label for="4">100% Health.</label></td> <td width="100" align="left" class="cell"><label for="4">$ 20,000,-</label></td> <td width="75" align="left" class="cell"><label for="4">20 Minutes.</label></td> </tr> <tr> <td colspan="4" align="center" class="submit"> <table width="295" border="0" cellspacing="0"> <tr> <td width="120" align="center"><img src="files/button.php" alt="Verification." width="120" height="30" /></td> <td width="100" align="center"><input name="userdigit" type="text" class="entryfield" style='width: 85%; ' size="5" maxlength="5"<?php echo $disabled; ?>/></td> <td width="120" align="center"><input name="Purchase" type="submit" class="button" id="Purchase" onfocus="if(this.blur)this.blur()" value="Purchase."/></td> </tr> </table> </td> </tr> </table> </form> </fieldset> Thanks To All Who Help!:D
-
Im only 14 and just getting into coding.:D