DJ Rankin Posted August 12, 2007 Share Posted August 12, 2007 hi how do i make donator packs for mccodes v1 thanks +4 Quote Link to comment Share on other sites More sharing options...
Isomerizer Posted August 13, 2007 Share Posted August 13, 2007 Re: DPS FOR V1 Create a new file called donator.php with the code: (This is my code but shortened right down, Your gonna have to change the email address and stuff) <?php session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); echo <<<EOF <h3><u>Donations</u></h3> <font color=red> (Any donation problems email [email][email protected][/email])</font> [b][[url='buypower.php']Buy 150 Power Bar[/url]][/b] [b][[url='buycrystals.php']Buy 100 Crystals[/url]][/b] <table><tr><td valign=left> If you become a donator to Amazon-Survival, you will receive (each time you donate).... [b]<u>Pack 1 | Cost \$5 USD</u>[/b]<ul> [*]\$10,000 game money [*]25 crystals [*]30 days Donator Status [*]16 Power every 15 mins instead of 8 [*]No Advertisement! [*]Friend and Black Lists [*]Investment Bank [*]Red Name [*]Dollar icon next to name [*]Advanced Search Feature! [*](Donator Days can be Sold for $$$)[/list] <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type=hidden name=cmd value=_xclick> <input type="hidden" name="business" value="[email protected]"> <input type="hidden" name="item_name" value="Amazon-Survival Donation for ($userid) Pack 1"> <input type="hidden" name="amount" value="5.00"> <input type="hidden" name="no_shipping" value="1"> <input type="hidden" name="return" value="http://amazon-survival.com/donatordone.php?action=done&type=1&code=$dccode"> <input type="hidden" name="cancel_return" value="http://amazon-survival.com/donatordone.php?action=cancel"> <input type="hidden" name="cn" value="Your Player ID"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="tax" value="0"> <input type="hidden" name="dccode" value="$dccode"> <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!"> </form> <u>What happens to your donation money?</u> Blah blah Thanks.</td></tr></table> EOF; $h->endpage(); ?> Quote Link to comment Share on other sites More sharing options...
DJ Rankin Posted August 13, 2007 Author Share Posted August 13, 2007 Re: DPS FOR V1 i know how 2 make it like dat i mean in admin panel i find it hard adding stuff Quote Link to comment Share on other sites More sharing options...
Isomerizer Posted August 13, 2007 Share Posted August 13, 2007 Re: DPS FOR V1 Ahh i see i think...? Open admin.php And find: <input type='radio' name='type' value='1' /> Pack 1 (Standard) Under add: <input type='radio' name='type' value='2' /> Pack 2 (Custom) Find if($_POST['type']==1) { Then find the next } Under add: if($_POST['type']==2) { mysql_query("UPDATE users u LEFT JOIN userstats us ON u.userid=us.userid SET u.money=u.money+25000,u.crystals=u.crystals+60, u.donatordays=u.donatordays+60 WHERE u.userid={$_POST['user']}",$c); $d=60; } (change the last code to w/e you want...) Quote Link to comment Share on other sites More sharing options...
SaMz Posted August 13, 2007 Share Posted August 13, 2007 Re: DPS FOR V1 lol making dp's is very simple Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.