
Joel
Members-
Posts
1,169 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by Joel
-
Re: [V2] Daily Donator Reward [V2] Lol thanks, And it still works even if its require "globals.php"; :)
-
This mod will let The donated users have 1 chance each day to get a Reward, When there Donator Days Run out, They will not be able to Access the (Daily Donators Reward) Page, I created this Mod, And its my first, It works I've tested it, And its Fine, Here we Go Run this SQL: ALTER TABLE `users` ADD `reward_done` int(11) NOT NULL default '0'; Open cron_day.php and Find: $db->query("UPDATE users SET daysold=daysold+1, boxes_opened=0"); Add After: $db->query("UPDATE users SET reward_done=0"); Make a File Called ddreward.php and put this in it: <?php /*----------------------------------------------------- -- Made by Extermination -- Daily Donator Reward -- V2 Free -----------------------------------------------------*/ require "globals.php"; if($ir['jail']) { die("<h2>Your in Jail!</h2>Come back in {$ir['jail']} Minutes!"); } if($ir['hospital']) { die("<h2>Your in Hospital</h2>Come back in {$ir['hospital']} Minutes!"); } if($ir['donatordays'] == 0) { die("Sorry, This Feature is for Donators only!"); } print "<center><table width=80% class=h border=1><tr><th>Daily Donator Reward</th></tr><tr> <td> <center><hr width='70%'>This Feature is only For Donators Only, You only have 1 Chance (Each Day) to get a Reward, The Rewards will be Different Each Day of the Week!<hr width='70%'> "; if($_GET['reward']) { if($ir['reward_done'] >= 1) { die("<font color=red>Sorry, You Have already Had your Daily Donator Reward, Come Back Tomorrow!</font> </td></tr></th></table><table width=80% class=h border=1><tr><th>[url='ddreward.php']- Go Back -[/url]</th></tr></td></th> </table>"); } $num=rand(1, 5); $db->query("UPDATE users SET reward_done=reward_done+1 WHERE userid=$userid"); $ir['money']-=100; switch($num) { case 1: $money=rand(30, 1200); print "<font color=green>You Have Been Rewarded Money!</font>"; $db->query("UPDATE users SET money=money+{$money} WHERE userid={$userid}"); break; case 2: print "<font color=green>You Gained Some Brave!</font>"; $db->query("UPDATE users SET brave=maxbrave WHERE userid={$userid}"); break; case 3: print "<font color=green>You Gained Some Will!</font>"; $db->query("UPDATE users SET will=maxwill WHERE userid={$userid}"); break; case 4: print "<font color=green>You Gained Some Energy!</font>"; $db->query("UPDATE users SET energy=+5 WHERE userid={$userid}"); break; case 5: print "<font color=green>You Gained 10 Crystals!</font>"; $db->query("UPDATE users SET crystals=+10 WHERE userid={$userid}"); break; } print " <a href='test.php'><font color=black>- back -</font> "; } else { print " </td></tr></th></table><table width=80% class=h border=1><tr><th>[url='ddreward.php?reward=1']<font color=green>- Start -</font>[/url]</th></tr></td></th> </table> <table width=80% class=h border=1><tr><th>[url='index.php']- Go To Home -[/url]</th></tr></td></th></table> "; } $h->endpage(); ?> And then your Done! :D Screenshots: I spent Ages Coding that and testing it, Feel free to Improve it to your style :D EDIT: Open Mainmenu.php and Find: if($ir['donatordays']) { print " [b]Donators Only[/b] Add After: [url='ddrewardphp']Daily Donator Reward[/url] And then your done! :D
-
Re: [Video] Web 2.0 Nice :D
-
Re: [Free] TownView I did but it still never worked! :/
-
Re: [Free] TownView Done that, but then i get this Fatal error: Call to undefined function unix_timestamps() in /*********/******/public_html/townview.php on line 47
-
Re: Page Tutorials [FREE] Nice but some users will get annoyed off it, Is there a way to (Turn it off) So users can Turn it off? If not can you post a little mod for it, Thanks :D
-
Re: [Free] TownView Tried this and it didnt work, Im usng V2 codes Fatal error: Call to undefined function mysql_num_row() in /****/*********/public_html/townview.php on line 9
-
Help with adding a Background Image to the Header.php!
Joel replied to Joel's topic in General Discussion
Re: Help with adding a Background Image to the Header.php! Nope none off them worked they just came up with a error :( Parse error: syntax error, unexpected ':' in /****/*************/public_html/header.php on line 145 -
FIXED! :D
-
Re: New Crime Page [V2] NIce one Mate! :D
-
Re: [REVIEW] Amazon Survival Its really good :)
-
Re: [REVIEW] Criminal Combat. Yeh that Looks well Better :) haha
-
Lol in this Game we are going to make one big PHP Code, Im bored so........... Ill start: <?php
-
Re: Guess the next poster nope Killah
-
Re: FIRST THOUGH! nothing
-
Re: Counting (nr game) 1874
-
mccode-v1 Automatic total cost calculation in shop buy.
Joel replied to Will's topic in Free Modifications
Re: [mccode][v1]+[v2]Automatic total cost calculation in shop buy. Looks Really good, Ill try it out :) -
Re: updated login.php Looks Good :)
-
Re: BBCode_Engine Nice
-
Re: Help using Tables! Nope its still Bold, I really dont see why its doing this :( Thanks for trying anyway
-
Re: Item Type Upgrade Nice mate, Good work, It will be easier for people :)
-
Re: Help using Tables! Done that and it still dont work :( Ive removed all the tags in explore and Ive removed the CSS Bold in Header, Both off them :(
-
Re: Which File Extension are You? Lol your not the only one!
-
Re: Count Backwards :D 4967
-
Re: Help using Tables! Nah it didnt work, I removed both off them :-(