Jump to content
MakeWebGames

jamiee

Members
  • Posts

    129
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by jamiee

  1. you said you had the files, they are just in the wrong place. look where they are being included from and put them where it says
  2. its pretty simple really, you type a target's name in that you want to kill and it works out how many bullets you need to use to kill them by what level they are.
  3. what would people like to see added to gangster legends ? i have alot of free time and might code some mods for it, but i don't know what so leave your reply's and i might code some and release them for free :)
  4. save this file as bullet_calculator.php and add a link to top.php and your done :D   <?php require("top.php"); ?> <? require("usercheck.php"); require("prison_check.php"); ?> <?php if(isset($_POST['cal'])){ if(in_array($_POST['tar'], $admin_array) or in_array($_POST['tar'], $manager_array)){ echo "The Number of bullets needed to kill ".$_POST['tar']." is too much."; }else{ $sql = "SELECT * FROM login WHERE name='".$_POST['tar']."'"; $query = mysql_query($sql); $fetch = mysql_fetch_object($query); $target_name = $fetch->name; $target_rank = $fetch->rank; $target_health = $fetch->health; $target_armor = $fetch->armor; if(empty($_POST['tar'])){ echo "You didn't enter a taget"; }else{ if(empty($target_name)){ echo "The target does not exist"; }else{ if($money < 10000){ echo "You do not have enough money to calculate you need $ 10,000,-"; }else{ $sql = "UPDATE login SET money=money-'10000' WHERE name='$name'"; $query = mysql_query($sql); $bb = $target_rank * ( 700 * round($target_rank / 2) ) + ((8 + $target_armor) * (550 * $target_rank) - ($weapon * (550 * $target_rank))) ; $bullets_needed = round($bb/100) * $target_health; $bullets_needed = number_format($bullets_needed); echo "The Maximum Number of bullets needed to kill ".$_POST['tar']." is $bullets_needed"; $sql = "SELECT * FROM login WHERE name='".$name."'"; $query = mysql_query($sql); $fetch = mysql_fetch_object($query); $money = $fetch->money; } } } } } ?> <form id="form1" name="form1" method="post" action=""> <table width="220" border="0" cellpadding="0" cellspacing="2" class="table"> <tr> <td colspan="2" align="left" class="head">Bullet Calculator.</td> </tr> <tr> <td width="300" align="left" class="sub"><b>Calculating bullets will cost $10,000.</b></td> </tr> <tr> <td width="280" align="left" class="sub"><b>Target Name:</b></td> </tr> <tr> <td width="150" align="left" class="cell"><input name="tar" id="tar" class="entryfield" type="text" maxlenth="20" /></td> </tr> <tr> <td width="150" align="center" class="submit"><input name="cal" id="cal" class="button" type="submit" maxlenth="20" value="Calculate." /></td> </tr> </table> <br /> </form> <?php require("bottom.php"); ?>
  5. i got a pm the other day asking for this for this, so i though i would put it out as a free mod. save it as admin.php and add the link to top.php if its not all ready there.   <?php require("top.php"); ?> <?php if (in_array($name, $admin_array)){ // select members for select fields. $result = mysql_query("SELECT name,id FROM login ORDER BY name DESC") or die(mysql_error()); $member_list = ""; while($row = mysql_fetch_array( $result )) { if($row['name'] == $_POST['name']){ $member_list .= "<option selected=\"selected\" value=\"".$row['name']."\">".$row['name']."</option>"; }else{ $member_list .= "<option value=\"".$row['name']."\">".$row['name']."</option>"; } } if(isset($_POST['Update'])){ if(strlen($_POST['credits']) <= 10 and strlen($_POST['money']) <= 10 and strlen($_POST['bullets']) <= 10){ if(is_numeric($_POST['credits']) and is_numeric($_POST['money']) and is_numeric($_POST['bullets'])){ if(empty($_POST['credits'])){ $_POST['credits'] = 0; } if(empty($_POST['money'])){ $_POST['money'] = 0; } if(empty($_POST['bullets'])){ $_POST['bullets'] = 0; } // update state. $result = mysql_query("UPDATE login SET credits='".mysql_real_escape_string($_POST['credits'])."', money='".mysql_real_escape_string($_POST['money'])."', ammo='".mysql_real_escape_string($_POST['bullets'])."' WHERE name='" .mysql_real_escape_string($_POST['name']). "'") or die(mysql_error()); echo "".$_POST['name']."'s items have been changed."; }else{ echo "One or more values are invalid."; } }else{ echo "One or more values are invalid."; } } if(isset($_POST['Search']) or isset($_POST['Update'])){ $sql = "SELECT money,credits,ammo FROM login WHERE name='".mysql_real_escape_string($_POST['name'])."'"; $query = mysql_query($sql) or die(mysql_error()); $row = mysql_fetch_object($query); $search_credits = htmlspecialchars($row->credits); $search_money = htmlspecialchars($row->money); $search_ammo = htmlspecialchars($row->ammo); } ?> <form method="post"> <table width="350" border="0" cellpadding="0" cellspacing="2" class="table"> <tr> <td colspan="3" align="left" class="head">Member Management: </td> </tr> <tr> <td colspan="3" align="left" class="sub">Select Member: </td> </tr> <tr> <td align="left" class="cell">Username:</td> <td width="175" align="center" class="cell"><select name="name" class="entryfield" id="name"> <option value="">Select.</option> <?php echo $member_list; ?> </select> </td> <td width="100" align="center" class="cell"> <input name="Search" type="submit" class="button" id="Search" onfocus="if(this.blur)this.blur()" value="Search." /></td> </tr> <tr> <td colspan="3" align="left" class="sub">Options:</td> </tr> <tr> <td width="75" align="left" class="cell">Credits:</td> <td width="275" colspan="2" align="center" class="cell"><input name="credits" type="text" class="entryfield" id="credits" value="<?php echo $search_credits; ?>" maxlength="10" /></td> </tr> <tr> <td width="75" align="left" class="cell">Money:</td> <td width="275" colspan="2" align="center" class="cell"><input name="money" type="text" class="entryfield" id="money" value="<?php echo $search_money; ?>" maxlength="10" /></td> </tr> <tr> <td width="75" align="left" class="cell">Bullets:</td> <td width="275" colspan="2" align="center" class="cell"><input name="bullets" type="text" class="entryfield" id="bullets" value="<?php echo $search_ammo; ?>" maxlength="10" /></td> </tr> <tr> <td colspan="3" align="right" class="submit"><input name="Update" type="submit" class="button" id="Update" onfocus="if(this.blur)this.blur()" value="Update." /></td> </tr> </table> </form> <?php } ?> <?php require("bottom.php"); ?>
  6. i think hes looking for someone to make him mods
  7. have you asked taxed about using the banner on the index ? he never made that to be used.
  8. all you would need to do is run a script with the my mysql to put a user in jail but use fake names.
  9. how do you mean get fake users in jail?
  10. dayo, i sold you the essential upgrade package awhile ago so i'll be looking at the free one to see of its like the one i sold you :)
  11. I remember taxed doing something like this for one of our games i'll have a look for the file and give you a pm
  12. inbox me your index.php and i will have a little look
  13. do you get any messages when you try to login ?
  14. ive been using GL for well over a year and not had this problem is it the first time you set it up?
  15. is this working yet ? if not im sure i can help :) i know gl inside out :)
  16. but you are a web designer and graphics :s and you never did your own template .... and your brought your one for freedom city from taxed ... can you even do anything ?
  17. ive been working with gl for a little over a year now and know it in side out soo if you need any help drop me a pm :) even dayo uses the mods i make :P
  18. what free plugins would you like to see on gangster legends? if i get some replys ill make a few, just wanted to know what people would like to see as there is not many mods for GL
  19. looks very nice :)
  20. 1311
  21. 1309
  22. 1306
  23. 1304
  24. http://tinyurl.com/22c6t try there
×
×
  • Create New...