
HITMAN 17
Members-
Posts
1,145 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by HITMAN 17
-
Re: Free News Script lol ok i will
-
Re: Free News Script do u me w/e.php or just w/e
-
Re: free top gangs nope it does this "; $q=$db->query("SELECT * FROM gangs ORDER BY gangRESPECT DESC LIMIT 5", $c); $p=0; while($r=$db->fetch_row($q)) { $p++; if($r['gangID'] == $ir['gang']) { $t="";$et=""; } else { $t="";$et=""; } print ""; } print " Gang $t{$r['gangNAME']} thts what it says
-
Re: (New) Feature Vip News [V1] works on my v2 game check it out www.tbrpg.890m.com
-
Re: free top gangs lol problem is that this mod dosnt work as i have a v2 game can someone post a better v2 version
-
Re: [Free] Annoying Mod im thinking about adding it as my players will love it but i might hold a poll
-
Re: [FREE] Server Time [v1.1 v2 v1] ye ino but the shorter one is better as it dosnt take up as much space lol
-
Re: battlearena lol ino theres mostly bugs in everything
-
Re: Free News Script another one of oxis great free mods
-
Re: New items page [V2] true lol
-
Re: New items page [V2] lmao im not but when i tryed it it did not say a use button
-
Re: FREE ADVANCED USERSONLINE MOD wat so its because i forgot to add '
-
Re: battlearena wtf you talking about so then i can see it working
-
Re: Casino with slots [V2] nice mate when my game is back up i will try it
-
Re: Money,crystals cap wat do i need to edit for bank like change and all that
-
Re: New items page [V2] theres no point having it if no use button
-
[mccode] Reset your users without deleating them
HITMAN 17 replied to Redeye's topic in Free Modifications
Re: [v1 & v2]Reset your users without deleating them this may come in handy -
Re: [V2]Crystal Smuggling Mod[V2] the sql was wrong
-
Re: battlearena untill someone says it works im not trying it
-
Re: [mccode] Register 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>Text Based Gaming</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=Text Based.gif]</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 username 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 "Username 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=$db->query("SELECT * FROM users WHERE lastip='$IP' AND userid={$_POST['ref']}"); if($db->num_rows($q)) { die("No creating referral multies. Bad dog. >[url='register.php']Back[/url]"); } if($_POST['ref']) { $q=$db->query("SELECT * FROM users WHERE userid={$_POST['ref']}"); $r=$db->fetch_row($q); } $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 crystals!",$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'> Text Based Gaming 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> <tr> <td><div align='center'>Promo Code: </div></td> <td><div align='center'> <input type=text name=promo /> </div></td> </tr> <td><div align='center'>Gender</div></td> <td colspan='2'><select name='gender' type='dropdown'> <option value='Male'>Male <option value='Female'>Female</select></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='#']Lost Password?[/url]</td> </tr> <tr> <td height='30'>[url='#']Screenshots[/url]</td> </tr> <tr> <td height='30'>[url='#']Terms Of Service[/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 Da Man And Hally! | </center>"; } print "</body></html>"; ?> by the way i added gender as ikept coming up blank for ppl
-
Re: FREE ADVANCED USERSONLINE MOD well for some reason it dont work <?php // Made by Daniel Robert // Free mod advanced useronline for v1 // Please do not resell // Please leave this note // Other than that have a nice time // Don't do drugs. They aren't good for you. // Usersonline.php include "globals.php"; if($r['user_level'] == 2) { $user="<font color=blue>{$r['username']}</font>"; } else if($r['user_level'] == 3) { $user="<font color=yellow>{$r['username']}</font>"; } else if($r['user_level'] ==5) { $user="<font color=orange>{$r['username']}</font>"; } else { $user="{$r['username']}"; } $cn=0; echo "<table width='500' border='2' height='20' class='table' bordercolor='#666666'> <tr> <th height='6'><u>Order</u></th> <th><u>Name</u></th> <th><u>ID</u></th> <th><u>Level</u></th> <th><u>Gender<u/></th> <th><u>Last Action<u/></th> <th><u>Money</u></th> <th><u>Location</u></th> <th><u>Gang</u></th> <th><u>Attack</u></th> </tr>"; $q=mysql_query("SELECT * FROM users WHERE laston>unix_timestamp()-15*60 ORDER BY laston DESC"); while($r=mysql_fetch_array($q)) { $la=time()-$r['laston']; $unit="secs"; if($la >= 60) { $la=(int) ($la/60); $unit="mins"; } if($la >= 60) { $la=(int) ($la/60); $unit="hours"; if($la >= 24) { $la=(int) ($la/24); $unit="days"; } } if($r['laston'] > 0) { $la=time()-$r['laston']; $unit="seconds"; if($la >= 60) { $la=(int) ($la/60); $unit="minutes"; } if($la >= 60) { $la=(int) ($la/60); $unit="hours"; if($la >= 24) { $la=(int) ($la/24); $unit="days"; } } $str="$la $unit ago"; } else { $str="--"; } if($r['last_login'] > 0) { $ll=time()-$r['last_login']; $unit2="seconds"; if($ll >= 60) { $ll=(int) ($ll/60); $unit2="minutes"; } if($ll >= 60) { $ll=(int) ($ll/60); $unit2="hours"; if($ll >= 24) { $ll=(int) ($ll/24); $unit2="days"; } } $str2="$ll $unit2 ago"; } else { $str2="--"; } $cn++; $gq=mysql_query("SELECT g.*,oc.* FROM gangs g LEFT JOIN orgcrimes oc ON g.gangCRIME=oc.ocID WHERE g.gangID={$r['gang']}",$c);$gangdata=mysql_fetch_array($gq); $cz = mysql_query("SELECT * FROM `cities` WHERE `cityid` = '".$r["location"]."'"); $ck = mysql_fetch_array($cz); echo "<tr> <td>$cn.</td> <td>[url='viewuser.php?u={$r[']{$r['username']}[/url]</td> <td>{$r['userid']}</td> <td>{$r['level']}</td> <td>{$r['gender']}</td> <td>$str</td> <td>$".money_formatter($r['money'], "")."</td> <td>{$ck['cityname']}</td> <td>[url='gangs.php?action=view&ID={$r[']<font color=red>{$gangdata['gangNAME']}[/url]</font></td> <td><a href='attack.php?ID={$r['userid']}'>Attack "; if($r['gender'] == 'Female') { echo "Her"; } else { echo "Him"; } echo "</a></td> </tr>"; } echo "</table>"; $h->endpage(); ?>
-
Re: FREE ADVANCED USERSONLINE MOD LOL should be <font color='colour'> you forgot then: ' ye i forgot mate know wneed to have a go
-
Re: Better than Quantifying ok cheers
-
can anyone make a free mass email not mailer just emailer as a free mod
-
Re: New items page [V2] mate use does not work now