Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //OpenID
- define("OPENID_MODE", "curl"); // "curl" or "streams" , if nether works contact webhost admin and ask to enable/fix curl
- //Games
- $GAMES = array(
- "gmod" => array(
- name => "Garry's mod(Ask for parents permission!)",
- icon => "icons/gmod.png",
- display => true,
- servers => array("ttt","darkrp")
- )
- );
- //Servers
- $SERVERS = array(
- "darkrp" => array(
- name => "PN - DarkRP",
- icon => "icons/gmod.png",
- orderfile => "order.php",
- packages => array(1,2,3,7)
- ),
- "ttt" => array(
- name => "PN - TTT",
- icon => "icons/gmod.png",
- orderfile => "order.php",
- packages => array(4,6)
- )
- );
- //Packages
- $PACKAGES = array(
- 1 => array(
- 'title' => "Donator Rank (BRONZE)",
- 'buytitle' => "DarkRP - Bronze",
- 'description' => "
- <b>Price: <b style=\"color:green;\">$5</b></b>
- </br>
- <b>Features:</b><br/>
- <b>1.</b> Earn 100,000 bonus cash.<br/>
- <b>2.</b> Acess to the F.B.I job!<br/>
- <b>3.</b> !Votekick and !Jail/JailTP for 120 seconds. <br/>
- <br/>
- <b style=\"color:red;\">This rank is valid for 30 days and if abused it will be taken away.</b>",
- 'price' => 5,
- 'execute' => array(
- "darkrtp" => array(
- 'online' => array(
- 0 => array(
- array("darkrp_money",100000),
- array("broadcast", array(255,0,0) ,"%name% has donated for Donator Rank Bronze!" )
- )
- ),
- 'offline' => array(
- 0 => array(
- array("cancel", true, "darkrp"),
- array("sv_cmd","ulx", "adduserid", "%steamid%", "bronze")
- ),
- 86400*30 => array(
- array("sv_cmd","ulx", "removeuserid", "%steamid%")
- )
- )
- )
- ),
- 'checkout' => "source.php"
- ),
- 2 => array(
- 'title' => "Dontor Rank (SILVER)",
- 'buytitle' => "DarkRP - Silver",
- 'description' => "
- <b>Price: <b style=\"color:green;\">$10</b></b>
- </br>
- <b>Features:</b><br/>
- <b>1.</b> Earn 250,000 bonus cash! <br/>
- <b>2.</b> Acess to the F.B.I, American Sniper, and Master Theif! <br/>
- <b>3.</b> !Votekick, !Voteban for 1 Day, !Jail/JailTP for 180 seconds, and !slap <br/>
- <b>4.</b> Disciplinary actions! <br/>
- <br/>
- <b style=\"color:red;\">This rank is valid for 30 days and if abused it will be taken away.</b>",
- 'price' => 10,
- 'execute' => array(
- "darkrp" => array(
- 'online' => array(
- 0 => array(
- array("darkrp_money",250000),
- array("broadcast", array(255,0,0) ,"%name% has donated for Donator Rank Silver!" )
- )
- ),
- 'offline' => array(
- 0 => array(
- array("cancel", true, "darkrp"),
- array("sv_cmd","ulx", "adduserid", "%steamid%", "silver")
- ),
- 86400*30 => array(
- array("sv_cmd","ulx", "removeuserid", "%steamid%")
- )
- )
- )
- ),
- 'checkout' => "source.php"
- ),
- 3 => array(
- 'title' => "Dontor Rank (GOLD)",
- 'buytitle' => "DarkRP - Gold",
- 'description' => "
- <b>Price: <b style=\"color:green;\">$25</b></b>
- </br>
- <b>Features:</b><br/>
- <b>1.</b> Earn 750,000 ingame cash!<br/>
- <b>2.</b> Acess to all donator jobs and any more to come!<br/>
- <b>3.</b> All powers included in Bronze and Silver ranks.<br/>
- <b>4.</b> Ability to create your own job! What you customize?<br/>
- <b>5.</b> A custom playermodel from this list: http://forum.darkrp.com/threads/playermodels-list-guide.194/ (Workshop playermodels are DIAMOND only.) <br/>
- <b>6.</b> One Primary Weapon (Assault Rifle, Snipers, or Powerful SMGS) <br/>
- <b>6.</b> One Secondary Weapon (Pistol or Weak SMG) <br/>
- <b>7.</b> Name of job. (Must be appropriate) <br/>
- <br/>
- <b style=\"color:red;\">WARNING: Privileges are removed for abusive behavior. </b>",
- 'price' => 25,
- 'execute' => array(
- "darkrp" => array(
- 'online' => array(
- 0 => array(
- array("darkrp_money",750000),
- array("broadcast", array(255,0,0) ,"%name% has donated for Donator Rank!" )
- )
- ),
- 'offline' => array(
- 0 => array(
- array("cancel", true, "darkrp"),
- array("sv_cmd","ulx", "adduserid", "%steamid%", "gold")
- )
- )
- )
- ),
- 'checkout' => "source.php"
- ),
- 7 => array(
- 'title' => "Dontor Rank (DIAMOND)",
- 'buytitle' => "DarkRP - Diamond",
- 'description' => "
- <b>Price: <b style=\"color:green;\">$50</b></b>
- </br>
- <b>Features:</b><br/>
- <b>1.</b> Earn 1,250,000 ingame cash!<br/>
- <b>2.</b> One M9K Weapon classified as Overpowered (LMGs, Matador, Swords )<br/>
- <b>3.</b> A custom playermodel from steam workshop (Must be approved by us.)<br/>
- <b>4.</b> Moderator actions!<br/>
- <b>5.</b> Reserved slot!<br/>
- <b>6.</b> Must visit here after purchasing! http://goo.gl/c28vCa<br/>
- <br/>
- <b style=\"color:red;\">WARNING: Privileges are removed for abusive behavior.</b>",
- 'price' => 50,
- 'execute' => array(
- "darkrp" => array(
- 'online' => array(
- 0 => array(
- array("darkrp_money",1250000),
- array("broadcast", array(255,0,0) ,"%name% has donated for Donator Rank!" )
- )
- ),
- 'offline' => array(
- 0 => array(
- array("cancel", true, "darkrp"),
- array("sv_cmd","ulx", "adduserid", "%steamid%", "diamond")
- )
- )
- )
- ),
- 'checkout' => "source.php"
- ),
- 4 => array(
- 'title' => "Donator Rank",
- 'buytitle' => "TTT - Donator",
- 'description' => "
- <b>Price: <b style=\"color:green;\">$20</b></b>
- </br>
- <b>Features:</b><br/>
- <b>1.</b> Custom Weapons and Playermodels (Including Nyan Gun!) <br/>
- <b>2.</b> 10000 PointShop Points<br/>
- <b>3.</b> Donator Chat and Leaderboard Tag<br/>
- <b>4.</b> Disciplinary actions<br/>
- <br/>
- <b style=\"color:green;\">This rank does not expire.</b>",
- 'price' => 20,
- 'execute' => array(
- "ttt" => array(
- 'online' => array(
- 0 => array(
- array("pointshop_points",10000),
- array("broadcast", array(255,0,0) ,"%name% has donated for Donator Rank!" )
- )
- ),
- 'offline' => array(
- 0 => array(
- array("cancel", true, "ttt"),
- array("sv_cmd","ulx", "adduserid", "%steamid%", "donator")
- )
- )
- )
- ),
- 'checkout' => "source.php"
- ),
- 6 => array(
- 'title' => "Donator Mod",
- 'buytitle' => "TTT - D-Mod",
- 'description' => "
- <b>Price: <b style=\"color:green;\">$40</b></b>
- </br>
- <b>Features:</b><br/>
- <b>1.</b> Earn all donator privileges! <br/>
- <b>2.</b> Also earn all moderator privileges!<br/>
- <br/>
- <b style=\"color:green;\">This rank does not expire.</b>",
- 'price' => 40,
- 'execute' => array(
- "ttt" => array(
- 'online' => array(
- 0 => array(
- array("pointshop_points",10000),
- array("broadcast", array(255,0,0) ,"%name% has donated for Donator-Mod Rank!" )
- )
- ),
- 'offline' => array(
- 0 => array(
- array("cancel", true, "ttt"),
- array("sv_cmd","ulx", "adduserid", "%steamid%", "dmod")
- )
- )
- )
- ),
- 'checkout' => "source.php"
- )
- );
- // Advanced
- function price($pid, $playerid){
- global $PACKAGES;
- return $PACKAGES[$pid]['price']; // What price should user pay
- }
- function ipnPriceValidation($pid, $playerid, $price){
- global $PACKAGES;
- return $PACKAGES[$pid]["price"] == $price; // Check if price valid after payment was done.
- }
- // !!!!! IGNORE !!!!!
- if(PAYPAL_SANDBOX){
- define("PAYPAL_URL", "https://www.sandbox.paypal.com/cgi-bin/webscr" );
- }else{
- define("PAYPAL_URL", "https://www.paypal.com/cgi-bin/webscr" );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement