Jump to content
MakeWebGames

Dazza

Members
  • Posts

    240
  • Joined

  • Last visited

    Never

Everything posted by Dazza

  1. Re: hospital/header error The class 'headers' has been declared twice i.e do a search for Function headers This is what I think it is, remove one of them and it should work
  2. Been some talk as of late about reducing crons into one file or two. Now, would someone be able to do this for me? I can pay (PM to discuss) as I am new to crons and I assume, timestamps. Ideally Id like all crons into ONE file - Reason for this is because my host has changed their rules to not allowing any cron run less than 15mins apart, if the crons were in one file how often would this need to be run? Any general info would be great too, like why people do this other than the same reason as myself. Thanks
  3. Re: [v2] Donator Only Shop lol @ jimmy, I suggest you read up about the forums before you try and bad mouth me - Fool
  4. Re: [v2] Donator Only Shop   Childish? Grow up? Please explain - Also whats up with that quote? Plus I bet im older than you!
  5. Re: [v2] Donator Only Shop   Meh iv got to give incentive for some members to donate, cant please them all   Your first post is negative, oh how I bet you'll become a vauled member of CE :?
  6. Re: [v2] Donator Only Shop POG1: Yeah I see your point, ill have a look tomorrow and maybe implement a 'Are you sure' system just incase they accidentally click. Yubi: Paypal? What for? My donation is if you love the mod, not expecting it just a kind gesture. Or Donations aka Donators on a game in general?
  7. Re: Weird Situation Does it matter if he isnt displayed? Hes inactive Hes not a NPC or anything or created an account but never logged in? Weird
  8. Hello, Easy mod but I hav'nt posted one yet so hopefully you'll enjoy. I wanted to give my members more reasons to become a Donator so thought a Donator Only Shop would be good, here they can buy items that are not availible to normal members, one idea is they could buy these Special items and sell them for a good mark up to non-donators. Give me a +1 if you like or a donation if you love (paypal address: [email protected]) Should prove useful for your games, enjoy! create a page called donatorshop.php <?php /*////////////////////////////////////////////////////////////// //////// Donator Shop Mod made by Dazza //////// //////// FREE Mod For the CE community NOT TO BE RESOLD //////// //////// Please respect the creator and keep this msg //////// //////// here. It cannot be seen by the public //////// //////// Please +1 Karma the creator //////// //////////////////////////////////////////////////////////////*/ include "globals.php"; if($ir['donatordays'] <1 ) { die ("You need to be a Donator to have access to this"); } else if($ir['donatordays'] >1 ) { print "<h3>Donator Shop</h3> Welcome, this shop is exclusively availible to Donators. You currently have [b]{$cm}[/b] Crystals "; if($_GET['type'] == "") { //This are the items to be displayed print " <table border=0 cellpadding=0 cellspacing=0 width=50%> <table width=50% class='table'><tr><th>Items</th></tr> <tr><td width=50%><center>[url='donatorshop.php?type=Xbox 360 Core']Xbox 360 Core - Buy for 50 Crystals[/url] </center> <tr><td width=50%><center>[url='donatorshop.php?type=Xbox 360 Elite']Xbox 360 Elite - Buy for 100 Crystals[/url] </center> <tr><td width=50%><center>[url='donatorshop.php?type=Playstation 3']Playstation 3 - Buy for 100 Crystals[/url] </center> <tr><td width=50%><center>[url='donatorshop.php?type=Nintendo Wii']Nintendo Wii - Buy for 100 Crystals[/url] </center> <tr><td width=50%><center>[url='donatorshop.php?type=Apple iphone']Apple iphone - Buy for 150 Crystals[/url] </center> <tr><td width=50%><center>[url='donatorshop.php?type=T-shirt']T-shirt - Buy for 200 Crystals[/url] </center> <tr><td width=50%><center>[url='donatorshop.php?type=Vintage Coin Set']Vintage Coin Set - Buy for 100 Crystals[/url] </center></tr>"; print " WARNING - If you click an item, your committed to buy"; } else if($_GET['type'] == "Xbox 360 Core") { if($ir['crystals'] <49) { die("You don't have enough Crystals!"); } else { // Change the crystals-NUMBER to the cost you want. // Remember to change Item Link (Above) and Print statement (Below) // In VALUES, change the number (Currently 193) to the Item ID mysql_query("UPDATE users SET crystals=crystals-50 WHERE userid=$userid",$c); mysql_query("INSERT INTO inventory VALUES('',193,$userid,1)",$c); print "You successfully bought 1 Xbox 360 Core for 50 Crystals, The item was sent to your inventory."; } } else if($_GET['type'] == "Xbox 360 Elite") { if($ir['crystals'] <99) { die("You don't have enough Crystals!"); } else { mysql_query("UPDATE users SET crystals=crystals-100 WHERE userid=$userid",$c); mysql_query("INSERT INTO inventory VALUES('',194,$userid,1)",$c); print "You successfully bought 1 Xbox 360 Elite for 100 Crystals, The item was sent to your inventory."; } } else if($_GET['type'] == "Playstation 3") { if($ir['credits'] <99) { die("You don't have enough Crystals!"); } else { mysql_query("UPDATE users SET crystals=crystals-100 WHERE userid=$userid",$c); mysql_query("INSERT INTO inventory VALUES('',195,$userid,1)",$c); print "You successfully bought 1 Playstation 3 for 100 Crystals, The item was sent to your inventory."; } } else if($_GET['type'] == "Nintendo Wii") { if($ir['credits'] <99) { die("You don't have enough Crystals!"); } else { mysql_query("UPDATE users SET crystals=crystals-100 WHERE userid=$userid",$c); mysql_query("INSERT INTO inventory VALUES('',196,$userid,1)",$c); print "You successfully bought 1 Nintendo Wii for 100 Crystals, The item was sent to your inventory."; } } else if($_GET['type'] == "Apple iphone") { if($ir['credits'] <149) { die("You don't have enough Crystals!"); } else { mysql_query("UPDATE users SET crystals=crystals-150 WHERE userid=$userid",$c); mysql_query("INSERT INTO inventory VALUES('',197,$userid,1)",$c); print "You successfully bought 1 Apple iphone for 150 Crystals, The item was sent to your inventory."; } } else if($_GET['type'] == "T-shirt") { if($ir['credits'] <199) { die("You don't have enough Crystals!"); } else { mysql_query("UPDATE users SET crystals=crystals-200 WHERE userid=$userid",$c); mysql_query("INSERT INTO inventory VALUES('',198,$userid,1)",$c); print "You successfully bought 1 T-shirt for 200 Crystals, The item was sent to your inventory."; } } else if($_GET['type'] == "Vintage Coin Set") { if($ir['credits'] <99) { die("You don't have enough Crystals!"); } else { mysql_query("UPDATE users SET crystals=crystals-100 WHERE userid=$userid",$c); mysql_query("INSERT INTO inventory VALUES('',199,$userid,1)",$c); print "You successfully bought 1 Vintage Coin Set for 100 Crystals, The item was sent to your inventory."; } } } print "</table>"; $h->endpage(); ?> Theres info in the script on how to edit/add bits, just remember to create the items in your staff panel. Add this link to explore: Donator Shop Amend your donator.php page to tell members of the new reason to donate SCREENIES!!!!
  9. Re: [mccode V2] Search Islands I assume you've installed the whole mod now right? Visit the link on your site and see if its working, should be
  10. Re: [mccode V2] Search Islands Hello again Shivski The cron code, go into the cron and you should see other similar querys - Simple pop this underneath on a new line. As for the DB, go into your Cpanel and access phpMyAdmin, select the database and you will see a load of tables on the left and some buttons at the top, click SQL and copy/paste the whole of the code into there and Do/Submit or whatever
  11. Re: [mccode] donator day market for v2   That was constructive.....     :-P
  12. Re: [mccodes v2] Awsome cron help [TIMESTAMP]   Yeah I read the first time and yes it is in the wrong place but I bet it'll get moved - I didnt want to wait so asked my question to him now
  13. Re: [mccodes v2] Awsome cron help [TIMESTAMP] Explain abit more
  14. Re: Cron Errors No probs :-)
  15. Re: MCcodes V2 status mod   Post it then, otherwise your post was pointless
  16. Re: [mccode v2] Factions ORG-CRIME Armoury Just noticed, when someone sends an application and you click Manage Apps it just tells you that your in a faction
  17. Re: mccode lite Search
  18. Re: Announcement table in Lite Stop posting these topics
  19. Re: 2 questions event add & insert item Try adding: event_add($_POST['user'],"You were given $1000 from the administration.",$c); Explain abit more your second question, I didnt understand
  20. Re: Logged in error Yup its to do with the newspaper, Iv had this problem twice in the past.
  21. Re: [mccode V2] Factions ORG-CRIME Armoury Thanks, works like a dream - Another +1
  22. Re: [mccode V2] Factions ORG-CRIME Armoury Just got this when Giving an item from armoury: QUERY ERROR: Unknown column 'inv_lent' in 'field list' Query was INSERT INTO `inventory` (`inv_itemid`, `inv_userid`, `inv_qty`,`inv_lent`) VALUES (173, 1, 1,'0') Will take a look once Im back from the post office
  23. Re: [mccode V2] Factions ORG-CRIME Armoury Well done +1 This is for Factions though, and I have gangs. Other than the name (and file names) is there any difference? I may change over to Factions as opposed to gangs just to have this working mod.
  24. Re: [MCcode v2] Shops item stock - as requested (Not Tested) +1 Thanks very much :-D
  25. Re: [MCcode v2] Shops item stock - as requested (Not Tested) Could someone PM or post the whole code? These many alterations and things that have confused me! Thanks
×
×
  • Create New...