Jump to content
MakeWebGames

(((TOLK)))

Members
  • Posts

    179
  • Joined

  • Last visited

Everything posted by (((TOLK)))

  1. This a small racing mod that will give users some money if they win. SQL First   ALTER TABLE 'users' ADD 'race' NOT NULL DEFAULT '5'   Call this file race.php   <?php /*----------------------------------------------------- -- DO NOT REMOVE THIS -- Coded by ///TOLK\\\ -- Free to use by CE members -----------------------------------------------------*/ include "globals.php"; if($ir['jail'] or $ir['hospital']) { die("<font color=red>This page cannot be accessed while in jail or hospital</font>."); } print "<font size=10>Welcome to the {$set['game_name']} Car Championship</font> "; print "Who would you like to race?"; print "<table width='75%' class=\"table\" border=\"0\" cellspacing=\"1\">"; print "<th>[b]Name</th><th>Go?[/b]</th>"; print "</tr><tr>"; print "<td>Dave</td><td>[url='raceD.php']GO![/url]</td>"; ?>   Now call this file raceD.php   <?php /*----------------------------------------------------- -- DO NOT REMOVE THIS -- Coded by ///TOLK\\\ -- Free to use by CE members -----------------------------------------------------*/ include "globals.php"; if($ir['jail'] or $ir['hospital']) { die("<font color=red>This page cannot be accessed while in jail or hospital</font>."); } if($ir ['race'] <=0) { die ("<font color=red>You have raced your 5 races for today and feel tired, you'll come back tomorrow though</font>"); } $db->query("update users set race=race-1 where userid=$userid",$c); if($ir ['level'] <3) { die ("<font color=red>You lost the race to Dave</font>"); } else if ($ir ['level'] >=3) { print "<font color=#00FF00>You won the race giving you $5,000</font>"; $db->query("update users set money=money+5000 where userid=$userid",$c); } ?>   Add this to Explore or wherever you want it:   [url='race.php']<font color=#0033FF>Race(NEW)</font>[/url]   Now add this into cron_day.php   $db->query("UPDATE 'users' SET race=5 WHERE race <5);   And that's it. At the moment there's only 1 person you can challenge, called Dave. You can add more by adding another person to the table and making another file like raceD.php (the D stands for Dave.) So if i wanted to make Bill, i'd add bill to the table then make a file called raceB.php. Just edit the raceD.php file to make it harder for people to win and to give out more money. So change:   if($ir ['level'] <3) { die ("<font color=red>You lost the race to Dave</font>"); }   To:   if($ir ['level'] <15) { die ("<font color=red>You lost the race to Bill</font>"); }   Give me your views, I love comments :-P
  2. (((TOLK)))

    Heroes

    Re: Heroes I watch it too, Hiro's got good powers and Sylar is just evil but he's the most powerful. Claire can never die and that's cool
  3. Re: [Mccodes V2]Prayer Mod   Pray to be forgiven of your attacking sins? Pray that you don't get attacked today? You could change the oringinal mod so that it gives you a little bit of protection for like half an hour or something
  4. Re: [any] Kool name   *me pokes MTG in the eye :) *I poke both you girlys in the nose* :-P
  5. Re: [any] Kool name You really needed to say that? lol I did need to say that, Gradient text and marquees are awesome, it's a good idea for others. It's cool but takes a little bit of time to do. <big>[b]<marquee><font color=#0033FF>//</font><font color=#0099FF>/T</font><font color=#00FFFF>OL</font><font color=#0099FF>K\</font><font color=#0033FF>\\</font></marquee>[/b]</big>
  6. Re: [any] Kool name I've got name colours for staff on my game, we have them gradient and add a marquee,
  7. Re: [Mccodes V2]Prayer Mod   Well the only difference i can see is that i might have missed out the (')s around the 1, i didn't know that that was important
  8. Does anyone know if this is good protection, or is it just false hope?   /*+++++++++++++++++++++++++++++++++++++*/ /* SQL Protection Start */ /*+++++++++++++++++++++++++++++++++++++*/ //check if incomingData is not empty and of the expected length function checkIncomingData($idata, $minsize, $maxsize) { if ( strlen($idata)<$minsize or strlen($idata)>$maxsize ) { return false; } else { return true; } } //make sure that nothing bad can be entered by the user (-->sql injection attack) function cleanIncomingData($idata) { $cleaned = trim($idata); $cleaned = mysql_real_escape_string($cleaned); return $cleaned; } /*+++++++++++++++++++++++++++++++++++++*/ /* SQL Protection Ended */ /*+++++++++++++++++++++++++++++++++++++*/
  9. Re: [mccode v2] Tag Mod (50% Complete) Sounds good can't wait
  10. Re: [Mccodes V2]Prayer Mod   Thanks mate. I like your idea of changing it to a made-up religion like pray to samurais  
  11. Re: [Mccodes V2]Prayer Mod   Lol but you could add a bit of real-life situations to it. It's very popular on my game. You noob your a disgrace to muslims you must be 10 years old!   13 actually, and cherrydarling's right, some people like some mods and others don't
  12. Does anyone here watch Terminator: Sarah Connor Chronicles, i think it's pretty good but this second season gets a little boring after a while but then it just gets better.
  13. Re: [Mccodes V2]Prayer Mod   Lol but you could add a bit of real-life situations to it. It's very popular on my game.
  14. Re: Negative money     I used to get this problem and i think it's becauseyou are putting money in the bank to the top limit. so if the limit is 9,223,372,036,854,775,808 then if u get over that the database decides to go into negatives. I'm not an expert and that might be completely wrong, you'll just have to wait for someone with better codeing experience than me to come along
  15. Re: [Mccodes V2]Prayer Mod   Thanks :wink:
  16. Re: [Mccodes V2]Prayer Mod   Well we pray 5 times a day and we may want to pray a little more just as a good deed or there are other reasons but i can't be bothered going into details, anyway what do you think i could change this mod into? :?
  17. Re: [Mccodes V2]Prayer Mod   I know that muslims pray at least 5 times a day because I am one but is there a way to stop people getting too much will. ***JUST SLAPPED MYSELF*** I could edit it to giv u five pray turns a-day and then i just split the amount of will give out. Also, i could add the religions mod that has been posted somewhere here and put the if statement in explore.php, if u are a muslim u got to the mosque, if u are a christian u go to the church etc. i'll have a go when i have more time
  18. This is my first proper mod so don't be too harsh if it's rubbish, It's a mod where users can go to their desired place of worship eg. Mosque, Church, temple, synagogue etc. Once you go you will get your will up. so... First run this SQL ALTER TABLE 'users' ADD 'pray' INT (11) NOT NULL DEFAULT 1   Then name this as mosque.php (this is my mosque.php and you can alter it a little to change place of worship and rename it) <?php require "globals.php"; if($ir['jail'] or $ir['hospital']) { die("<font color=red>This page cannot be accessed while in jail or hospital</font>."); } if ($ir['pray'] < 1) { die("<font color=red><font size=5>You have already been once today, Come back at newday.</font> "); } print "<h3>You are currently at the mosque</h3> "; print "You pray for 10 minutes and feel good about yourself, you get some willingness in you. "; $db->query("UPDATE users SET will=100 WHERE userid=$userid",$c); $db->query("UPDATE users SET pray=pray-1 WHERE userid=$userid",$c); ?>   Now add this to cron_day.php $db->query("UPDATE users SET pray=1 WHERE pray > 0");   Please tell me if you use this. And reply with your views, i'm very proud of it! :lol:
  19. Re: cmarket.php HELP Off topic, Dylan you have two post counts and one says you have like 100, 000,000 or somethin :?
  20. Re: Looking for a Referal Mod ...   If that's mine then it might not work because I got it off my computer not my FTP and that one may not work. Try Neji's it deffinately works
  21. Re: Looking for a Referal Mod ... yh sorry about not adding the cases and links i couldn't be bothered lol i thought u guyz could work it out lol. If i can anyone can.
  22. Re: [McCodes V2] Streets Mod great idea, kepp it up! :wink:
  23. Re: Looking for a Referal Mod ... This is the one i made, i made it for hall of fame so you can change it a little if u want,   function hof_referals() { global $db,$ir,$c,$userid, $myf; print "Showing the 6 users with the highest number of referals <table width=75% cellspacing=1 class='table'><tr style='background:gray'> <th>User ID</th> <th>Number of referals</th> </tr>"; $p=0; $ar=$db->query("SELECT COUNT('refREFED') AS total,refREFER FROM referals GROUP BY refREFER ORDER BY COUNT('referred') DESC LIMIT 10"); while($s = $db->fetch_row($ar)) { echo '<tr style="background:brown">'; echo '<td>'.$s['refREFER'].'</td>'; echo '<td>'.$s['total'].'</td>'; echo '</tr>'; } print "</table>";
  24. Re: [McCodes v2] 100 Club! If u want it now, on mainmenu.php put if level=100 code thingy in it and then put all the links to wotever u want ur 100 club to have
  25. Re: [MCV2]SHOUTBOX[MCV2] Is there anything you can do to hide the shoutbox
×
×
  • Create New...