-
Posts
103 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by Jigsaw
-
Can you guys suggest me some cheap and affordable domain + hosting deals, I'm on a really limited budget and have to go for the best yet cheapest option, so please if you could can you recommend some hosting providers, thank you. Edit, xHosting Premium is around $72 per year, isit a good service fit for games?
-
I figured it out kyle But can you can crons? Ive also noticed that when installing mods I sometimes get undefined function etc errors for some reason it doesnt recognize mysql and some other stuff causing some mods to not function, but when I installed the same mod without altering it on a live site, it worked perfectly?
-
Sorry sniko I dont have that much money. I mainly just needed the customer vote script anyway
-
If i remember correctly I think cronus had a voting system w/staff panel​, a user rating mod, and a secured forums (ones that i can remember)
-
How do you create a base for practise offline?
-
Still needing thanks
-
Welcome back:cool:
-
Thanks Zettieee
-
Does anyone have copies of Cronus free mods from mccodesmods.com, the website doesn't exist anymore, and I was hoping someone could give me a copy if they have any of his please. I think there was a voting script, a forums and some other stuff. - Thanks all
-
Ive downloaded all your mods sniko, theyve been most helpful but Im in need of alot more
-
mccode-v2 Paypal/donation package creation.
Jigsaw replied to Gungneer's topic in Free Modifications
I own David's ajax donator system and was trying to use that to add into this version but my coding skills are not very good. -
mccode-v2 Paypal/donation package creation.
Jigsaw replied to Gungneer's topic in Free Modifications
Do you mean that I need to create tables within packages sql for the quantities and the item itself separately? -
mccode-v2 Paypal/donation package creation.
Jigsaw replied to Gungneer's topic in Free Modifications
I'm trying to add items to this where the admin can add a maximum of 5 items and the quantity but i'm having trouble? I've added this: Item 1: " . item_dropdown(NULL, 'item1') . " Quantity: <input type='text' name='qty' value='1' /><br /> Item 2: " . item_dropdown(NULL, 'item2') . " Quantity: <input type='text' name='qty' value='1' /><br /> Item 3: " . item_dropdown(NULL, 'item3') . " Quantity: <input type='text' name='qty' value='1' /><br /> Near the add package settings, and added this sql: ALTER TABLE `packages` ADD `item1` INT( 11 ) NOT NULL , ADD `item2` INT( 11 ) NOT NULL , ADD `item3` INT( 11 ) NOT NULL ; Added these: $item1 = abs((int) $_POST['item1']); $item2 = abs((int) $_POST['item2']); $item3 = abs((int) $_POST['item3']); near function add_package() { global $db, $ir, $c, $h, $userid; $money = abs((int) $_POST['money']); $crystals = abs((int) $_POST['crystals']); $iq = abs((int) $_POST['iq']); $ddays = abs((int) $_POST['ddays']); $cost = abs((int) $_POST['cost']); I'm trying to also update the donator.php to view the items, but i'm lost and not sure how to continue -
mccode-v2 Paypal/donation package creation.
Jigsaw replied to Gungneer's topic in Free Modifications
I made this mod alittle bit neater: donator.php <?php include "globals.php"; print <<<EOF <h3>Donations</h3> If you become a donator to {$set['game_name']}, you will receive (each time you donate): EOF; if($db->num_rows($db->query("SELECT id FROM packages")) < 1): echo "<table class=table width=80% cellspacing=1><tr><th>Donator Packages</th></tr><tr><td align=center> Sorry, but there are currently no donator packages in the game yet.</tr></td></table>"; else: $q=$db->query("SELECT * FROM packages WHERE deleted!='1' ORDER BY cost ASC"); while($r=$db->fetch_row($q)): echo "<table class=table width=80% cellspacing=1><tr><th>$r[name]</th><th>Price</th><th>Payment</th></tr> <tr><td width=50% align=center> "; if($r[money] > 0) echo "<li>\$".number_format($r[money])." game money.</li>"; if($r[crystals] > 0) echo "<li>$r[crystals] crystals.</li>"; if($r[iq] > 0) echo "<li>$r[iq] IQ (the hardest stat in the game to increase).</li>"; if($r[ddays] > 0) echo "<li>$r[ddays] Donator Day status: Red name + <img src=../donator.gif /> next to your name.</li>"; echo "<li>17% Energy every 5 minutes instead of 8%. (For the duration of your Donator Day status).</li> <li>Access to Friends and Black lists.</li></td> <td width=10% align=center>\$$r[cost]</td><td width=20% align=center>"; echo '<form action="https://www.paypal.com/cgi-bin/webscr" method="post">'; echo '<input type=hidden name=cmd value=_xclick>'; echo '<input type="hidden" name="business" value="'.$set[paypal].'">'; echo '<input type="hidden" name="item_name" value="'.$domain.'|DP|'.$r[id].'|'.$userid.'">'; echo '<input type="hidden" name="amount" value="'.$r[cost].'.00">'; echo '<input type="hidden" name="no_shipping" value="1">'; echo '<input type="hidden" name="return" value="http://'.$domain.'/donatordone.php?action=done&type=standard">'; echo '<input type="hidden" name="cancel_return" value="http://'.$domain.'/donatordone.php?action=cancel">'; echo '<input type="hidden" name="notify_url" value="http://'.$domain.'/ipn_donator.php">'; echo '<input type="hidden" name="cn" value="Your Player ID">'; echo '<input type="hidden" name="currency_code" value="USD">'; echo '<input type="hidden" name="tax" value="0">'; echo '<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it\'s fast, free and secure!">'; echo '</form></td></tr></table><br />'; endwhile; endif; $h->endpage(); staff_paypal.php <?php // Globals and staff permissions include "sglobals.php"; if($ir['user_level'] > 2) { die("403"); } // End //This contains paypal stuffs switch($_GET['action']) { case 'addpackage': add_package(); break; case 'editpackage': edit_package(); break; case 'delpackage': delete_package(); break; default: print "Error: This script requires an action."; break; } function add_package() { global $db, $ir, $c, $h, $userid; $money = abs((int) $_POST['money']); $crystals = abs((int) $_POST['crystals']); $iq = abs((int) $_POST['iq']); $ddays = abs((int) $_POST['ddays']); $cost = abs((int) $_POST['cost']); $name = $_POST['name']; if($cost > 0 && $name): if($db->num_rows($db->query("SELECT * FROM packages WHERE name='{$name}'"))): echo "You can't have two packages with the same name."; else: $db->query("INSERT INTO packages VALUES(NULL, '$money', '$crystals', '$iq', '$ddays', '$name', '$cost', '0')"); print "Package {$name} added to the game."; stafflog_add("Donation Package $name created"); endif; else: echo "<h3>Add Package</h3> <form action='staff_paypal.php?action=addpackage' method='post'> Name: <input type='text' name='name' /><br /> Money: $<input type='text' name='money' /><br /> Crystals: <input type='text' name='crystals' /><br /> IQ: <input type='text' name='iq' /><br /> Donator Days: <input type='text' name='ddays' /><br /> Cost: $<input type='text' name='cost' /><br /> <input type='submit' value='Add Package' /></form>"; endif; } function edit_package() { global $db, $ir, $c, $h, $userid; $edit = abs((int) $_POST[edit]); $r = $db->fetch_row($db->query("SELECT * FROM packages WHERE id='$edit' LIMIT 1")); if($_POST): if($_POST[id]): $money = abs((int) $_POST['money']); $crystals = abs((int) $_POST['crystals']); $iq = abs((int) $_POST['iq']); $ddays = abs((int) $_POST['ddays']); $cost = abs((int) $_POST['cost']); $id = abs((int) $_POST['id']); $name = $_POST['name']; $db->query("UPDATE packages SET money='$money', crystals='$crystals', iq='$iq', ddays='$ddays', name='$name', cost='$cost' WHERE id='$id' LIMIT 1"); print "Package {$name} edited."; stafflog_add("Donation Package $name edited"); else: echo "<h3>Edit Package</h3> <form action='staff_paypal.php?action=editpackage' method='post'> <input type='hidden' value='$edit' name='id' /> Name: <input type='text' name='name' value='$r[name]' /><br /> Money: $<input type='text' name='money' value='$r[money]' /><br /> Crystals: <input type='text' name='crystals' value='$r[crystals]' /><br /> IQ: <input type='text' name='iq' value='$r[iq]' /><br /> Donator Days: <input type='text' name='ddays' value='$r[ddays]' /><br /> Cost: $<input type='text' name='cost' value='$r[cost]' /><br /> <input type='submit' value='Edit Package' /></form>"; endif; else: $packs = $db->query("SELECT name,cost,id FROM packages WHERE deleted!='1'"); echo "<form action='staff_paypal.php?action=editpackage' method='post'>Package <select name='edit'>"; while($r = $db->fetch_row($packs)): echo "<option value='$r[id]'>$r[name] (\$$r[cost])</option>"; endwhile; echo "</select> <input type='submit' value='Edit Package'></form>"; endif; } function delete_package() { global $db, $ir, $c, $h, $userid; $id = abs((int) $_POST['id']); if($_POST[id]): $db->query("UPDATE packages SET deleted='1' WHERE id='$id' LIMIT 1"); print "Package {$name} deleted."; stafflog_add("Donation Package $name deleted"); else: $packs = $db->query("SELECT name,cost,id FROM packages WHERE deleted!='1'"); echo "<form action='staff_paypal.php?action=delpackage' method='post'>Package <select name='id'>"; while($r = $db->fetch_row($packs)): echo "<option value='$r[id]'>$r[name] (\$$r[cost])</option>"; endwhile; echo "</select> <input type='submit' value='Delete Package'></form>"; endif; } $h->endpage(); ?> -
mccode-v2 Paypal/donation package creation.
Jigsaw replied to Gungneer's topic in Free Modifications
Yh i figured it out, thanks -
mccode-v2 Paypal/donation package creation.
Jigsaw replied to Gungneer's topic in Free Modifications
SQL's don't appear for me? -
Good to see you're still here.
-
Looking forward to it
-
What exactly does this API aim to do?
-
I really wish I had my old computer which was btw was loaded with 500+ plus mods. But unfortunately thats no longer an possible. Zettieee I appreciate the reply but idk if I will have anything that will appeal to you, I have have stuff that would suit noobies to Mccodes :/ However, if you are still interested please send me a PM, thanks
-
I'm very interested, I would love to see this Kyle +1
-
If anyone needs mods, just let me know and i'll send and swap you for whatever I have, however I obviously can't send paid mods (and all credit goes to those who released the mods i'm giving and swapping away for free.)
-
Nice to see people still actively posting mods, thanks NSC +1