Jump to content
MakeWebGames

brandon_1243

Members
  • Posts

    28
  • Joined

  • Last visited

Everything posted by brandon_1243

  1. Passport Mod Working In Multi Version Thanks To Killah Ok here is a mod i made my self for v2 and killah kindly made it multi version for me what this mod does is to be able to travel on the monorail you need a passport, they cost 100k to have a passport and the pass port expires every 8 days so you will need to re-new it before traveling again ok so here it is RUN THIS QUERY: alter table users add passport int(11) not null;   Add this to days old cron mysql_query("UPDATE users SET passport=passport+1 WHERE passport>0"); mysql_query("UPDATE users SET passport=0 WHERE passport=9");   Add this to monorail.php if($ir['passport'] == 0) { echo 'You\'ll need a passport to enter this place. [url="passport.php"]Buy a passport[/url]'; exit; }   Create File Named passport.php Add This Too It   <?php //Made by brandon_1243 //Killah made this multi version //No need to change anything :D $file_exist = "config2.php"; if(file_exists($file_exist)) { include("globals.php"); } else if(!file_exists($file_exist)) { 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(); } $cost = 100000; //Change if you like, currently set a $100,000 $costc = $cost-1; //DO NOT TOUCH! if($ir['money'] < $costc) { echo 'You do not have enough money to buy a passport.'; $h->endpage(); exit; } mysql_query("UPDATE users SET money=money-'{$cost}',passport=1 WHERE userid='{$ir['userid']}'") or die(mysql_error()); echo 'You just bought a passport for '.money_formatter($cost).'.'; $h->endpage(); ?>   Thanks Please Post What Ya Think About It
  2. Re: any idea's i got some new login and some other pages i have added on ce now please check them out
  3. Re: thanksgiving treat nice one seanybob i edited this mod i hope you dont mind but i did post alot in the thread originally created by seanybob hope you dont mind seany cheers
  4. Re: [V2] Reward the active. - Punish the inactive. very nice idea i think mate well done
  5. Re: userlist.php with a few mods to it V2 all these mods on ce are getting better and better thanks brad nice mod great one :)
  6. Re: Free Updated Newspaper thank you guys nice mod very much appreciated guys :)
  7. Re: Game Ranks thanks for posting anyway dude but i agree with you all
  8. Re: [Free] Log Suspicious Users very nice job done there Izomeriser another one of your great mods thanks for this well done
  9. Re: Hoes and Drugs cron yeah good one westy :) nice
  10. Re: Generate Password very nice mod lunny i hope we get our gun shot coming soon :) will be awesome thanks great mod
  11. Re: V2.0 streets. Nice Mod Thanks I Got It To Work Cheers :)
  12. Re: Gift.php [edited] ok guys sorry about it and thanks for correcting i am new to this and hope fully soon will be quite good in like 2 years or so i am going to try edit someones honor awards so i have one and i will post that free i will have different features in it thanks again guys Brandon_1243
  13. Re: new login.php thanks guy's and sorry tox but you can still add one lol and yeah but it was like one of my first liek type of script mod things lol but for me i guess its ok and once agian thanks guys
  14. i edited the player Noobs register.php and made it a login.php i know its simple but it was me i'm a newbie lol first of all upload this as login.php   <?php session_start(); 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']; } print <<<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> <title>{$set['game_name']}</title> <script language="JavaScript"> <!-- function getCookieVal (offset) { var endstr = document.cookie.indexOf (";", offset); if (endstr == -1) endstr = document.cookie.length; return unescape(document.cookie.substring(offset, endstr)); } function GetCookie (name) { var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if (document.cookie.substring(i, j) == arg) return getCookieVal (j); i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return null; } function SetCookie (name,value,expires,path,domain,secure) { document.cookie = name + "=" + escape (value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : ""); } function DeleteCookie (name,path,domain) { if (GetCookie(name)) { document.cookie = name + "=" + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT"; } } // --> </script> <script language="JavaScript"> var usr; var pw; var sv; function getme() { usr = document.login.username; pw = document.login.password; sv = document.login.save; if (GetCookie('player') != null) { usr.value = GetCookie('username') pw.value = GetCookie('password') if (GetCookie('save') == 'true') { sv[0].checked = true; } } } function saveme() { if (usr.value.length != 0 && pw.value.length != 0) { if (sv[0].checked) { expdate = new Date(); expdate.setTime(expdate.getTime()+(365 * 24 * 60 * 60 * 1000)); SetCookie('username', usr.value, expdate); SetCookie('password', pw.value, expdate); SetCookie('save', 'true', expdate); } if (sv[1].checked) { DeleteCookie('username'); DeleteCookie('password'); DeleteCookie('save'); } } else { alert('You must enter a username/password.'); return false; } } </script> <style type="text/css"> 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> EOF; $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>"); } 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'>Game nameLogin</th> </tr> <table width='530' border='1' bgcolor='#666666'> <td><div align='center'><form action=authenticate.php method=post name=login onsubmit=\"return saveme();\">Username: <input type=text name=username> </div></td> <td><div align='center'> </div></td> </tr> <tr> <td><div align='center'>Password: <input type=password name=password> </div></td> <td><div align='center'> </div></td> </tr> <tr> <td><div align='center'> Remember me? <input type=\"radio\" value=\"ON\" name=\"save\">Yes <input type=\"radio\" name=\"save\" value=\"OFF\" checked>No <input type=submit value=Submit></form> </div></td> <td><div align='center'> </div></td> </tr> <tr> </tr> </table> </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='forgot_password.php']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 <Your name here> ! | | Game Copyright ©{$year} {$set['game_owner']}. | </center>"; print "</body></html>"; ?>   And then your done thanks alot Brandon_1243
  15. First edited mod so don't know if it works but please correct me if its wrong EDITED SEANYBOBS MOD HOPE YOU DON'T MIND SEANYBOB.   -- create a new file name it Gift.php -- add the code below to it   <?php /*----------------------------------------------------- -- edited seanybobs gift.php -- Gift.php Edited -----------------------------------------------------*/ include("globals.php"); if ($ir['gift'] > 0) { die(Sorry, You Can Only Do This Once A Day"); } $auto = (int)rand(1, 6) if (auto = 1) { $db->query("UPDATE users SET money"money+750 WHERE userid=$userid", $c); $db->query("UPDATE users set gift=gift+1 WHERE userid={$ir['userid']}", $c); print "Today You Was Given $750.00"; } if ($auto = 2) { $db->query("UPDATE users SET money"money+1500 WHERE userid=$userid", $c); $db->query("UPDATE users set gift=gift+1 WHERE userid={$ir['userid']}", $c); print "Today You Have Been Given $1500.00"; } if ($auto = 3) { $db->query(UPDATE users SET money"money+2000 WHERE userid=$userid", $c); $db->query("UPDATE users set gift=gift+1 WHERE userid={$ir['userid']}", $c); $db->query("UPDATE users SET crystals=crystals+14 WHERE userid=$userid", $c) $db->query("UPDATE users set thanks=thanks+1 WHERE userid={$ir['userid']}", $c); print "Today You Got 14 Crystalls And $2000.00"; } if ($auto = 4) { $db->query(UPDATE users SET money"money+2500 WHERE userid=$userid", $c); $db->query("UPDATE users set gift=gift+1 WHERE userid={$ir['userid']}", $c); $db->query("UPDATE users SET crystals=crystals+22 WHERE userid=$userid", $c) $db->query("UPDATE users set thanks=thanks+1 WHERE userid={$ir['userid']}", $c); print "Today You Got 22 Crystalls And $2500.00"; } if ($auto = 5) { $db->query("UPDATE users SET crystals=crystals+30 WHERE userid=$userid", $c) $db->query("UPDATE users set thanks=thanks+1 WHERE userid={$ir['userid']}", $c); print "Today You Were Given A Decent Amount Of Crystalls You Got 30"; } if ($auto = 6) { $db->query("UPDATE users SET crystals=crystals+37 WHERE userid=$userid", $c) $db->query("UPDATE users set thanks=thanks+1 WHERE userid={$ir['userid']}", $c); print "Today You Got 37 Crystalls"l; } ?>   -- Then open Mainmenu.php and add to it if($ir['gift'] == 0) { print "[[url="gift.php"]Click Here to get your free gift![/url]]"; }   -- Then Open Up Php My Admin and alter table USERS gift int 11 not null default 0   And i Think Thats All right Thanks And Hope You Don't Mind Me Editng It seanybob
  16. Re: MCcode V1.1 New Jobs[Free] hey looks a good mod ill test it out later nice on toxication :)
  17. Re: any idea's   Thanks toxication i will do that and i will pm you if i need any help ok thanks alot man :) and also thanks Danny
  18. Re: any idea's   Thanks will do and izomezier i know that but it says for begginers :P
  19. Hey I'm New To Coding And To Learning The php Language I'm just wondering does anybody have any ideas for a beginner like me to make mods i just want to start by making some mods and just wondering if any of you guys have any ideas ? Please help me Thank You
  20. Re: [mccode] Advanced Warning System   can anyone add that into warnings v2 plz ill try it now ok ill just kleep trying places for it to go
  21. Re: [mccode] Advanced Warning System   Dont worry i converted it myself now and it wotrked :)
  22. Re: [mccode] Advanced Warning System   i think so i uploaded the warnings.php then added went to the php my admin then created new table added it in then changed veiw user and didnt work
  23. Re: [mccode] Advanced Warning System   when i clicked manage to give a warning it says this Fatal error: Call to undefined function mysql_num_arrays() in /home/bransim/public_html/warnings.php on line 27 that was using yours hitman do you know why ??
  24. Re: (New) Feature Vip News [V1]  
  25. Re: [Free] [v1&v2] High Low   real_escape_string should be mysql_real_escape_string.   hmm so this mod has confuzed me lol will you add me on msn ?? [email protected] if not dont worry but i dont understand why it says that it says something like max you can be is &5%op some think like that lol i aint too sure sorry to bother you
×
×
  • Create New...