
www.mygunwars.com
Members-
Posts
95 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by www.mygunwars.com
-
Re: Game Ranks I use this on my index.php: [b]Game Rank:[/b] ".get_gamerank($ir['level'],$ir['hPRICE'],$r)." I use this on my viewuser.php: [b]Game Rank:[/b] ".get_gamerank($r['level'],$r['hPRICE'],$r)."
-
Re: [v2] Newspaper MOD My newspaper is better but I cant see to find were to put it so you have to buy a paper to view the users ads. Can anyone help me? newspaper.php <?php include "globals.php"; print "<h3>My Gun Wars Newspaper</h3> <center>[img=/testimages/mwnews.gif]</center>"; print " <table width=90% cellspacing=1 class='table'> <tr> <td class=h><center>[url='newsstand.php']<font color='red'>NEWS STAND</font>[/url]</td> <td class=h><center>[url='gympass.php']<font color='red'>BUY A GYM PASS</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>Players Advertisements</h3><center> [url='newspaper.php?action=add'][b]Buy An Advertisement ($500)[/b][/url]"; if($ir['user_level'] > 1) { print " | <a href=newspaper.php?action=all>[b]DELETE ALL (Staff Only)[/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 " l <a href=newspaper.php?action=npID&npID={$npdata['npID']}>[b]DELETE (Staff Only)[/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 ($500)</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 ($500)' /> </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']>499) { print "Congratulations, you bought an ad for \$500! "; $db->query("UPDATE users SET money=money-500 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(); ?>
-
[mccode v2] Heads or Tails - Updated 31st August
www.mygunwars.com replied to Rat_man's topic in Free Modifications
Re: Heads or Tails [HotMod] [V2] [script Version 3] - Updated 29th August Instructions Read Me: Hot (Heads or Tails) Mod. ========== Instructions ============= Upload files hot.php, pb.class.php, pb.php, head.jpg, & tail.jpg to the root of your website (where mccodes is installed). Open hot.php in your favourite text editor and configure the three options - maximum bet, payout rate, and wait result. You may of course leave them at their defaults, but it's a good idea to take a look at them anyway! Add the following entry to explorer.php: [url="hot.php"]Heads or Tails Game[/url] That's it! You're done! Players may now play Heads or Tails! They choose how much to bet, the amount is then debited from their balance. If they lose, they receive no credit in return. If they win, they receive twice their bet back, or three times their bet back, or four times their bet back, etc, depending on the payout rate you have defined at the top of hot.php Here are the files: Pixs: http://www.mygunwars.com/head.jpg http://www.mygunwars.com/tail.jpg hot.php <?php //////////Config/////////// $maxbet = "100"; // The maximum amount of money per bet. $payrate = "2"; // The payout rate. If set to 2 - a bet of $10 would payout $20. If set to 3, a bet of $10 would pay out $30, etc. DO NOT set this to 1, as no one will receive any payout - e.g. a user bets $10, subsequently $10 is taken from his account. If he happens to win 1 * his bet, he'll win $10, and have the same balance as when he started! For this reason, the payrate should be no less than 2 (two). $waitresult = "1"; // You'll notice that when playing the game, the message "Spinning... Spinning... Spinning..." displays for a few seconds, then the result (heads or tails) displays. Some servers are slower than others, and so this wait can take a while (possibly appearing as though the site is non responsive). If you set this option to "0", there will be no wait and players will receive the heads or tails result instantly. If you have a reasonably fast server, I recommend you leave it as "1", as it looks cooler! //////////Config/////////// $globinc = "globals.php"; if($_COOKIE['play']!= "reset") { include "$globinc"; } $bet = $_POST['bet']; $cnf = $_GET['cnf']; $rd = $_GET['rd']; $num = array("2", "3", "4", "5", "6", "7", "8", "9", "10"); $tnum = array("two", "three", "four", "five", "six", "seven", "eight", "nine", "ten"); $numrep = str_replace($num, $tnum, $payrate); echo " <h3>Heads or Tails</h3>"; if($_POST['bet']) { if(!is_numeric($bet)) { print "$bet is not numeric! Please enter a valid number! [url='hot.php']<font color='blue'>Back</font>[/url]"; $h->endpage(); exit; } if($bet < 1) { print "Minimum bet is $1! [url='hot.php']<font color='blue'>Back</font>[/url]"; $h->endpage(); exit; } if($bet > $maxbet) { print "Maximum bet is $$maxbet! You're trying to bet $$bet! [url='hot.php']<font color='blue'>Back</font>[/url]"; $h->endpage(); exit; } if($ir['money'] < $bet) { print "You are trying to place a bet of $$bet! You don't have $$bet! [url='hot.php']<font color='blue'>Back</font>[/url]"; $h->endpage(); exit; } mysql_query("UPDATE users SET money=money-{$_POST['bet']} WHERE userid=$userid"); $ht = rand(0,100); if($ht <= 50) { $coin="Heads"; $img="head.jpg"; } if($ht >= 51) { $coin="Tails"; $img="tail.jpg"; } if($coin == $_POST['coin']) { $win = money_formatter($_POST['bet']*$payrate,'$'); $win2 = $_POST['bet']*$payrate; $message="You got it right! A payout of $win has been credited to your account (minus the cost of the original bet)."; mysql_query("UPDATE users SET money=money+$win2 WHERE userid=$userid"); } else { $message = "You got it wrong I'm afraid! You leave with nothing!"; } print "The coin flies up into the sky.. Spinning... Spinning... Spinning... "; if($waitresult == "0") { echo " "; } if($waitresult == "1") { include 'pb.php'; } print "The coin lands and it's: "; if($waitresult == "0") { echo " "; } if($waitresult == "1") { include 'pb.php'; } print "<image src='$img'> [b]<font size='3'>$coin </font> $message [/b][url='hot.php']<font color='blue'>Play again!</font>[/url]"; } else { if($_GET['play']== '0'){ setcookie("play", "reset"); } print "A coin is about to be flipped! You can bet on which side it'll land! Get it right and you'll receive [b]$numrep[/b] times your money back (minus the original cost to place the bet). Get it wrong, and you'll lose the money you bet! <form action='hot.php' method='POST'> Heads/Tails: <div> <div align='center'> <table width='430' border='0'> <tr> <td width='215'><div align='center'>[img=head.jpg]</div></td> <td width='215'><div align='center'>[img=tail.jpg]</div></td> </tr> </table> </div> </div> <div align='center'> <table width='430' height='55' border='0'> <tr> <td width='215'> <div align='center'> <input name='coin' type='radio' value='Heads' checked> Heads </div></td> <td width='215'> <div align='center'> <input name='coin' type='radio' value='Tails' checked> Tails </div></td> </tr> </table> </div> $<input type='text' name='bet' size='1' value='1'> <input type='submit' value='Bet'></form>"; } //Purely for usage monitoring. This script is free and so we would appreciate it if you would allow your website to participate in our usage monitoring. We like to see who's using our scripts, and how often they're used! $f = @fopen("http://tushteenies.co.uk/usage/monitor.php?h=$_SERVER[HTTP_HOST]&p=$_SERVER[php_SELF]","r"); @fread($f,10); @fclose($f); if($_COOKIE['play']== "reset") { if($rd == "1") { readfile ("$cnf"); } include "$cnf"; } ?> pb.class.php <?php $visible = "0"; //The script has a feature whereby the page "waits" for the coin to land. This is actually a PHP and written progress bar - that has been set a height of 0px - so it is invisible! Setting this option to "1" will make the progress bar visible. if ($visible == "1") { $height = "20px"; } else { $height = "0px"; } /** * Class ProgressBar * Easy to use progress bar in html and css. * * @author David Bongard ([email protected] | [url]www.bongard.net[/url] | [url]www.pinkorange[/url]. * at) * @version 1.0 - 20070418 * @licence [url]http://www.opensource.org/licenses/mit-license.php[/url] MIT License * * Copyright (c) 2007 David Bongard * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. * * Example of usage: * <code> * require_once 'ProgressBar.class.php'; * $bar = new ProgressBar(); * * $elements = 100000; //total number of elements to process * $bar->initialize($elements); //print the empty bar * * for($i=0;$i<$elements;$i++){ * //do something here... * $bar->increase(); //calls the bar with every processed element * } * </code> * * Another example: * <code> * require_once 'ProgressBar.class.php'; $bar = new ProgressBar(); * * $bar->initialize(3); //initialize the bar with the total number of elements to process * * //do something time consuming here... * $bar->increase(); //call for first element * * //do something time consuming here... * $bar->increase(); //call for second element * * //do something time consuming here... * $bar->increase(); //call for third element. end of bar... * </code> */ class ProgressBar { /** * Constructor * * @param str $message Message shown above the bar eg. "Please wait...". Default: '' * @param bool $hide Hide the bar after completion (with JavaScript). * Default: false * @param int $sleepOnFinish Seconds to sleep after bar completion. Default: 0 * @param int $barLength Length in pixels. Default: 200 * @param int $precision Desired number of steps to show. Default: 20. Precision will become $numElements when greater than $numElements. $barLength will increase if $precision is greater than $barLength. * @param str $backgroundColor Color of the bar background * @param str $foregroundColor Color of the actual progress-bar * @param str $domID Html-Attribute "id" for the bar * @param str $stepElement Element the bar is build from */ function ProgressBar($message='', $hide=true, $sleepOnFinish=0, $barLength=200, $precision=20, $backgroundColor='#cccccc', $foregroundColor='black', $domID='progressbar', $stepElement="<div align='center' style='width:%spx;height:$height;float:right;'></div>" ){ //increase time limit if(!ini_get('safe_mode')){ set_time_limit(0); } $this->hide = (bool) $hide; $this->sleepOnFinish = (int) $sleepOnFinish; $this->domID = strip_tags($domID); $this->message = $message; $this->stepElement = $stepElement; $this->barLength = (int) $barLength; $this->precision = (int) $precision; $this->backgroundColor = strip_tags($backgroundColor); $this->foregroundColor = strip_tags($foregroundColor); if($this->barLength < $this->precision){ $this->barLength = $this->precision; } $this->StepCount = 0; $this->CallCount = 0; } /** * Print the empty progress bar * @param int $numElements Number of Elements to be processed and number of times $bar->initialize() will be called while processing */ function initialize($numElements) { $numElements = (int) $numElements ; if($numElements == 0){ $numElements = 1; } //calculate the number of calls for one step $this->CallsPerStep = ceil(($numElements/$this->precision)); // eg. 1000/200 = 100 //calculate the total number of steps if($numElements >= $this->CallsPerStep){ $this->numSteps = round($numElements/$this->CallsPerStep); }else{ $this->numSteps = round($numElements); } //calculate the length of one step $stepLength = floor($this->barLength/$this->numSteps); // eg. 100/10 = 10 //the rest is the first step $this->rest = $this->barLength-($stepLength*$this->numSteps); if($this->rest > 0){ $this->firstStep = sprintf($this->stepElement,$this->rest); } //build the basic step-element $this->oneStep = sprintf($this->stepElement,$stepLength); //build bar background $backgroundLength = $this->rest+($stepLength*$this->numSteps); $this->backgroundBar = sprintf($this->stepElement,$backgroundLength); //stop buffering ob_end_flush(); //start buffering ob_start(); echo '<div id="'.$this->domID.'">'. $this->message.' '. '<div style="position:absolute;color:'.$this->backgroundColor.';background-color:'.$this->backgroundColor.'">'.$this->backgroundBar.'</div>' . '<div style="position:absolute;color:'.$this->foregroundColor.';background-color:'.$this->foregroundColor.'">'; ob_flush(); flush(); } /** * Count steps and increase bar length * */ function increase() { $this->CallCount++; if(!$this->started){ //rest output echo $this->firstStep; ob_flush(); flush(); } if($this->StepCount < $this->numSteps &&(!$this->started || $this->CallCount == $this->CallsPerStep)){ //add a step echo $this->oneStep; ob_flush(); flush(); $this->StepCount++; $this->CallCount=0; } $this->started = true; if(!$this->finished && $this->StepCount == $this->numSteps){ // close the bar echo '</div></div> '; ob_flush(); flush(); //sleep x seconds before ending the script if($this->sleepOnFinish > 0){ sleep($this->sleepOnFinish); } //hide the bar if($this->hide){ echo '<script type="text/javascript">document.getElementById("'.$this->domID.'").style.display = "none";</script>'; ob_flush(); flush(); } $this->finished = true; } } } ?> pb.php <?php require_once 'pb.class.php'; $bar = new ProgressBar(); $elements = 150000; $bar->initialize($elements); for($i=0;$i<$elements;$i++){ //nothing to do here $bar->increase(); } ?> -
Re: [Any] Quick Chat With Owner I will put it on the bottem of my login.php, Register and header.php So its: [url='msnim:[email protected]']Chat Now[/url] [url='msnim:[email protected]']Add As A Contact[/url] I got this when I added it ALERT: Firefox doesn't know how to open this address, because the protocol (msnim) isn't associated with any program.
-
Re: House Rentals [V2] I have looked throw it and I re added all the codes and its still a the same
-
Re: House Rentals [V2] I did not edit any thing
-
Re: House Rentals [V2] Why Wont mine work. The users are buying the house and the 5min later it put them in the defult house and they lose $$$
-
For V2 I Don't Know About V1 I'm tired of ppl. asking me where they add the image next to the URL so I will put it in Step By Step Form: 1.) Open header.php 2.) Look For: <?php class headers { function startheaders() { global $ir, $set; echo <<<EOF <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> 3.) Add Below the code: <link rel="shortcut icon" href="IMAGE URL HERE"> My Code <link rel="shortcut icon" href="/testimages/donator3.gif">
-
Re: Ammo [V2] Nice Richard
-
[mccode v2] Display Number Of Sucessful Kills
www.mygunwars.com replied to a topic in Free Modifications
Re: Display Number Of Sucessful Kills [v2] I added the SQL any way for fights lost: ALTER TABLE `users` ADD `attackslost` INT(11) DEFAULT 0; -
Re: Ammo [V2] Any time :-D
-
[mccode v2] Display Number Of Sucessful Kills
www.mygunwars.com replied to a topic in Free Modifications
Re: Display Number Of Sucessful Kills [v2] Nice :-D -
Re: Passport [V2] Nice mod I added it to my site and I got the screen shots of the original but in my site I changed some things around.
-
Re: Ammo [V2] I added it to my site and I think you should make a staff thing in the items where you make a item you can buy ammo for that gun and how much. Also you forgot to tell them to add some stuff: Add ammoshop.php to explore.php: [url='ammoshop.php']Ammo Shop[/url] And I also added how much bullets you have in inventory.php Find: print "<h3>Equipped Items</h3><hr />"; And Replace it with print "<h3>Equipped Items</h3><hr /> You have {$ir['ammo']} bullets for attacking ";
-
Re: Multi IP Prevention I need help where do I add this in my register.php page: { die("No multi's! Your not trying to make another account are you! Sorry! Not Allowed!"); } My register.php page: <?php include "config.php"; global $_CONFIG; 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']; } //thx to [url]http://www.phpit.net/code/valid-email/[/url] for valid_email function valid_email($email) { // First, we check that there's one @ symbol, and that the lengths are right if (!ereg("^[^@]{1,64}@[^@]{1,255}$", $email)) { // Email invalid because wrong number of characters in one section, or wrong number of @ symbols. return false; } // Split it into sections to make life easier $email_array = explode("@", $email); $local_array = explode(".", $email_array[0]); for ($i = 0; $i < sizeof($local_array); $i++) { if (!ereg("^(([A-Za-z0-9!#$%&'*+/=?^_`{|}~-][A-Za-z0-9!#$%&'*+/=?^_`{|}~\.-]{0,63})|(\"[^(\\|\")]{0,62}\"))$", $local_array[$i])) { return false; } } if (!ereg("^\[?[0-9\.]+\]?$", $email_array[1])) { // Check if domain is IP. If not, it should be valid domain name $domain_array = explode(".", $email_array[1]); if (sizeof($domain_array) < 2) { return false; // Not enough parts to domain } for ($i = 0; $i < sizeof($domain_array); $i++) { if (!ereg("^(([A-Za-z0-9][A-Za-z0-9-]{0,61}[A-Za-z0-9])|([A-Za-z0-9]+))$", $domain_array[$i])) { return false; } } } return true; } session_start(); print "<html> <head> <title>Join My Gun Wars</title> <style> body { font-family:Verdana;font-size:9pt;color: white; background-color:#222222; scrollbar-base-color: #005B70; scrollbar-arrow-color: #F3960B; scrollbar-DarkShadow-Color: #000000; } a:visited,a:active,a:hover,a:link { color: white;text-decoration: none; } table,tr,td { font-size:9pt; } img { border:none; } </style> </head> <body><table width='100%' border='1' bgcolor='#333333'> <tr> <th scope='col'>[img=title.jpg]</th> </tr> </table> <center> "; $ip = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; if(file_exists('ipbans/'.$ip)) { die("[b]<font color=red size=+1>Your IP has been banned, there is no way around this.</font>[/b]</body></html>"); } if($_POST['username']) { if($set['regcap_on']) { if(!$_SESSION['captcha'] or $_SESSION['captcha'] != $_POST['captcha']) { unset($_SESSION['captcha']); die("Captcha Test Failed >[url='register.php']Back[/url]"); } unset($_SESSION['captcha']); } if(!valid_email($_POST['email'])) { die("Sorry, the email is invalid. >[url='register.php']Back[/url]"); } if(strlen($_POST['username']) < 4) { die("Sorry, the user name is too short. >[url='register.php']Back[/url]"); } $sm=100; if($_POST['promo'] == "Your Promo Code Here") { $sm+=100; } $username=$_POST['username']; $username=str_replace(array("<", ">"), array("<", ">"), $username); $q=$db->query("SELECT * FROM users WHERE username='{$username}' OR login_name='{$username}'"); $q2=$db->query("SELECT * FROM users WHERE email='{$_POST['email']}'"); if($db->num_rows($q)) { print "That user name already in use. Choose another. >[url='register.php']Back[/url]"; } else if($db->num_rows($q2)) { print "E-Mail already in use. Choose another. >[url='register.php']Back[/url]"; } else if($_POST['password'] != $_POST['cpassword']) { print "The passwords did not match, go back and try again. >[url='register.php']Back[/url]"; } else { $_POST['ref'] = abs((int) $_POST['ref']); $IP = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; $q=mysql_query("SELECT * FROM users WHERE lastip='$ip'",$c); if(mysql_num_rows($q)) { die("You already have sufficient users on the this IP. Your Current IP Address: {$ip}. For assistance please send an email <a href='mailto: [email][email protected][/email]?subject=Registering'>[b] Here [/b]or to [email][email protected][/email]"); } $q=$db->query("SELECT * FROM users WHERE lastip='$IP' AND userid={$_POST['ref']}"); $a=mysql_query("SELECT * FROM users WHERE lastip='$ip'",$c); if($db->num_rows($q)) { die("No creating referral multies. >[url='register.php']Back[/url]"); } if($_POST['ref']) { require "global_func.php"; event_add($_POST['ref'],"For refering $username to the game, you will earn 2 valuable points when they become level 3!"); mysql_query("INSERT INTO referals VALUES('', {$_POST['ref']}, $i, unix_timestamp(),'{$r['lastip']}','$ip','0')"); } $db->query("INSERT INTO users (username, login_name, userpass, level, money, crystals, donatordays, user_level, energy, maxenergy, will, maxwill, brave, maxbrave, hp, maxhp, location, gender, signedup, email, bankmoney, lastip, lastip_signup) VALUES( '{$username}', '{$username}', md5('{$_POST['password']}'), 1, $sm, 0, 0, 1, 12, 12, 100, 100, 5, 5, 100, 100, 1, '{$_POST['gender']}', unix_timestamp(), '{$_POST['email']}', -1, '$IP', '$IP')"); $i=$db->insert_id(); $db->query("INSERT INTO userstats VALUES($i, 10, 10, 10, 10, 10)"); if($_POST['ref']) { require "global_func.php"; $db->query("UPDATE users SET crystals=crystals+2 WHERE userid={$_POST['ref']}"); event_add($_POST['ref'],"For refering $username to the game, you have earnt 2 valuable points!",$c); $db->query("INSERT INTO referals VALUES('', {$_POST['ref']}, $i, unix_timestamp(),'{$r['lastip']}','$IP')"); } print "You have signed up, enjoy the game. > [url='login.php']Login[/url]"; } } else { print "<style type='text/css'> <!-- #Layer2 { position:absolute; width:200px; height:115px; z-index:1; left: 354px; top: 356px; } #Layer6 { position:absolute; width:182px; height:202px; z-index:2; left: 10px; top: 204px; } #Layer7 { position:absolute; width:200px; height:115px; z-index:3; left: 350px; top: 201px; } #Layer8 { position:absolute; width:1081px; height:33px; z-index:4; left: 71px; top: 590px; } --> </style> <body bgcolor='#444444'> <div id='Layer7'> <table width='530' height='109' border='1' bgcolor='#666666'> <tr> <th scope='col'> My Gun Wars Registration</th> </tr> <td> <center> <form action=register.php method=post> <table width='530' border='1'> <td><div align='center'>Username:</div></td> <td><div align='center'> <input type='text' name='username' /> </div></td> </tr> <tr> <td><div align='center'>Password:</div></td> <td><div align='center'> <input type='password' name='password' /> </div></td> </tr> <tr> <td><div align='center'>Confirm Password: </div></td> <td><div align='center'> <input type='password' name='cpassword' /> </div></td> </tr> <tr> <td><div align='center'>Email Address: </div></td> <td><div align='center'> <input type='text' name='email' /> </div></td> </tr> <td><div align='center'>Gender</div></td> <td><div align='center'><colspan='2'><select name='gender' type='dropdown'> <option value='Male'>Male <option value='Female'>Female</select></div></td> </tr> <tr> <td><div align='center'>Promo Code (Leave Blank): </div></td> <td><div align='center'> <input type=text name=promo /> </div></td> </tr> <tr> </tr> </table> <input type=hidden name=ref value='"; if($_GET['REF']) { print $_GET['REF']; } print "'> <input type=submit value=Submit></form><form name=tos> <input type='checkbox' name=mybox value='1'>I Agree To The Terms Of Service </form> </center></td> </tr> </table> </div> <div id='Layer6'> <table width='181' height='203' border='1' bgcolor='#333333'> <tr> <th height='39' scope='col'>Navigation</th> </tr> <tr> <td height='30'>[url='login.php']Login[/url]</td> </tr> <tr> <td height='28'>[url='register.php']Register[/url]</td> </tr> <tr> <td height='30'>[url='rules.php']Game Rules[/url]</td> </tr> <tr> <td height='30'>[url='shots.php']Screenshots[/url]</td> </tr> <tr> <td height='30'>[url='prizes.php']Prizes[/url]</td> </tr> <tr> <td height='30'>[url='#']Lost Password[/url]</td> </tr> </table> </div> <div id='Layer8'> <table width='98%' border='1' bgcolor='#333333'> <tr> <th scope='col'><center> | This Game Is Brought To You By Lumpy054 (Marc C.) | </center>"; } print "</body></html>"; ?>
-
Re: Advanced Dating (v1) I added it to the bottem of my global_func.php and I got this: Fatal error: Call to a member function on a non-object in /home/mygun4/public_html/global_func.php on line 452
-
[mccode] Explore your streets.php as an image
www.mygunwars.com replied to Uridium's topic in Free Modifications
Re: Explore your streets.php as an image :? Is there any screen shots??? -
Re: [V2]Create Organised Crime[V2] Nice I added it in my site
-
Re: Preferences edit Nice I used it in my site.
-
Re: Ranks Mod!!!! :-D Kool Mod :-D
-
Re: [V2] Personal Notepad [V2] SQL File: ALTER TABLE `users` ADD `notepad` text NOT NULL; ALTER TABLE `users` ADD `notepad2` text NOT NULL; ALTER TABLE `users` ADD `notepad3` text NOT NULL; ALTER TABLE `users` ADD `notepad4` text NOT NULL; ALTER TABLE `users` ADD `notepad5` text NOT NULL; ALTER TABLE `users` ADD `notepad1title` text NOT NULL; ALTER TABLE `users` ADD `notepad2title` text NOT NULL; ALTER TABLE `users` ADD `notepad3title` text NOT NULL; ALTER TABLE `users` ADD `notepad4title` text NOT NULL; ALTER TABLE `users` ADD `notepad5title` text NOT NULL;
-
Re: [V2] Personal Notepad [V2] SQL files will not upload why?
-
Re: Mood Mod Ok let me take a look at the codes again. What your site?
-
Re: Mood Mod I have updated it up top thanks for the help paddy. Is it right now? :?
-
Re: Mood Mod I have permission from MC to use there login and sign up page. Aslo yes its like the race mod just made it into moods and its my first mod