Jump to content
MakeWebGames

weewooz

Members
  • Posts

    258
  • Joined

  • Last visited

    Never

Everything posted by weewooz

  1. Name says it all a new take out a loan if players cant pay back the loan it takes there house of them and declairs them bankrupt so here it is call this loan.php <?php session_start(); require "globals.php"; print "<h3>Loan Shop</h3> Welcome to the Loan shop!"; if($ir['level']>=10 || $ir['user_level'] == 1) { if($ir['loan_days'] == $ir['loan_days_max']) { print "You have had your bank account frozen. and you have lost your house. From now on until your loan balance is paid fully you will not recieve any money for your efforts."; $db->query("UPDATE users SET bank_frozen=1,lose_house=1 WHERE userid=$userid"); exit; } else { switch($_GET['action']) { case "deposit": deposit(); break; case "withdraw": withdraw(); break; default: index(); break; } function index() { global $ir,$db,$userid,$h; $loanleft = $ir['maxloan']-$ir['loan']+$ir['loanintrest']; print "\n[b]Your maxloan is \${$ir['maxloan']}. Your current loan is \${$ir['loan']}.[/b] At the end of each day, 10% of your loan amount will be taken away from your on-hand cash until you repay your loan. <table width='75%' border='2'> <tr> <td width='50%'>[b]Pay Back Money[/b] <form action='loan.php?action=deposit' method='post'> Amount: <input type='text' name='deposit' value='{$ir['loan']}' /> <input type='submit' value='Pay Back' /></form></td> <td> [b]Take money[/b] <form action='loanofficer.php?action=withdraw' method='post'> Amount: <input type='text' name='withdraw' value='$loanleft' /> <input type='submit' value='Take Out' /></form></td> </tr> </table>"; } function deposit() { global $ir,$db,$userid,$h; $_POST['deposit']=abs((int) $_POST['deposit']); if($_POST['deposit'] > $ir['money']) { print "You do not have enough money to deposit this amount."; } else { $gain=$_POST['deposit']; $ir['loan']-=$gain; mysql_query("UPDATE users SET loan=loan-$gain, money=money-{$_POST['deposit']} where userid=$userid",$db); print "You hand over \${$_POST['deposit']} to be paid for your loan, [b]You now have a loan of \${$ir['loan']} taken out.[/b] [url='loan.php']> Back[/url]"; } } function withdraw() { global $ir,$db,$userid,$h; $_POST['withdraw']=abs((int) $_POST['withdraw']); $loanleftstill = $ir['maxloan'] - $ir['loan']; if($_POST['withdraw'] > $loanleftstill) { print "You don't have enough money left in your max loan to withdraw this amount, choose a different amount or upgrade your max loan."; } else { $gain=$_POST['withdraw']; $ir['loan']+=$gain; mysql_query("UPDATE users SET loan=loan+$gain, money=money+$gain where userid=$userid",$db); print "You ask for and get a loan of $gain, [b]You now have a loan of \${$ir['loan']} taken out.[/b] [url='loan.php']> Back[/url]"; } } $h->endpage(); ?>   add these sqls ALTER TABLE `users` ADD `loan_days` SMALLINT( 2 ) NOT NULL DEFAULT '0', ADD `loan_days_max` SMALLINT( 2 ) NOT NULL DEFAULT '30'; ADD `bank_frozen` SMALLINT( 2 ) NOT NULL DEFAULT '0'; ADD `lose_house` SMALLINT( 2 ) NOT NULL DEFAULT '0'; ADD `loan` INT( 11 ) NOT NULL DEFAULT '0'; ADD `maxloan` INT( 11 ) NOT NULL DEFAULT '50000'; ADD `loan_payed` INT( 11 ) NOT NULL DEFAULT '0'; ADD `loanintrest` INT( 11 ) NOT NULL DEFAULT '10'; and your done enjoy any probs let me know
  2. This Mail Bomb Script But The Pro Version Fairly Long So Here Goes Call This mbbuy.php <?php include("globals.php"); global $set; $mb_price=$set['mb_price']; //mb price set in USD $paypal=$set['paypal']; $domain=$_SERVER['HTTP_HOST']; print "<h3>Mailbombs</h3> Mailbombs are great to make hidden attacks on foes or as pranks to anyone Great, and cheap so it won't cost much. Also enables you to add to market for cash aswell. Mailbombs don't have a fixed market value, so it can be worth how much you want The current price for a mailbomb is [b]\$$mb_price[/b] USD [b]One Mail Bomb[/b] (\${$mb_price}) "; print <<<EOF <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type=hidden name=cmd value=_xclick> <input type="hidden" name="business" value="{$paypal}"> <input type="hidden" name="item_name" value="{$set['game_name']} Mail Bomb Donation for ($userid) (1 MB)"> <input type="hidden" name="amount" value="{$mb_price}"> <input type="hidden" name="item_number" value="1"> <input type="hidden" name="no_shipping" value="1"> <input type="hidden" name="return" value="http://{$domain}/mbdone.php"> <input type="hidden" name="cancel_return" value="http://{$domain}/mbdone.php?notdone"> <input type="hidden" name="cn" value="Your Player ID"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="tax" value="0"> <input type="hidden" name="bn" value="{$set['game_name']}"> <input type='hidden' name='mono_buyer' value=''> <input type='hidden' name='mono_for' value=''> <input type='hidden' name='mono_pack' value='1'> <input type="image" name="add" src="http://www.powersellersunite.com/buttonfactory/x-click-but01.gif" title="Make payments with PayPal!"> </form> EOF; $mb_5_price=$mb_price*5; print " [b]5 Mail Bombs[/b] (\${$mb_5_price}) "; print <<<EOF <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type=hidden name=cmd value=_xclick> <input type="hidden" name="business" value="{$paypal}"> <input type="hidden" name="item_name" value="{$set['game_name']} Mail Bomb Donation for ($userid) (5 MBs)"> <input type="hidden" name="item_number" value="5"> <input type="hidden" name="amount" value="{$mb_5_price}"> <input type="hidden" name="no_shipping" value="1"> <input type="hidden" name="return" value="http://{$domain}/mbdone.php"> <input type="hidden" name="cancel_return" value="http://{$domain}/mbdone.php?notdone"> <input type="hidden" name="cn" value="Your Player ID"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="tax" value="0"> <input type="hidden" name="bn" value="{$set['game_name']}"> <input type='hidden' name='mono_buyer' value=''> <input type='hidden' name='mono_for' value=''> <input type='hidden' name='mono_pack' value='1'> <input type="image" name="add" src="http://www.powersellersunite.com/buttonfactory/x-click-but01.gif" title="Make payments with PayPal!"> </form> EOF; $h->endpage(); ?>   Call This mbdone.php <?php session_start(); include("globals.php"); global $set,$userid,$ir; if($_SESSION['userid'] != "") { $userid=$_SESSION['userid']; } else { $userid=$ir['userid']; } $mb_price=$set['mb_price']; //mb price set in USD $paypal=$set['paypal']; $domain=$_SERVER['HTTP_HOST']; if($_SERVER['HTTP_REFERER'] != "" and !eregi('paypal', $_SERVER['HTTP_REFERER'])) { die("You did not come from paypal, f*** off."); } if($_SESSION['ud'] == 1) { die("No point in cheating.."); } if(isset($_GET['notdone'])) { die("We're sorry you couldn't purchase happily with us, Please try soon.."); } if($_REQUEST['txn_id'] == "" or $_REQUEST['amount'] == "" or $_REQUEST['item_name'] == "" or $_REQUEST['item_number'] == "") { die("PayPal has failed to reply and communicate. If you donated, please contact the owner. "); } $user=$userid; $bombs=$_REQUEST['item_number']; mysql_query("UPDATE users SET mailbomb=mailbomb+{$bombs} WHERE userid={$user}",$c); event_add($user,"Your mailbombs have been credited, thanks.",$c); event_add(1,"$user - they donated for {$bombs} mailbombs and have been credited",$c); print "Thanks for your donation You will be credited in a few minutes, we hope your happy with your donation If you have any issues with this system please contact the owner For the safety of the game, you can only donate for mailbombs once per day So if you try to donate again, you won't recieve your donation now, only tommorrow "; $_SESSION['ud']=1; $h->endpage(); ?>   Call This mbmarket.php <?php include "globals.php"; print "<h3>Mail Bomb Market</h3>"; switch($_GET['action']) { case "buy": mb_buy(); break; case "remove": mb_remove(); break; case "add": mb_add(); break; default: mbmarket_index(); break; } function mbmarket_index() { global $ir,$c,$userid,$h; print "<table width=75% border=1 bordercolor=#666666><tr><td>[url='mbmarket.php?action=add']> Add A Listing[/url]</td> </tr> </table> <table width=75% border=1 bordercolor=#666666><th>Adder</th> <th>Qty</th> <th>Price each</th> <th>Price total</th> <th>Links</th> </tr>"; $q=mysql_query("SELECT mb.*, u.* FROM mbmarket mb LEFT JOIN users u ON u.userid=mb.mb_from ORDER BY mb_price/mb_quantity ASC",$c); while($r=mysql_fetch_array($q)) { if($r['mb_from'] == $userid) { $link = "[url='mbmarket.php?action=remove&ID={$r[']Remove[/url]"; } else { $link = "[url='mbmarket.php?action=buy&ID={$r[']Buy[/url]"; } $each= (int) $r['mb_price'] / $r['mb_quantity']; print "\n<tr> <td>[url='viewuser.php?u={$r[']{$r['username']}[/url] [{$r['userid']}]</td> <td>{$r['mb_quantity']}</td> <td> \$" . number_format($each)."</td> <td>\$".number_format($r['mb_price'])."</td> <td>[$link]</td> </tr>"; } print "</table>"; } function mb_remove() { global $ir,$c,$userid,$h; $q=mysql_query("SELECT * FROM mbmarket WHERE mb_id={$_GET['ID']} AND mb_from=$userid",$c); if(!mysql_num_rows($q)) { print "Error, either these mailbombs do not exist, or you are not the owner. [url='mbmarket.php']> Back[/url]"; $h->endpage(); exit; } $r=mysql_fetch_array($q); mysql_query("UPDATE users SET mailbomb=mailbomb+{$r['mb_quantity']} where userid=$userid",$c) or die(mysql_error()); mysql_query("DELETE FROM mbmarket WHERE mb_id={$_GET['ID']}",$c); print "Mailbombs removed from market! [url='mbmarket.php']> Back[/url]"; } function mb_buy() { global $ir,$c,$userid,$h; $q=mysql_query("SELECT * FROM mbmarket WHERE mb_id={$_GET['ID']}",$c); if(!mysql_num_rows($q)) { print "Error, either these mailbombs do not exist, or they have already been bought. [url='mbmarket.php']> Back[/url]"; $h->endpage(); exit; } $r=mysql_fetch_array($q); if($r['mb_price'] > $ir['money']) { print "Error, you do not have the funds to buy these mailbombs. [url='mbmarket.php']> Back[/url]"; $h->endpage(); exit; } mysql_query("UPDATE users SET mailbomb=mailbomb+{$r['mb_quantity']} where userid=$userid",$c) or die(mysql_error()); mysql_query("DELETE FROM mbmarket WHERE mb_id={$_GET['ID']}",$c); mysql_query("UPDATE users SET money=money-{$r['mb_price']} where userid=$userid",$c); mysql_query("UPDATE users SET money=money+{$r['mb_price']} where userid={$r['mb_from']}",$c); event_add($r['mb_from'],"[url='viewuser.php?u=$userid']{$ir['username']}[/url] bought your {$r['mb_quantity']} crystals from the market for \$".number_format($r['mb_price']).".",$c); print "You bought the {$r['mb_quantity']} mailbombs from the market for \$".number_format($r['mb_price'])."."; } function mb_add() { global $ir,$c,$userid,$h; $_POST['amnt'] = abs((int) $_POST['amnt']); $_POST['price'] = abs((int) $_POST['price']); if($_POST['amnt'] > 0) { if($_POST['amnt'] > $ir['mailbomb']) { die ("You are trying to add more mailbombs to the market than you have."); } $tp=$_POST['amnt']*$_POST['price']; mysql_query("INSERT INTO mbmarket (mb_id,mb_from,mb_price,mb_quantity) VALUES ('NULL',$userid,{$tp},{$_POST['amnt']});",$c); mysql_query("UPDATE users SET mailbomb=mailbomb-{$_POST['amnt']} WHERE userid=$userid",$c); print "Mail bombs added to market! [url='mbmarket.php']> Back[/url]"; } else { print "<table width=75% border=1 bordercolor=#666666><tr><td>You have [b]{$ir['mailbomb']}[/b] mailbomb(s) that you can add to the market.</td> </tr> </table> <form action='mbmarket.php?action=add' method='post'><table width=75% border=1 bordercolor=#666666><tr> <td>Mail Bombs:</td> <td><input type='text' name='amnt' value='{$ir['mailbomb']}' /></td></tr><tr> <td>Price Each:</td> <td><input type='text' name='price' value='2000000' /></td></tr><tr> <td colspan=2 align=center><input type='submit' value='Add To Market' /></tr></table></form>"; } } $h->endpage(); ?>   Call This mbuser.php <?php include("globals.php"); //make the identity a number only $_GET['ID']=(int) $_GET['ID']; if($_GET['ID']) { $u_e=mysql_query("SELECT * FROM users WHERE userid={$_GET['ID']}",$c); } if(PHP_VERSION <= 4) { print "Your PHP version ".PHP_VERSION." does not match this mod."; } elseif(!$_GET['ID']) { print "Give a ID! [url='javascript:history.back();']Back[/url] "; } elseif($_GET['ID'] == $userid) { print "Not yourself dumbass! [url='javascript:history.back();']Back[/url] "; }elseif(mysql_num_rows($u_e) == 0) { print "No user found! [url='javascript:history.back();']Back[/url] "; } elseif($ir['mailbomb'] == 0) { print "You have no mailbombs! [url='javascript:history.back();']Back[/url] "; } else { if($_REQUEST['ID'] and $_REQUEST['want'] == "y") { $rand=rand(1,5); //Chances of a successful hit. $result = "[b]Result[/b]: "; if($rand >= 3) { $result.="You tried to put a mail bomb in there mailbox but you failed so you dropped the mailbombs and ran home!"; } else { $result.="You planted a mailbomb successfully!"; $subj="No Subject"; $msg="You have been mailbombed!"; $mb_ch=rand(1,5); if($mb_ch != 3) { $from=0; } else { $from=$userid; } $to = $_GET['ID']; mysql_query("INSERT INTO mail VALUES ('',0,$from,$to,unix_timestamp(),'$subj','$msg')",$c) or die(mysql_error()); } $ir['mailbomb']--; $time=time(); mysql_query("INSERT INTO mb_logs (mb_id,mb_from,mb_to,mb_time) VALUES ('NULL',$userid,{$_GET['ID']},$time);",$c); mysql_query("UPDATE users SET mailbomb={$ir['mailbomb']} WHERE userid=$userid",$c); echo $result; echo " [url='viewuser.php?u={$_GET[']Back[/url] "; } else { print "<h3>Mail Bombs</h3> You are sending a regular mail, but this mail allows that member to get attacked once opened. Mails cannot always send successful, so beware! <form action='mbuser.php' method='get'> <input type='hidden' name='ID' value='{$_GET['ID']}'> <input type='hidden' name='want' value='y'> <input type='submit' value='Click here if you want to mailbomb this user!'> </form> "; } } $h->endpage(); ?>   Then Follow this OPEN mailbox.php AND find where it says function mail_inbox() { global $ir,$c,$userid,$h; print "Only the last 25 messages sent to you are visible. <table width=75% bgcolor=#222222 border=1 bordercolor=#666666><th>From</th><th>Subject/Message</th></tr>"; $q=mysql_query("SELECT m.*,u.* FROM mail m LEFT JOIN users u ON m.mail_from=u.userid WHERE m.mail_to=$userid ORDER BY mail_time DESC LIMIT 25",$c); while($r=mysql_fetch_array($q)) { $sent=date('F j, Y, g:i:s a',$r['mail_time']); print "<tr><td>";   ADD AFTER $q2=mysql_query("SELECT * FROM mb_used WHERE mb_mail={$r['mail_id']} AND mb_used=0",$c); $rw=mysql_num_rows($q2); if($rw != 0) { $rr=mysql_fetch_array($q2); if($rr['mb_used'] == 0) { print "This mailbomb has already been used! "; } else { print "This mailbomb has attacked you! "; $time=rand(10,140); mysql_query("UPDATE mb_used SET mb_used=1 WHERE mb_mail={$r['mail_id']}",$c); mysql_query("UPDATE users SET hospital=hospital+$time,hospreason='Mail Bombed' WHERE userid=$userid",$c); } }   THEN OPEN UP staff.php AND FIND WHERE IT SAYS Will Potion Item: ".item_dropdown($c, "willp_item", $set['willp_item'])."     ADD AFTER   USD Price per Mailbomb: <input type='text' name='mb_price' value='{$set['mb_price']}'>     THEN OPEN up viewuser.php AND FIND WHERE IT SAYS [send Cash]   ADD AFTER   [Mail Bomb]   THEN ADD A LINK IN explore.php Mailbomb Market
  3. Again as i said i fount these on my old computer tower just posting them to see if any one can use them This allows gang owners to sell there gang on the gang market Call this gangmarket.php <?php session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.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); check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); print "<h3>Gangs Market</h3>"; switch($_GET['action']) { case "buy": gang_buy(); break; case "remove": gang_remove(); break; case "add": gang_add(); break; default: gangmarket_index(); break; } function gangmarket_index() { global $ir,$c,$userid,$h; print "<table width=75% border=1 bordercolor=#666666><tr><td>"; if($ir['gang']) { print "[url='gangmarket.php?action=add']> Add Your Gang[/url]"; } print "</td> </tr> </table> <table width=75% border=1 bordercolor=#666666><th>Seller</th> <th>Gang </th> <th> Price </th> <th>Average Rating</th> <th>Links</th> </tr>"; $q=mysql_query("SELECT gm.*, u.*,g.* FROM gangsmarket gm LEFT JOIN users u ON u.userid=gm.gm_from LEFT JOIN gangs g ON gm.gm_gang=g.gangID",$c) or die(mysql_error()); while($r=mysql_fetch_array($q)) { if($r['gang'] != $r['gangID']) { mysql_query("DELETE FROM gangsmarket WHERE gm_id={$r['gm_id']}",$c); } if($r['gm_from'] == $userid) { $link = "[url='gangmarket.php?action=remove&ID={$r[']Remove[/url]"; } else { $link = "[url='gangmarket.php?action=buy&ID={$r[']Buy[/url]"; } $total=$r['gangRESPECT']+mysql_num_rows(mysql_query("SELECT * FROM users WHERE gang={$r['gangID']}")); $total=$total/10; if($total > 1000) { $rate=10; } elseif($total > 900) { $rate=9; } elseif($total > 800) { $rate=8; } elseif($total > 700) { $rate=7; } elseif($total > 600) { $rate=6; } elseif($total > 500) { $rate=5; } elseif($total > 400) { $rate=4; } elseif($total > 300) { $rate=3; } elseif($total > 200) { $rate=2; } else { $rate=1; } print "\n<tr> <td>[url='viewuser.php?u={$r[']{$r['username']}[/url] [{$r['userid']}]</td> <td>[b]{$r['gangNAME']}[/b]</td> <td> \$" . number_format($r['gm_price'])."</td> <td>$rate/10</td> <td>[$link]</td> </tr>"; } print "</table>"; } function gang_remove() { global $ir,$c,$userid,$h; $q=mysql_query("SELECT * FROM gangsmarket WHERE gm_id={$_GET['ID']} AND gm_from=$userid",$c); if(!mysql_num_rows($q)) { print "Error, either this gang do not exist, or you are not the owner. [url='gangmarket.php']> Back[/url]"; $h->endpage(); exit; } $r=mysql_fetch_array($q); mysql_query("DELETE FROM gangsmarket WHERE gm_id={$_GET['ID']}",$c); print "Your gang removed from market! [url='gangmarket.php']> Back[/url]"; } function gang_buy() { global $ir,$c,$userid,$h; $q=mysql_query("SELECT * FROM gangsmarket WHERE gm_id={$_GET['ID']}",$c); if(!mysql_num_rows($q)) { print "Error, either this gang do not exist, or they have already been bought. [url='gangmarket.php']> Back[/url]"; $h->endpage(); exit; } elseif($ir['gang'] != 0) { print "Error, you are already in a gang so you cannot purchase this one. [url='gangmarket.php']> Back[/url]"; $h->endpage(); exit; } $r=mysql_fetch_array($q); if($r['gm_price'] > $ir['money']) { print "Error, you do not have the funds to buy this gang. [url='gangmarket.php']> Back[/url]"; $h->endpage(); exit; } mysql_query("UPDATE users SET gang={$r['gm_gang']},daysingang=0 where userid=$userid",$c) or die(mysql_error()); mysql_query("DELETE FROM gangsmarket WHERE gm_id={$_GET['ID']}",$c); mysql_query("UPDATE gangs SET gangPRESIDENT={$userid},gangVICEPRES={$userid} WHERE gangID={$r['gm_gang']}",$c); mysql_query("UPDATE users SET gang=0,daysingang=0 where userid={$r['gm_from']}",$c); mysql_query("UPDATE users SET money=money-{$r['gm_price']} WHERE userid=$userid",$c); mysql_query("UPDATE users SET money=money+{$r['gm_price']} WHERE userid={$r['gm_from']}",$c); event_add($r['gm_from'],"[url='viewuser.php?u=$userid']{$ir['username']}[/url] bought your gang from the market for \$".number_format($r['gm_price']).".",$c); print "You bought the gang from the market for \$".number_format($r['gm_price'])."."; } function gang_add() { global $ir,$c,$userid,$h; $_POST['price'] = abs((int) $_POST['price']); if($_POST['price']) { $q=mysql_query("SELECT * FROM gangsmarket WHERE gm_from=$userid",$c); if($_POST['price'] > 20000000000) { die("Your limit is \$20billion "); } elseif(mysql_num_rows($q)) { die ("You have already added your gang to the market."); } elseif(!$ir['gang']) { die ("You dont have a gang."); } $tp=$_POST['price']; mysql_query("INSERT INTO gangsmarket (gm_id,gm_from,gm_gang,gm_price) VALUES ('NULL', '{$userid}', '{$ir['gang']}', '{$tp}');", $c); print "Gang added to market! [url='gangmarket.php']> Back[/url]"; } else { print "<table width=75% border=1 bordercolor=#666666><tr><td>[b]Here you are adding your whole gang including the contents.[/b]</td> </tr> </table> <form action='gangmarket.php?action=add' method='post'><table width=75% border=1 bordercolor=#666666><tr> <td>Price:</td> <td>[b]Maximum price is \$20,000,000,000[/b] <input type='text' name='price' value='20000000' /></td></tr><tr> <td colspan=2 align=center><input type='submit' value='Add To Market' /></tr></table></form>"; } } $h->endpage(); ?>   and add this sql to your php admin CREATE TABLE `gangsmarket` ( gm_id INT( 11 ) NOT NULL AUTO_INCREMENT, gm_from INT( 11 ) NOT NULL, gm_gang INT( 11 ) NOT NULL, gm_price BIGINT( 40 ) NOT NULL, PRIMARY KEY (gm_id) ) TYPE=MYISAM ;   and thats it
  4. Re: chat As I Said Credit Goes To Who Ever Made Just People Keep Asking For One So I thought I would Post one
  5. Found this off my computer credit goes to who ever made just a few are asking for a chat mod so thought i would post   Call this chat.php   <?php $name=$ip." Website Visitor : "; //The name of the user print "<h3>Chatroom</h3>"; if($_REQUEST['message']) { $_GET['message'] = $_REQUEST['message']; $mess = array("gay","shit","poo","game","sign up", "porn", "nob"); $found = 0; //amount of dirty words found foreach($mess as $val) { if(eregi($val, $_GET['message'])) { $found ++; } //filterd done $_GET['message'] = str_replace($val, "?$!^!%", $_GET['message']); } $newtotal = $name; $newtotal .= $_GET['message']; $newtotal .= "/n"; $f = @file_get_contents("chatbox.txt"); $newtotal .= $f; $f = fopen("chatbox.txt", "w"); fwrite($f, $newtotal); fclose($f); } print "<iframe src='chats.php' width='100%' height='60%'> </iframe> <div id='do_a'></div> <form name='newmessage' action='chat.php' method='post' onsubmit='checkbad()'> Message: <input type='text' name='message' value='' size='30' maxlength='30'> <input type='submit' id='mess' value='Add your message'> </form>"; ?>   Call this chat2.php   <?php if(!$_GET['message'] or !$_GET['name']) { die("Get off n00b"); } $mess = array("gay","shit","poo","game","sign up", "porn", "nob"); $found = 0; //amount of dirty words found foreach($mess as $val) { if(eregi($val, $_GET['message'])) { $found ++; } //filterd done $_GET['message'] = str_replace($val, "?$!^!%", $_GET['message']); } $newtotal = $_GET['message']; $newtotal .= "/n"; $f = @file_get_contents("chatbox.txt"); $newtotal .= $f; $f = fileopen("chatbox.txt", "w"); fwrite($f, $newtotal); fclose($f); ?>   And Call This chats.php   <?php print "<meta http-equiv='refresh' content='10; url=chats.php'>"; if(file_exists("chatbox.txt")) { $f=file_get_contents("chatbox.txt"); $f=strip_tags($f); $f=str_replace("/n", " ", $f); } else { $f="Chat isn't configured right. Remember to CHMOD the file chatbox.txt to 777. Thanks."; } print $f; ?>   and then make txt doc called chatbox.txt and put any welcome message init you want
  6. Re: Buy House with level ty sniko will try now mate
  7. Re: Buy House with level i mean that you cant buy a certain house to you are the required level the level is what admin will set in php
  8. Re: [mccodes v2] Movie Theatre(basic) it lets you take your will over 100 any one have any ideas will this please
  9. Re: [ANY]Source Viewer remove this topic very unsafe hackers can use this to there advantages aswell silly thing to post PLEASE REMOVE THIS
  10. www.deadly-world.com is back up and running for any of you that can rember it been down for some time but the game is back up running was one of my favs not great design but once a fav always a fav lol
  11. Re: [MCCODES V2] Mobile text messaging echo "<center>"; //Enter the item id of the Mobile phone for the mod to work! $ps_item_number = "324"; //Lets check if the player actually owns a mobile phone. $db->query("select * from inventory where inv_itemid = '".$ps_item_number."' AND inv_userid = ".$ir['userid'].""); //No mobile phone? Thats cool, Lets tell them that! if(!mysql_fetch_array($q)) { echo "you dont a mobile phone"; $h->endpage(); exit   would that do it then add this to your inv.php if($i['itmname'] == 'mobile phone') { echo " [<a href = 'textmessage.php'>Use</a>]";   any imput to that would be great ty im still learning will it be along them lines }
  12. Re: [MCCODES V2] Mobile text messaging how would we make so say you have to buy the item a mobile phone before useres could use the mobile service thanks
  13. Re: [mccode v2] Yet Another Attack this dont work when a users attacks some one say there off line and the person who attacked loses it puts the person they attack who is off line in - negative health by thousands any ideas thanks
  14. Re: Health goes into - neagative not sure were the prob is yet im monitering it soon as i spot ill try and fix if not ill post thanks guys
  15. hi there any help please would be great health keeps going into - negative im using vr2 doing on my account admin thanks alot
  16. sorry to post ere ive in help but no answer how do i set so that you have to be a certain level to buy a house ive imported sql with i think is right but what would i put in estate page ive been serached and one topic but it dont work any help thanks alot again sorry to post here
  17. Re: [mccode] Buy A House With Level Requirements ! this wud be a great mod but the sql and the estate.php is all wrong anyone got this to work yet please?
  18. Re: [mccode] Buy A House With Level Requirements ! any one got this to work coz i cant get it to do anything at all
  19. weewooz

    items vr2

    can some one please explain to me how you add items with vr2 to whats all the effects and stuff about please if some one cud show me example or some thing say by using ithem knife the lowest weapon what would i put thank you
  20. Re: [mccode 2] another explore makes akk main menu text go lol and some of standed links in explore go black great tho thanks
  21. Re: vr2 help needed please that it
  22. so one keeps chaning my config.php in vr2 so there for the game keeps going any ideas on how i stop this thanks alot
  23. Re: [requests] Bot online 24hours mite be nice to explain were to put it lol say if he dont know
  24. Re: [requests] Bot online 24hours you mean you want to create a user say from ya admin pan and make it show the user which i assume will be you signing up again so it shows you have more user online than there is lol why not just make your better by coding or learn to code as all you want to show is its not bots just users you make up so you can make out there real players online bro come on learn to code and not fair on other players also will spiral ya game out of control man i would think
  25. Re: [mccode v1] Punch Mod man wish you wud all shut up moanig its free aint it and well writtin anyways would you look a gifted horse in mouth problem with sounds of some of you people are kind to post mods for free even if it just re written and people still moan some will use
×
×
  • Create New...