Jump to content
MakeWebGames

Faz`

Members
  • Posts

    652
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Faz`

  1. Re: [REVIEW] Extreme-Warzone - Please review!! Half the text on the login isn't even legible.
  2. Re: [mccode v2] Improved Security on Attack System   Oh Gawd :-o
  3. Re: [mccodes v2] Taser Mod I'm probably just as bad as you :mrgreen:
  4. Re: [mccodes v2] Taser Mod I have had this error too, you see in the file it says somewhere "Change this to ID of the taser" Or something similar, change that. I had that error at first, I was only glancing over the code quickly, change it and the error should be fixed. Let me know if you still have problems after this.
  5. Re: [McCodes V2] Unique Template's A reasonable price I would say is $100+ for custom and $30-$50 for public. Your sales should do alright with that price range.
  6. Re: [McCodes V2] Streets Mod Lol, I'm pretty sure you wouldn't do anything like that anyway.
  7. Re: [McCodes V2] Streets Mod I wouldn't say he was "OWNED!". He was simply proved wrong, its a nice mod, will keep people to coming to your game, hence your average users online a day will probably be a lot higher than it was. Nice mod, +1
  8. Re: [mccodes v2] Taser Mod The mod works a treat for me. Brilliant donator feature.
  9. Re: Attack Script made by us one that works Hopefully. I think jon was meant to say "How does it not make any sense" lol.
  10. Re: [mccodes v2] Taser Mod Also, post up you header here. If its something special and you don't want people to see it, pm me and I'll help you out.
  11. Re: [mccodes v2] Taser Mod I had that error too. Run this SQL first: CREATE TABLE `froze` ( `ID` INT( 25 ) NOT NULL AUTO_INCREMENT PRIMARY KEY , `userid` INT( 25 ) NOT NULL , `when` INT( 25 ) NOT NULL , `by` INT( 25 ) NOT NULL ) ENGINE = MYISAM   Then run this after it run this: INSERT INTO `items` ( `itmid` , `itmtype` , `itmname` , `itmdesc` , `itmbuyprice` , `itmsellprice` , `itmbuyable` , `effect1_on` , `effect1` , `effect2_on` , `effect2` , `effect3_on` , `effect3` , `weapon` , `armor` ) VALUES ( NULL , '1', 'Taser Gun', 'Use this to taser users, freeze them for 5 minutes!', '1000', '500', '1', '1', '', '0', '', '0', '', '0', '0' )
  12. Re: [mccodes v2] Taser Mod Brilliant mod! I'll be using this for sure =D I tried to do it myself, but it turned out a failure like usual :D
  13. Re: Activated From Click? I used curly braces? Only just realized :P And yeah, its what I did, thanks for that.
  14. Re: [mccode v2] Easter Egg Hunt (Finished) Awesome illiusions, thanks a lot!
  15. Re: View Gang Surrender I have an even bigger problem lol. Whenever I try and accept a surrender I get a query error. I fixed the error, then when I accepted the surrender the war carried on going. If anyone could shed some light on us all it would be great :)
  16. Re: [mccode v2] Easter Egg Hunt (Finished) Illusions stop being so modest! You fixed the SQL's, so surely you did play a part in it? :P Thanks for that Gurpreet, Haunted Dawg helped me when I needed it most :) Hope you enjoy the mod.
  17. Re: [mccode v2] Easter Egg Hunt (Finished) Yeah no problem. Hope you enjoy the mod. Put quite a bit of effort into it.
  18. Re: [mccode v2] Easter Egg Hunt (Finished) Gar. Sorry for the same post twice.
  19. Re: [mccode v2] Easter Egg Hunt (Finished) Thanks a lot for that illusions. No idea why I used the wrong SQL when making it I used the right one lol. Bigm you'll find I spelt it right.
  20. Re: [mccode v2] Easter Egg Hunt (Finished) Thanks a lot for that illusions. As for bman you shall find I spelt it right.
  21. Okay, I finally finished this mod. Here it is. A user gets 25 turns every day. Once he starts, he has an hour to complete the hunt. Name this file easter.php <?php include "globals.php"; print "<h3>Easter Egg Hunt</h3> "; if($ir['hospital']) { die("This page cannot be accessed while in hospital."); } if($ir['easterturns'] < 1) { die("You've already hunted today, come back tomorrow for the next stage"); } switch($_GET['action']) { case 'huntnorth': hunt_north(); break; case 'hunteast': hunt_east(); break; case 'huntsouth':hunt_south(); break; case 'huntwest': hunt_west(); break; default: index(); break; } function hunt_north() { global $db,$ir,$c,$h,$userid; $chance = rand(1,10); $db->query("UPDATE users SET easterturns=easterturns-1 where userid=$userid",$c); if($ir['eastertime'] == 0) { if($ir['easterturns'] == 25) { mysql_query("UPDATE `users` SET `eastertime` = 60, `easterturns` = 24 WHERE `userid` = ".$ir['userid']); //Display first attempt here } } if($ir['eastertime'] < 1) { die("Sorry, time's up! Come back tomorrow for the next hunt"); } if ($chance == 1) { print "You look behind a bush, you think you've found an easter egg, but its only a big rock. "; } if ($chance == 2) { print "Nothing here. "; } if ($chance == 3) { print "Nothing here, just a few stones. "; } if ($chance == 4) { $hosptime=(int) rand(1,5); $loseruser = $ir['userid']; $reasonhosp = 'Tried to beat someone up and failed!'; $db->query("UPDATE users SET hospital=$hosptime WHERE userid=$loseruser",$c); $db->query("UPDATE users SET hospreason='$reasonhosp' WHERE userid=$loseruser",$c); event_add($ir['userid'],"Don't mess with people bigger than you!",$c); die ("You try to beat up a guy with an easter egg. He turns round and beats you down. You wake up in hospital."); } if ($chance == 5) { print "You found an easter egg but a squirrel jumps out and takes it from your hands. "; } if ($chance == 6) { $gain = rand(1,5); print "While looking for easter eggs you coincidencially you found [b]$gain[/b] crystals. "; $db->query("UPDATE users SET crystals=crystals+$gain where userid=$userid",$c); } if ($chance == 7) { $gain = rand(50,100); print "You turn over a rock and find [b] \$$gain[/b]. You pocket it and carry on hunting. "; $db->query("update users set money=money+$gain where userid=$userid",$c); } if ($chance == 8) { print "Nothing here. Just a few chavs. "; } if ($chance == 9) { print "You look behind a giant leaf and find an easter egg! Look in your inventory for a special prize! "; $itemidexplore =rand(38,42); $db->query("INSERT INTO inventory VALUES('',$itemidexplore,$userid,1)",$c); } if ($chance == 10) { print "You fall into a bush of nettles. You are stinging all over. "; } print "Turns used: {$ir['easterturns']} "; print "Time remaining: {$ir['eastertime']} "; print " <table width=80% height=80% border=1><tr><td>[url='easter.php?action=huntnorth']Hunt North[/url]</td> <td>[url='easter.php?action=hunteast']Hunt East[/url]</td></tr><tr> <td>[url='easter.php?action=huntsouth']Hunt South[/url]</td> <td>[url='easter.php?action=huntwest']Hunt West[/url]</td></tr>"; } function hunt_east() { global $db,$ir,$c,$h,$userid; $chance = rand(1,10); $db->query("UPDATE users SET easterturns=easterturns-1 where userid=$userid",$c); if($ir['eastertime'] == 0) { if($ir['easterturns'] == 25) { mysql_query("UPDATE `users` SET `eastertime` = 60, `easterturns` = 24 WHERE `userid` = ".$ir['userid']); //Display first attempt here } } if($ir['eastertime'] < 1) { die("Sorry, time's up! Come back tomorrow for the next hunt"); } if ($chance == 1) { print "You look behind a bush, you think you've found an easter egg, but its only a big rock. "; } if ($chance == 2) { print "Nothing here. "; } if ($chance == 3) { print "Nothing here, just a few stones. "; } if ($chance == 4) { $hosptime=(int) rand(1,5); $loseruser = $ir['userid']; $reasonhosp = 'Tried to beat someone up and failed!'; $db->query("UPDATE users SET hospital=$hosptime WHERE userid=$loseruser",$c); $db->query("UPDATE users SET hospreason='$reasonhosp' WHERE userid=$loseruser",$c); event_add($ir['userid'],"Don't mess with people bigger than you!",$c); die ("You try to beat up a guy with an easter egg. He turns round and beats you down. You wake up in hospital."); } if ($chance == 5) { print "You found an easter egg but a squirrel jumps out and takes it from your hands. "; } if ($chance == 6) { $gain = rand(1,5); print "While looking for easter eggs you coincidencially you found [b]$gain[/b] crystals. "; $db->query("UPDATE users SET crystals=crystals+$gain where userid=$userid",$c); } if ($chance == 7) { $gain = rand(50,100); print "You turn over a rock and find [b] \$$gain[/b]. You pocket it and carry on hunting. "; $db->query("update users set money=money+$gain where userid=$userid",$c); } if ($chance == 8) { print "Nothing here. Just a few chavs. "; } if ($chance == 9) { print "You look behind a giant leaf and find an easter egg! Look in your inventory for a special prize! "; $itemidexplore =rand(38,42); $db->query("INSERT INTO inventory VALUES('',$itemidexplore,$userid,1)",$c); } if ($chance == 10) { print "You fall into a bush of nettles. You are stinging all over. "; } print "Turns used: {$ir['easterturns']} "; print "Time remaining: {$ir['eastertime']} "; print " <table width=80% height=80% border=1><tr><td>[url='easter.php?action=huntnorth']Hunt North[/url]</td> <td>[url='easter.php?action=hunteast']Hunt East[/url]</td></tr><tr> <td>[url='easter.php?action=huntsouth']Hunt South[/url]</td> <td>[url='easter.php?action=huntwest']Hunt West[/url]</td></tr>"; } function hunt_south() { global $db,$ir,$c,$h,$userid; $chance = rand(1,10); $db->query("UPDATE users SET easterturns=easterturns-1 where userid=$userid",$c); if($ir['eastertime'] == 0) { if($ir['easterturns'] == 25) { mysql_query("UPDATE `users` SET `eastertime` = 60, `easterturns` = 24 WHERE `userid` = ".$ir['userid']); //Display first attempt here } } if($ir['eastertime'] < 1) { die("Sorry, time's up! Come back tomorrow for the next hunt"); } if ($chance == 1) { print "You look behind a bush, you think you've found an easter egg, but its only a big rock. "; } if ($chance == 2) { print "Nothing here. "; } if ($chance == 3) { print "Nothing here, just a few stones. "; } if ($chance == 4) { $hosptime=(int) rand(1,5); $loseruser = $ir['userid']; $reasonhosp = 'Tried to beat someone up and failed!'; $db->query("UPDATE users SET hospital=$hosptime WHERE userid=$loseruser",$c); $db->query("UPDATE users SET hospreason='$reasonhosp' WHERE userid=$loseruser",$c); event_add($ir['userid'],"Don't mess with people bigger than you!",$c); die ("You try to beat up a guy with an easter egg. He turns round and beats you down. You wake up in hospital."); } if ($chance == 5) { print "You found an easter egg but a squirrel jumps out and takes it from your hands. "; } if ($chance == 6) { $gain = rand(1,5); print "While looking for easter eggs you coincidencially you found [b]$gain[/b] crystals. "; $db->query("UPDATE users SET crystals=crystals+$gain where userid=$userid",$c); } if ($chance == 7) { $gain = rand(50,100); print "You turn over a rock and find [b] \$$gain[/b]. You pocket it and carry on hunting. "; $db->query("update users set money=money+$gain where userid=$userid",$c); } if ($chance == 8) { print "Nothing here. Just a few chavs. "; } if ($chance == 9) { print "You look behind a giant leaf and find an easter egg! Look in your inventory for a special prize! "; $itemidexplore =rand(38,42); $db->query("INSERT INTO inventory VALUES('',$itemidexplore,$userid,1)",$c); } if ($chance == 10) { print "You fall into a bush of nettles. You are stinging all over. "; } print "Turns used: {$ir['easterturns']} "; print "Time remaining: {$ir['eastertime']} "; print " <table width=80% height=80% border=1><tr><td>[url='easter.php?action=huntnorth']Hunt North[/url]</td> <td>[url='easter.php?action=hunteast']Hunt East[/url]</td></tr><tr> <td>[url='easter.php?action=huntsouth']Hunt South[/url]</td> <td>[url='easter.php?action=huntwest']Hunt West[/url]</td></tr>"; } function hunt_west() { global $db,$ir,$c,$h,$userid; $chance = rand(1,10); $db->query("UPDATE users SET easterturns=easterturns-1 where userid=$userid",$c); if($ir['eastertime'] == 0) { if($ir['easterturns'] == 25) { mysql_query("UPDATE `users` SET `eastertime` = 60, `easterturns` = 24 WHERE `userid` = ".$ir['userid']); //Display first attempt here } } if($ir['eastertime'] < 1) { die("Sorry, time's up! Come back tomorrow for the next hunt"); } if ($chance == 1) { print "You look behind a bush, you think you've found an easter egg, but its only a big rock. "; } if ($chance == 2) { print "Nothing here. "; } if ($chance == 3) { print "Nothing here, just a few stones. "; } if ($chance == 4) { $hosptime=(int) rand(1,5); $loseruser = $ir['userid']; $reasonhosp = 'Tried to beat someone up and failed!'; $db->query("UPDATE users SET hospital=$hosptime WHERE userid=$loseruser",$c); $db->query("UPDATE users SET hospreason='$reasonhosp' WHERE userid=$loseruser",$c); event_add($ir['userid'],"Don't mess with people bigger than you!",$c); die ("You try to beat up a guy with an easter egg. He turns round and beats you down. You wake up in hospital."); } if ($chance == 5) { print "You found an easter egg but a squirrel jumps out and takes it from your hands. "; } if ($chance == 6) { $gain = rand(1,5); print "While looking for easter eggs you coincidencially you found [b]$gain[/b] crystals. "; $db->query("UPDATE users SET crystals=crystals+$gain where userid=$userid",$c); } if ($chance == 7) { $gain = rand(50,100); print "You turn over a rock and find [b] \$$gain[/b]. You pocket it and carry on hunting. "; $db->query("update users set money=money+$gain where userid=$userid",$c); } if ($chance == 8) { print "Nothing here. Just a few chavs. "; } if ($chance == 9) { print "You look behind a giant leaf and find an easter egg! Look in your inventory for a special prize! "; $itemidexplore =rand(38,42); $db->query("INSERT INTO inventory VALUES('',$itemidexplore,$userid,1)",$c); } if ($chance == 10) { print "You fall into a bush of nettles. You are stinging all over. "; } print "Turns used: {$ir['easterturns']} "; print "Time remaining: {$ir['eastertime']} "; print " <table width=80% height=80% border=1><tr><td>[url='easter.php?action=huntnorth']Hunt North[/url]</td> <td>[url='easter.php?action=hunteast']Hunt East[/url]</td></tr><tr> <td>[url='easter.php?action=huntsouth']Hunt South[/url]</td> <td>[url='easter.php?action=huntwest']Hunt West[/url]</td></tr>"; } function index() { global $db,$ir,$c,$h,$userid; print "<h3>You Are About To Start The 1 Hour Easter Hunt</h3> You Arrive At The Hunt, Ready To Win Some Eggs And Prove Everyone Wrong <table width=80% height=80% border=1><tr><td>[url='easter.php?action=huntnorth']Hunt North[/url]</td> <td>[url='easter.php?action=hunteast']Hunt East[/url]</td></tr><tr> <td>[url='easter.php?action=huntsouth']Hunt South[/url]</td> <td>[url='easter.php?action=huntwest']Hunt West[/url]</td></tr>"; } $h->endpage; ?>   Run these SQL: ALTER TABLE `users` ADD `easterhunt` INT(11) NOT NULL DEFAULT '25', ADD `eastertime` INT(11) NOT NULL DEFAULT '0';   Add this to cron_day.php $db->query("UPDATE users SET easterturns = 25"); $db->query("UPDATE users SET eastertime = 0");   Add this to cron_minute.php $db->query("UPDATE users SET eastertime = eastertime - 1 WHERE eastertime > 0");   Create 5 items, and note down their ID's. Where the items are credited in the code, change the ID's to what they are in your game. That should be it. Massive thanks to Haunted Dawg for giving me help when I needed it most. Please give me feedback, go easy on my, its my first mod :P Any errors also post them here, I will try my best to fix them, enjoy! Edited due to some errors, I forgot to fix. Should be working perfect now. Thanks
  22. Okay, I am currently making a mod. Now, I want it, so when the user takes the first go, then the hour starts, but I am currently struggling on how to make that happen. I know what the first thing would be, if{$ir['easterturns']}<=24 but I do not know what would come after this. Would anyone care to help? Thanks.
  23. Re: [McCodes v2]Crystal Temple Advanced It looks a good mod. Very good for your first one. +1
  24. Re: [MCCODES V2] Order an FBI investigation. $10 Not really, I am not interested in purchasing mods atm. I'm looking more at building my own and posting them up for free =D
  25. Re: [MCCODES V2] Order an FBI investigation. $10 I think the question he was asking yesterday or the day before named "This script requires an action" was to do with this. It seems a good mod, but I don't think it would be worth $10.
×
×
  • Create New...