
Klikoka
Members-
Posts
382 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by Klikoka
-
Re: [v1] New criminal.php layout (FREE) Learn To F***ing Convert And Stop Asking On Every Post Its Annoying Don't be such an ass, You don't learn if you don't ask simple. I have no idea how to convert, the only way I'm gonna learn is by comparing codes. It is annoying when someone asks all the time but there's no need to be such an ass He Can Learn To By Being A Good Coder
-
Re: Hospital bug How Is This A Hospital Bug :?
-
Re: Crystal bank intrest But Not Many Ppl Have That
-
Re: Simple user rating system v2 +1 There Is None Of That Any More
-
Re: CODING Thats Were Ive Seen It It Was Danny's(Zeon's) Login In On His Game!!
-
Re: Game Ranks Its Not Even The Right Code You Forgot Like Half Of It
-
Re: Game Ranks This Is From MCCODE Website :x :x :x :x :x
-
Re: [V2]Crystal Smuggling Mod[V2] And Cron $db->query("UPDATE users SET csmuggling=csmuggling+1 WHERE csmuggling > 0");
-
Re: [V2]Crystal Smuggling Mod[V2] use Sql ALTER TABLE `users` ADD `csmuggling` int(11) NOT NULL default'1';
-
Hey, I am in the process of making a new feature for the staff panel V2. It is to basicly to add a SQL via the game its self and got to this part and I am a little bit stuck with it. $db->query(""); And was wondering what would be in between the "" any ideas? It is for a whole SQL :?
-
Re: CODING http://www.gangsta-boy.clearhostia.com/login.php Have I Seen That Login Somewhere Before :?
-
Re: [V2]Crystal Smuggling Mod[V2] Make sure your SQL Was:: ALTER TABLE `users` ADD `csmuggling` int(11) NOT NULL default'10';
-
Re: [V2]Crystal Smuggling Mod[V2] Parts Of The Code Were Wrong Heres A Fixed One:: <?php include "globals.php"; if ($ir['smuggling'] == 0) { print "<center>You Can Only Go Sailing Once A Day</center>"; exit; } if ($ir['jailtime'] > 0){ print "<center>The docks are closed to jail birds come back when thay release you</center>"; exit; } if ($ir['hospital'] > 0){ print "<center>You cant go sailing while in hospital</center>"; exit; } ////Coded By Klikoka For Free switch($_GET['action']) { case 'smug': smug_1(); break; case 'smugsub': smug_1_sub(); break; case 'smug2': smug_2(); break; case 'smugsub': smug_2_sub(); break; case 'smug3': smug_3(); break; case 'smug3sub': smug_3_sub(); break; case 'smug4': smug_4(); break; case 'smug4sub': smug_4_sub(); break; case 'smug5': smug_5(); break; case 'smug5sub': smug_5_sub(); break; case 'smug6': smug_6(); break; case 'smug6sub': smug_6_sub(); break; default: smug_index(); break; } function smug_index() { global $ir,$c,$userid; print "<center><h3>Crystal Smuggling</h3></center> <center>Welcome To The Crystal Smuggling Docks You Can Goto These Locations : </center> <center> [[url='csmuggling.php?action=smug']France[/url]] [[url='csmuggling.php?action=smug2']Holland[/url]] [[url='csmuggling.php?action=smug3']Germany[/url]] [[url='csmuggling.php?action=smug4']Portugal[/url]] [[url='csmuggling.php?action=smug5']Spain[/url]] [[url='csmuggling.php?action=smug6']Switzerland[/url]] </center>"; } function smug_1() { global $db,$ir,$c,$userid; $rand_gems = rand(1,100); echo "<center>You get over to France And Managed To Smuggle $rand_gems crystals back.</center> "; $db->query("UPDATE users SET crystals=crystals+$rand_gems WHERE userid=$userid"); $db->query("UPDATE users SET csmuggling=smuggling-1 WHERE userid=$userid"); print "<center>[[url='explore.php']Back[/url]]</center> "; } function smug_2() { global $db,$ir,$c,$userid; $rand_gems = rand(1,200); echo "<center>You get over to Holland And Managed To Smuggle $rand_gems crystals back.</center> "; $db->query("UPDATE users SET crystals=crystals+$rand_gems WHERE userid=$userid"); $db->query("UPDATE users SET csmuggling=smuggling-1 WHERE userid=$userid"); print "<center>[[url='explore.php']Back[/url]]</center> "; } function smug_3() { global $db,$ir,$c,$userid; $rand_gems = rand(1,300); echo "<center>You get over to Germany And Managed To Smuggle $rand_gems crystals back.</center> "; $db->query("UPDATE users SET crystals=crystals+$rand_gems WHERE userid=$userid"); $db->query("UPDATE users SET csmuggling=smuggling-1 WHERE userid=$userid"); print "<center>[[url='explore.php']Back[/url]]</center> "; } function smug_4() { global $db,$ir,$c,$userid; $rand_gems = rand(1,400); echo "<center>You get over to Portugal And Managed To Smuggle $rand_gems crystals back.</center> "; $db->query("UPDATE users SET crystals=crystals+$rand_gems WHERE userid=$userid"); $db->query("UPDATE users SET csmuggling=smuggling-1 WHERE userid=$userid"); print "<center>[[url='explore.php']Back[/url]]</center> "; } function smug_5() { global $db,$ir,$c,$userid; $rand_gems = rand(1,500); print "<center>You get over to Spain And Managed To Smuggle $rand_gems crystals back.</center> "; $db->query("UPDATE users SET crystals=crystals+$rand_gems WHERE userid=$userid"); $db->query("UPDATE users SET csmuggling=smuggling-1 WHERE userid=$userid"); print "<center>[[url='explore.php']Back[/url]]</center> "; } function smug_6() { global $db,$ir,$c,$userid; $rand_gems = rand(1,600); echo "<center>You get over to Switzerland And Managed To Smuggle $rand_gems crystals back.</center> "; $db->query("UPDATE users SET crystals=crystals+$rand_gems WHERE userid=$userid"); $db->query("UPDATE users SET csmuggling=smuggling-1 WHERE userid=$userid"); print "<center>[[url='explore.php']Back[/url]]</center> "; } ?>
-
Re: Gym with Current Stats (v1) NO NO NO!! <?php /*----------------------------------------------------- -- Mono Country v2.0 BETA -- A product of DBS-entertainment -- Copyright held 2005 by Dabomstew -- INDEX.php -----------------------------------------------------*/ include "globals.php"; check_level(); $fm=money_formatter($ir['money']); $ts=$ir['strength']+$ir['agility']+$ir['guard']+$ir['labour']+$ir['IQ']; $ir['strank']=get_rank($ir['strength'],'strength'); $ir['agirank']=get_rank($ir['agility'],'agility'); $ir['guarank']=get_rank($ir['guard'],'guard'); $ir['labrank']=get_rank($ir['labour'],'labour'); $ir['IQrank']=get_rank($ir['IQ'],'IQ'); $tsrank=get_rank($ts,'strength+agility+guard+labour+IQ'); $ir['strength']=number_format($ir['strength']); $ir['agility']=number_format($ir['agility']); $ir['guard']=number_format($ir['guard']); $ir['labour']=number_format($ir['labour']); $ir['IQ']=number_format($ir['IQ']); $ts=number_format($ts); $cm=money_formatter($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $out=""; $_GET['times']= abs((int) $_GET['times']); if(isset($_GET['train'])) { if($_GET['train'] != "strength" && $_GET['train'] != "agility" && $_GET['train'] != "guard" && $_GET['train'] != "labour") { die("Abusers aren't allowed."); } $tgain=0; for($i=1;$i<=$_GET['times'] && $ir['energy'] > 0;$i++) { if ($ir['energy'] > 0) { $gain=rand(1,3)/rand(800,1000)*rand(800,1000)*(($ir['will']+20)/150); $tgain+=$gain; if ($_GET['train']=="IQ") { $gain/=100; } $ir[$_GET['train']]+=$gain; $egain=$gain/10; $ts=$ir[$_GET['train']]; $st=$_GET['train']; $db->query("UPDATE userstats SET $st=$st+".$gain." WHERE userid=$userid",$c) or die("UPDATE userstats SET $st=$st+$gain,energy=energy-1,exp=exp+$egain WHERE userid=$userid ".mysql_error()); $wu=(int) (rand(1,3)); if ($ir['will'] >= $wu) { $ir['will']-=$wu; $db->query("UPDATE users SET energy=energy-1,exp=exp+$egain,will=will-$wu WHERE userid=$userid",$c); } else { $ir['will']=0; $db->query("UPDATE users SET energy=energy-1,exp=exp+$egain,will=0 WHERE userid=$userid",$c); } $ir['energy']-=1; $ir['exp']+=$egain; } else { $out="You do not have enough energy to train."; } } $stat=$ir[$st]; $i--; $out="<center><h3>Gym</h3><hr width=50%><div> <center>You begin training your $st. <font color=green>You have gained [b]$tgain $st[/b] by training it $i times.</font> You now have [b]$stat $st[/b] and [b]{$ir['energy']}[/b] energy left. "; } else { $out="<center><h3>Gym</h3><hr width=50%><div> "; } $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); print $out; print "<center>Enter the times you wish to train the stat you select You can train {$ir['energy']} times with the energy you have <form method='get' action=gym.php> <table border=0><tr> <td align=center>Times</td> <td align=center>Stat</td> </tr><tr> <td align=center><input type='text' size='5' name='times' value='{$ir['energy']}' maxlength='2'></td> <td align=center><select type='dropdown' name='train'> <option value='strength'>Strength</option> <option value='agility'>Agility</option> <option value='labour'>Labour</option> <option value='guard'>Guard</option> </select></td> </tr><tr> <td colspan=2 align=center><input type=submit value='Train'></form></td> </tr></table><hr width=50%><center>[b]<center>Your Current Stats:[/b]<hr width=50%> <table width=50%><tr><td>[b]<center>Strength:[/b]<font color=#000066> {$ir['strength']} [Ranked: <font color=#000066>{$ir['strank']}]</td><td>[b]<center>Agility:[/b] <font color=#000066>{$ir['agility']} [Ranked: <font color=#000066>{$ir['agirank']}]</td></tr> <tr><td>[b]<center>Guard:[/b] <font color=#000066>{$ir['guard']} [Ranked: <font color=#000066>{$ir['guarank']}]</td><td>[b]<center>Labour:[/b]<font color=#000066> {$ir['labour']} [Ranked: <font color=#000066>{$ir['labrank']}]</td></tr> <tr><td>[b]<center>IQ: [/b] <font color=#000066>{$ir['IQ']} [Ranked: <font color=#000066>{$ir['IQrank']}]</td><td>[b]<center>Total stats:[/b] <font color=#000066>{$ts} [Ranked: <font color=#000066>$tsrank]</td></tr></table> <hr width=50%>[url='index.php']Back to Home[/url]<hr width=50%>"; $h->endpage(); ?>
-
Re: v2 register change font colour You Find :: print "<h3>{$set['game_name']} Registration</h3>"; print "<form action=register.php method=post> <table width='75%' class='table' cellspacing='1'> <tr> <td width='30%'>Username</td> <td width='40%'><input type=text name=username onkeyup='CheckUsername(this.value);'></td> <td width='30%'><div id='usernameresult'></div></td> </tr> <tr> <td>Password</td> <td><input type=password id='pw1' name=password onkeyup='CheckPasswords(this.value);PasswordMatch();'></td> <td><div id='passwordresult'></div></td> </tr> <tr> <td>Confirm Password</td><td><input type=password name=cpassword id='pw2' onkeyup='PasswordMatch();'></td> <td><div id='cpasswordresult'></div></td> </tr> <tr> <td>Email</td><td><input type=text name=email onkeyup='CheckEmail(this.value);'></td> <td><div id='emailresult'></div></td> </tr> <tr> <td>Gender</td> <td colspan='2'><select name='gender' type='dropdown'> <option value='Male'>Male <option value='Female'>Female</select></td> </tr> <tr> <td>Promo Code</td><td colspan=2><input type=text name=promo></td> </tr> And Add :: <font clor=red></font> To The Equasion
-
Re: Gym with Current Stats (v1) That Is Wrong The Right V2 Is: <?php /*----------------------------------------------------- -- Mono Country v2.0 BETA -- A product of DBS-entertainment -- Copyright held 2005 by Dabomstew -- INDEX.php -----------------------------------------------------*/ include "globals.php"; check_level(); $fm=money_formatter($ir['money']); $ts=$ir['strength']+$ir['agility']+$ir['guard']+$ir['labour']+$ir['IQ']; $ir['strank']=get_rank($ir['strength'],'strength'); $ir['agirank']=get_rank($ir['agility'],'agility'); $ir['guarank']=get_rank($ir['guard'],'guard'); $ir['labrank']=get_rank($ir['labour'],'labour'); $ir['IQrank']=get_rank($ir['IQ'],'IQ'); $tsrank=get_rank($ts,'strength+agility+guard+labour+IQ'); $ir['strength']=number_format($ir['strength']); $ir['agility']=number_format($ir['agility']); $ir['guard']=number_format($ir['guard']); $ir['labour']=number_format($ir['labour']); $ir['IQ']=number_format($ir['IQ']); $ts=number_format($ts); $cm=money_formatter($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $out=""; $_GET['times']= abs((int) $_GET['times']); if(isset($_GET['train'])) { if($_GET['train'] != "strength" && $_GET['train'] != "agility" && $_GET['train'] != "guard" && $_GET['train'] != "labour") { $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); die("Abusers aren't allowed."); } $tgain=0; for($i=1;$i<=$_GET['times'] && $ir['energy'] > 0;$i++) { if ($ir['energy'] > 0) { $gain=rand(1,3)/rand(800,1000)*rand(800,1000)*(($ir['will']+20)/150); $tgain+=$gain; if ($_GET['train']=="IQ") { $gain/=100; } $ir[$_GET['train']]+=$gain; $egain=$gain/10; $ts=$ir[$_GET['train']]; $st=$_GET['train']; $db->query("UPDATE userstats SET $st=$st+".$gain." WHERE userid=$userid",$c) or die("UPDATE userstats SET $st=$st+$gain,energy=energy-1,exp=exp+$egain WHERE userid=$userid ".mysql_error()); $wu=(int) (rand(1,3)); if ($ir['will'] >= $wu) { $ir['will']-=$wu; $db->query("UPDATE users SET energy=energy-1,exp=exp+$egain,will=will-$wu WHERE userid=$userid",$c); } else { $ir['will']=0; $db->query("UPDATE users SET energy=energy-1,exp=exp+$egain,will=0 WHERE userid=$userid",$c); } $ir['energy']-=1; $ir['exp']+=$egain; } else { $out="You do not have enough energy to train."; } } $stat=$ir[$st]; $i--; $out="<center><h3>Gym</h3><hr width=50%><div> <center>You begin training your $st. <font color=green>You have gained [b]$tgain $st[/b] by training it $i times.</font> You now have [b]$stat $st[/b] and [b]{$ir['energy']}[/b] energy left. "; } else { $out="<center><h3>Gym</h3><hr width=50%><div> "; } $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); print $out; print "<center>Enter the times you wish to train the stat you select You can train {$ir['energy']} times with the energy you have <form method='get' action=gym.php> <table border=0><tr> <td align=center>Times</td> <td align=center>Stat</td> </tr><tr> <td align=center><input type='text' size='5' name='times' value='{$ir['energy']}' maxlength='2'></td> <td align=center><select type='dropdown' name='train'> <option value='strength'>Strength</option> <option value='agility'>Agility</option> <option value='labour'>Labour</option> <option value='guard'>Guard</option> </select></td> </tr><tr> <td colspan=2 align=center><input type=submit value='Train'></form></td> </tr></table><hr width=50%><center>[b]<center>Your Current Stats:[/b]<hr width=50%> <table width=50%><tr><td>[b]<center>Strength:[/b]<font color=#000066> {$ir['strength']} [Ranked: <font color=#000066>{$ir['strank']}]</td><td>[b]<center>Agility:[/b] <font color=#000066>{$ir['agility']} [Ranked: <font color=#000066>{$ir['agirank']}]</td></tr> <tr><td>[b]<center>Guard:[/b] <font color=#000066>{$ir['guard']} [Ranked: <font color=#000066>{$ir['guarank']}]</td><td>[b]<center>Labour:[/b]<font color=#000066> {$ir['labour']} [Ranked: <font color=#000066>{$ir['labrank']}]</td></tr> <tr><td>[b]<center>IQ: [/b] <font color=#000066>{$ir['IQ']} [Ranked: <font color=#000066>{$ir['IQrank']}]</td><td>[b]<center>Total stats:[/b] <font color=#000066>{$ts} [Ranked: <font color=#000066>$tsrank]</td></tr></table> <hr width=50%>[url='index.php']Back to Home[/url]<hr width=50%>"; $h->endpage(); ?> You Left "mysql_query" It Shold Have Been "$db->query":D
-
Re: Crystal bank intrest you need this cron in cron_day.php $db->query("UPDATE users SET cbank=cbank+(bankmoney/50) where cbank>0");
-
[mccode] 1st AS/CE MCCODE Modification [AutoTrainer] [$40.00]
Klikoka replied to mdshare's topic in Paid Modifications
Re: 1st AS/CE MCCODE Modification [AutoTrainer] Looks Good Great Job -
Re: [V2]Crystal Smuggling Mod[V2] PDATE `users` ADD `csmuggling` int( 11 ) NOT NULL default '10' MySQL said: Documentation #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ADD `csmuggling` int(11) NOT NULL default'10'' at line 1 You Must Already Have The SQL Table Added
-
This Is In Reply To The Request In This Topic::: Lock Down First Make A File Called lockdown.php: <?php include "globals"; print "Game Name Here Down At The Moment As The Admins Are Editing The Codes Thanks, Your Name Here" $h->endpage(); ?> Then In login.php Find:: [url='register.php']REGISTER NOW![/url] Replace With:: <h3>[url='lockdown.php']Register Not Open[/url]</h3> Then Find:: <legend>Login</legend>"; print "<form action=authenticate.php method=post name=login onsubmit=\"return saveme();\">Username: <input type=text name=username> Password: <input type=password name=password> Replace With:: <legend>Game Name Here Down</legend>"; print "<form action=lockdown.php method=post name=login onsubmit=\"return saveme();\">Username: <input type=text name=username> Password: <input type=password name=password> Then When You Have Finished Editing The Game Just Find What Was Changed On This Topic And Change It Back :-D
-
Re: Looking For MedPack Fix You Just Use The Item Make Option On Staff Panel
-
Re: [V2]Mass Donator Days Credit[V2] Thank You For Helping Out
-
Re: New And Improved Mining Mod [$20] That Looks Great
-
Re: Fast Food Mod I Have Made The Bank Mod On The Site
-
Add To Top Of staff_users.php case 'massdd: massdd_user_form(); break; case 'massddsub': massdd_user_submit(); break; Then At The Bottom Before $h->endpage(); ?> Add: function mdd_user_form() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] > 2) { die("403"); } print "<h3>Mass Donator Days Payment</h3> You can give all users Donator Days. <form action='staff_users.php?action=massddsub' method='post'> Days: <input type='text' name='donatordays' /> <input type='submit' value='Credit Users' /></form>"; } function mdd_user_submit() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] > 2) { die("403"); } $_POST['donatordays'] = (int) $_POST['donatordays']; $db->query("UPDATE users u SET donatordays=donatordays+{$_POST['donatordays']}"); print "All Users credited. Click [url='staff.php?action=announce']here to add an announcement[/url] or [url='staff_special.php?action=massmailer']here to send a mass mail[/url] explaining why."; stafflog_add("Credited all users \${$_POST['donatordays']}."); } And That Should Work :-D