Jump to content
MakeWebGames

SaMz

Members
  • Posts

    493
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by SaMz

  1. Re: [Free] TownView This will give people a chance to save their fiver, its great when people post free mods, i see no problem with people trying to code other peoples mod ideas and post for free.. they aint being greedy. BTW Nice One!
  2. Is there any way i can protect my game from hackers, some guy just came up in my game said he will hack my game blah blah but how do they do it cuz i see alot of games(cpanel) getting hacked is there any stop to this?
  3. Re: Free 2 - Icons works now thanks
  4. Re: Free 2 - Icons i added the querys and function on header.php but no image is showing? added all the images on the icons folder, whats did i not do?
  5. Re: omg wtf i dont get it This Topic Should Be Under Dbs/Mccode Section Under Support
  6. Re: Christmas Gift [V2] ( Abit Late :P )   No shit sherlock. Well that would be the sensible thing to do... Lmao
  7. Re: Swim Mod For V1&V2 [Free] The query i used for the swimming mod is the simmplest one u can use.
  8. Re: Christmas Gift [V2] ( Abit Late :P ) Will be best if you use it only for christmas otherwise players will think "why the **** is this feature on the game now" LMAO
  9. V2: <?php /*----------------------------------------------------- //Free Swim Mode Made By SaMz //Not To Be Sold //For CE Forum Users //swim.php -----------------------------------------------------*/ session_start(); require "globals.php"; if(!$_GET['spend']) { print "<h2>Your Game Name Swimming Pool</h2> here you can swim to gain strength and agility Its available for the Men and lady's <table border='1' width='90%' bordercolor='#FFFFFF'><th>Meters to swim</th><th>Gain</th><th>loss</th><th>Price</th><th><center>Do</th></tr><tr> <td><center>100 meters</td><td><center>100 strength & 50 speed</td><td><center>10% energy</td><td><center>$1,000,000</td><td><center>[url='swim.php?spend=100']Do 100[/url]</td></tr><tr> <td><center>200 meters</td><td><center>250 strength & 100 speed</td><td><center>50% energy</td><td><center>$2,500,000</td><td><center>[url='swim.php?spend=200']Do 200[/url]</td></tr><tr> <td><center>500 meters</td><td><center>500 strength & 250 speed</td><td><center>100% energy</td><td><center>$4,500,000</td><td><center>[url='swim.php?spend=500']Do 500[/url]</td></tr></table>"; } else { if($_GET['spend'] == '100') { if($ir['money'] <1000000) { print "You either dont have the money or energy or speed!"; } else { $db->query("UPDATE userstats SET strength=strength+100,agility=agility+50 WHERE userid=$userid",$c); $db->query("UPDATE users SET money=money-1000000 WHERE userid=$userid",$c); print "<center>You Swim 100 Meters And Feel Stronger You Get +100 Strength And +50 Speed [url='index.php']>Home[/url]</center>"; } } else { if($_GET['spend'] == '200') { if($ir['money'] <2500000) { print "You either dont have the money or energy or speed!"; } else { $db->query("UPDATE userstats SET strength=strength+250,agility=agility+100 WHERE userid=$userid",$c); $db->query("UPDATE users SET money=money-2500000 WHERE userid=$userid",$c); print "<center>You Swim 200 Meters And Feel Stronger You Get +250 Strength And +100 Speed <a /> href='index.php'>>Home</a></center>"; } } else { if($_GET['spend'] == '500') { if($ir['money'] <4500000) { print "You either dont have the money needed!"; } else { $db->query("UPDATE userstats SET strength=strength+500,agility=agility+250 WHERE userid=$userid",$c); $db->query("UPDATE users SET money=money-4500000 WHERE userid=$userid",$c); print "<center>You Swim 500 Meters And Feel Stronger You Get +500 Strength And +250 Speed <a /> href='index.php'>>Home</a></center>"; } } } $h->endpage(); ?>   Simple mod really i will update this and post the advanced version soon. took me only around 20 minutes to make. With this mod you can pay to swim which will gain you strength and agility. Every Little Mod Helps. Enjoy
  10. Re: Ruby Bank [Free] This aint crystal bank is it i was going through request modifications and someone wanted the ruby bank, i had nothing to do as im on study leave so i just made this and posted it here. Every little helps :wink:
  11. Re: Ruby Bank [Free] No I Used Notepad By Editing Bank.php Lol
  12. V2: <?php include "globals.php"; print "<h3>Bank</h3>"; if($ir['rubybank']>-1) { switch($_GET['action']) { case "deposit": deposit(); break; case "withdraw": withdraw(); break; default: index(); break; } } else { if(isset($_GET['buy'])) { if($ir['money']>25000) { print "Congratulations, you bought a Ruby bank account for \$25,000! [url='rbank.php']Start using my account[/url]"; $db->query("UPDATE users SET money=money-25000,rubybank=0 WHERE userid=$userid"); } else { print "You do not have enough Money to open an account. [url='explore.php']Back to town...[/url]"; } } else { print "Open a Ruby bank account today, just \$25,000! [url='rbank.php?buy']> Yes, sign me up![/url]"; } } function index() { global $db, $ir,$c,$userid,$h; print "\n[b]You currently have {$ir['rubybank']} Ruby in the bank.[/b] <table width='75%' cellspacing=1 class='table'> <tr> <td width='50%'>[b]Deposit ruby[/b] <form action='rbank.php?action=deposit' method='post'> Amount: <input type='text' name='deposit' value='{$ir['ruby']}' /> <input type='submit' value='Deposit' /></form></td> <td> [b]Withdraw ruby[/b] There is no fee on withdrawals.<form action='rbank.php?action=withdraw' method='post'> Amount: <input type='text' name='withdraw' value='{$ir['rubybank']}' /> <input type='submit' value='Withdraw' /></form></td> </tr> </table>"; } function deposit() { global $db,$ir,$c,$userid,$h; $_POST['deposit']=abs((int) $_POST['deposit']); if($_POST['deposit'] > $ir['ruby']) { print "You do not have enough ruby to deposit this amount."; } else { $gain=$_POST['deposit']-$fee; $ir['ruby']+=$gain; $db->query("UPDATE users SET rubybank=rubybank+$gain, ruby=ruby-{$_POST['deposit']} where userid=$userid"); print "You hand over {$_POST['deposit']} to be deposited, $gain is added to your account. [b]You now have {$ir['rubybank']} in the bank.[/b] [url='rbank.php']> Back[/url]"; } } function withdraw() { global $db,$ir,$c,$userid,$h; $_POST['withdraw']=abs((int) $_POST['withdraw']); if($_POST['withdraw'] > $ir['rubybank']) { print "You do not have enough banked ruby to withdraw this amount."; } else { $gain=$_POST['withdraw']; $ir['rubybank']-=$gain; $db->query("UPDATE users SET rubybank=rubybank-$gain, ruby=ruby+$gain where userid=$userid"); print "You ask to withdraw $gain, the banking lady grudgingly hands it over. [b]You now have {$ir['rubybank']} in the bank.[/b] [url='rbank.php']> Back[/url]"; } } $h->endpage(); ?>   Add To Database Under Users: rubybank int(11) NOT NULL default '-1',   Add Link To Explore: [url='rbank.php']Ruby Bank[/url]   Spent 5 Minutes Editing Bank.Php So Its Ruby Bank. Tested And So Far So Good
  13. SaMz

    One Big Code!

    Re: One Big Code! ?> Confused :|
  14. Re: How Do I Lower Stat Gained In Gym Thank You
  15. Re: Free 2 - Slots A+ Modification! Great Work Looks Like You Got A Fan :lol:
  16. Re: Simple SQL Injection protection I Cant See Any But Ill Take Naynas Advice as Shes Better Den Us!, And Always Right :-)
  17. any one know how i can change the stat gained in gym because the standard stat gained is too much....
  18. Re: Mccodes V2 Normal Bank.php NO FEES! someone worser then a Noob :lol:
  19. Re: Mccodes V2 Normal Bank.php NO FEES! As it says on this topic an ultra Noob Can do this!
  20. Re: [V2] Login Page Advanced No Comment :-)
  21. Re: Mccodes V2 Normal Bank.php NO FEES! simple codes like this should go to the "post free mod" section under game modifications
  22. Re: [V2] Login Page Advanced the banners gone and on ie the login was more to the right and needed to scroll... only for noobs
  23. Re: Donator Day Send [V2] why do we need another send donator days to this forum hmmm
  24. Re: [V2] Login Page Advanced Edited Version   <?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> body { background-color: #000000; } .main { background-image: url("login.png"); color: white; font-family: Tahoma; } .button { background-image: url("default.png"); width: 100; height: 30; border: 0; color: red; } .text { color: red; font-family: Tahoma; } .nav a:visited,a:active,a:link { color: white;text-decoration: none; } .nav a:hover { color: white;text-decoration: underline; } </style> [img=/title.jpg] <table width='800'><tr><td> <div id="main1" style="position:absolute; width:800px; height:600px; z-index:0; visibility: visible;"> <center><table width='800' height='600' class='main'><tr><td class='main'> <div id="login" style="position:absolute; left:28px; right:600px; top:182px; bottom:283px; width:172px; height:135px; z-index:0; visibility: visible;"> <center><form action='authenticate.php' method='POST'> Username: <input type='text' name='username'> Password: <input type='password' name='password'> <input type='submit' value='Login' class='button'></form> </div> <div id="main2" style="position:absolute; left:249px; right:23px; top:138px; bottom:201px; width:528px; height:261px; z-index:0; visibility: visible;" class="text"> <center>{$set['game_description']} </div> <div id="nav" style="position:absolute; left:29px; right:602px; top:371px; bottom:35px; width:169px; height:194px; z-index:0; visibility: visible;" class="nav"> <table width='100%'><tr><td><center> [url="login.php"]Login[/url] [url="register.php"]Register[/url] [url="screen.php"]Screen Shots[/url] [url="rules.php"]Rules[/url] </div> </td></tr></table> </div> </td></tr></table> EOF; ?>   still editing the template will post later...
  25. Re: [mccode] Personal Detals for v2.0 what is the correct query for the register page i get an error.... im a starter with coding
×
×
  • Create New...