Jump to content
MakeWebGames

Recommended Posts

Posted

Re: donator packs

Then Goto donator.php

Add:

[b]6th Offer:[/b]<ul>
[*]\$ game money
[*] crystals
[*] IQ, the hardest stat to get in the game!
[*] days Donator Status: Red name + cross next to your name
[*][b]NEW![/b] Friend and Black Lists
[*][b]NEW![/b] 17% Energy every 5 mins instead of 8%[/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="{$set['paypal']}">
<input type="hidden" name="item_name" value="{$domain}|DP|1|{$userid}">
<input type="hidden" name="amount" value="3.00">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="return" value="http://{$domain}/donatordone.php?action=done&type=standard">
<input type="hidden" name="cancel_return" value="http://{$domain}/donatordone.php?action=cancel">
<input type="hidden" name="notify_url" value="http://{$domain}/ipn_donator.php">
<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="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>

 

And Edit All The Blanks With What You Want And Edit Line:

<input type="hidden" name="amount" value="3.00">

 

Edit The Price To What You Want

Posted

Re: donator packs

In staff_special.php Find:

<input type='radio' name='type' value='5' /> Pack 5 (10.00)

 

Add Under :

<input type='radio' name='type' value='6' /> Pack 6 (Price Here)

 

Then Find :

else if($_POST['type']==5)
{
$db->query("UPDATE users u LEFT JOIN userstats us ON u.userid=us.userid SET u.money=u.money+35000,u.crystals=u.crystals+160,
us.IQ=us.IQ+180,u.donatordays=u.donatordays+115 WHERE u.userid={$_POST['user']}");
$d=115;
}

 

Add Under :

else if($_POST['type']==6)
{
$db->query("UPDATE users u LEFT JOIN userstats us ON u.userid=us.userid SET u.money=u.money+35000,u.crystals=u.crystals+160,
us.IQ=us.IQ+180,u.donatordays=u.donatordays+115 WHERE u.userid={$_POST['user']}");
$d=200;
}

 

And Edit Acordingly

Posted

Re: donator packs

Also ipn_donator.php needs to edited to auto credit the user

find:

if( $pack != 1 and $pack != 2 and $pack != 3 and $pack != 4 and $pack != 5) { fclose($fp);die(""); }
if(($pack == 1 || $pack == 2 || $pack == 3) && $payment_amount != "3.00") { fclose ($fp);die(""); }
if($pack == 4 && $payment_amount != "5.00") { fclose ($fp);die(""); }
if($pack == 5 && $payment_amount != "10.00") {fclose ($fp);die(""); }

 

add this right after:

if($pack == 6 && $payment_amount != "Your Price") {fclose ($fp);die(""); }

remember to replace "Your Price" with the price of the pack

then find

else if($pack==5)
{
$db->query("UPDATE users u LEFT JOIN userstats us ON u.userid=us.userid SET u.money=u.money+35000,u.crystals=u.crystals+160,
us.IQ=us.IQ+180,u.donatordays=u.donatordays+115 WHERE u.userid={$for}");
$d=115;
$t="tendollars";
}

 

add this right after:

else if($pack==5)
{
$db->query("UPDATE users u LEFT JOIN userstats us ON u.userid=us.userid SET u.money=u.money+35000,u.crystals=u.crystals+160,
us.IQ=us.IQ+180,u.donatordays=u.donatordays+115 WHERE u.userid={$for}");
$d=115;
$t="tendollars";
}

 

Rplace:

 

u.money=u.money+35000

Rplace the number with the amount of ingame cash the player gets

 

u.crystals=u.crystals+160,

Rplace the number with the amount of crystals the player gets

 

us.IQ=us.IQ+180

Rplace the number with the amount of IQ the player gets

 

u.donatordays=u.donatordays+115

Rplace the number with the amount of donatordays the player gets

 

$d=115;

Rplace the number with the amount of donatordays the player gets

 

$t="tendollars";

Rplace with the price of your pack as a word but leave the dollars in

EX: one, two, three...

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...