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...