Advertisement
Guest User

html

a guest
Feb 27th, 2015
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.33 KB | None | 0 0
  1. //OpenID
  2. define("OPENID_MODE", "curl"); // "curl" or "streams" , if nether works contact webhost admin and ask to enable/fix curl
  3.  
  4. //Games
  5. $GAMES = array(
  6. "gmod" => array(
  7. name => "Garry's mod(Ask for parents permission!)",
  8. icon => "icons/gmod.png",
  9. display => true,
  10. servers => array("ttt","darkrp")
  11. )
  12. );
  13.  
  14. //Servers
  15. $SERVERS = array(
  16. "darkrp" => array(
  17. name => "PN - DarkRP",
  18. icon => "icons/gmod.png",
  19. orderfile => "order.php",
  20. packages => array(1,2,3,7)
  21. ),
  22. "ttt" => array(
  23. name => "PN - TTT",
  24. icon => "icons/gmod.png",
  25. orderfile => "order.php",
  26. packages => array(4,6)
  27. )
  28. );
  29.  
  30. //Packages
  31. $PACKAGES = array(
  32. 1 => array(
  33. 'title' => "Donator Rank (BRONZE)",
  34. 'buytitle' => "DarkRP - Bronze",
  35. 'description' => "
  36. <b>Price: <b style=\"color:green;\">$5</b></b>
  37. </br>
  38. <b>Features:</b><br/>
  39. <b>1.</b> Earn 100,000 bonus cash.<br/>
  40. <b>2.</b> Acess to the F.B.I job!<br/>
  41. <b>3.</b> !Votekick and !Jail/JailTP for 120 seconds. <br/>
  42. <br/>
  43. <b style=\"color:red;\">This rank is valid for 30 days and if abused it will be taken away.</b>",
  44. 'price' => 5,
  45. 'execute' => array(
  46. "darkrtp" => array(
  47. 'online' => array(
  48. 0 => array(
  49. array("darkrp_money",100000),
  50. array("broadcast", array(255,0,0) ,"%name% has donated for Donator Rank Bronze!" )
  51. )
  52. ),
  53. 'offline' => array(
  54. 0 => array(
  55. array("cancel", true, "darkrp"),
  56. array("sv_cmd","ulx", "adduserid", "%steamid%", "bronze")
  57. ),
  58. 86400*30 => array(
  59. array("sv_cmd","ulx", "removeuserid", "%steamid%")
  60. )
  61. )
  62. )
  63. ),
  64. 'checkout' => "source.php"
  65. ),
  66. 2 => array(
  67. 'title' => "Dontor Rank (SILVER)",
  68. 'buytitle' => "DarkRP - Silver",
  69. 'description' => "
  70. <b>Price: <b style=\"color:green;\">$10</b></b>
  71. </br>
  72. <b>Features:</b><br/>
  73. <b>1.</b> Earn 250,000 bonus cash! <br/>
  74. <b>2.</b> Acess to the F.B.I, American Sniper, and Master Theif! <br/>
  75. <b>3.</b> !Votekick, !Voteban for 1 Day, !Jail/JailTP for 180 seconds, and !slap <br/>
  76. <b>4.</b> Disciplinary actions! <br/>
  77. <br/>
  78. <b style=\"color:red;\">This rank is valid for 30 days and if abused it will be taken away.</b>",
  79. 'price' => 10,
  80. 'execute' => array(
  81. "darkrp" => array(
  82. 'online' => array(
  83. 0 => array(
  84. array("darkrp_money",250000),
  85. array("broadcast", array(255,0,0) ,"%name% has donated for Donator Rank Silver!" )
  86. )
  87. ),
  88. 'offline' => array(
  89. 0 => array(
  90. array("cancel", true, "darkrp"),
  91. array("sv_cmd","ulx", "adduserid", "%steamid%", "silver")
  92. ),
  93. 86400*30 => array(
  94. array("sv_cmd","ulx", "removeuserid", "%steamid%")
  95. )
  96. )
  97. )
  98. ),
  99. 'checkout' => "source.php"
  100. ),
  101. 3 => array(
  102. 'title' => "Dontor Rank (GOLD)",
  103. 'buytitle' => "DarkRP - Gold",
  104. 'description' => "
  105. <b>Price: <b style=\"color:green;\">$25</b></b>
  106. </br>
  107. <b>Features:</b><br/>
  108. <b>1.</b> Earn 750,000 ingame cash!<br/>
  109. <b>2.</b> Acess to all donator jobs and any more to come!<br/>
  110. <b>3.</b> All powers included in Bronze and Silver ranks.<br/>
  111. <b>4.</b> Ability to create your own job! What you customize?<br/>
  112. <b>5.</b> A custom playermodel from this list: http://forum.darkrp.com/threads/playermodels-list-guide.194/ (Workshop playermodels are DIAMOND only.) <br/>
  113. <b>6.</b> One Primary Weapon (Assault Rifle, Snipers, or Powerful SMGS) <br/>
  114. <b>6.</b> One Secondary Weapon (Pistol or Weak SMG) <br/>
  115. <b>7.</b> Name of job. (Must be appropriate) <br/>
  116. <br/>
  117. <b style=\"color:red;\">WARNING: Privileges are removed for abusive behavior. </b>",
  118. 'price' => 25,
  119. 'execute' => array(
  120. "darkrp" => array(
  121. 'online' => array(
  122. 0 => array(
  123. array("darkrp_money",750000),
  124. array("broadcast", array(255,0,0) ,"%name% has donated for Donator Rank!" )
  125. )
  126. ),
  127. 'offline' => array(
  128. 0 => array(
  129. array("cancel", true, "darkrp"),
  130. array("sv_cmd","ulx", "adduserid", "%steamid%", "gold")
  131. )
  132. )
  133. )
  134. ),
  135. 'checkout' => "source.php"
  136. ),
  137. 7 => array(
  138. 'title' => "Dontor Rank (DIAMOND)",
  139. 'buytitle' => "DarkRP - Diamond",
  140. 'description' => "
  141. <b>Price: <b style=\"color:green;\">$50</b></b>
  142. </br>
  143. <b>Features:</b><br/>
  144. <b>1.</b> Earn 1,250,000 ingame cash!<br/>
  145. <b>2.</b> One M9K Weapon classified as Overpowered (LMGs, Matador, Swords )<br/>
  146. <b>3.</b> A custom playermodel from steam workshop (Must be approved by us.)<br/>
  147. <b>4.</b> Moderator actions!<br/>
  148. <b>5.</b> Reserved slot!<br/>
  149. <b>6.</b> Must visit here after purchasing! http://goo.gl/c28vCa<br/>
  150. <br/>
  151. <b style=\"color:red;\">WARNING: Privileges are removed for abusive behavior.</b>",
  152. 'price' => 50,
  153. 'execute' => array(
  154. "darkrp" => array(
  155. 'online' => array(
  156. 0 => array(
  157. array("darkrp_money",1250000),
  158. array("broadcast", array(255,0,0) ,"%name% has donated for Donator Rank!" )
  159. )
  160. ),
  161. 'offline' => array(
  162. 0 => array(
  163. array("cancel", true, "darkrp"),
  164. array("sv_cmd","ulx", "adduserid", "%steamid%", "diamond")
  165. )
  166. )
  167. )
  168. ),
  169. 'checkout' => "source.php"
  170. ),
  171. 4 => array(
  172. 'title' => "Donator Rank",
  173. 'buytitle' => "TTT - Donator",
  174. 'description' => "
  175. <b>Price: <b style=\"color:green;\">$20</b></b>
  176. </br>
  177. <b>Features:</b><br/>
  178. <b>1.</b> Custom Weapons and Playermodels (Including Nyan Gun!) <br/>
  179. <b>2.</b> 10000 PointShop Points<br/>
  180. <b>3.</b> Donator Chat and Leaderboard Tag<br/>
  181. <b>4.</b> Disciplinary actions<br/>
  182. <br/>
  183. <b style=\"color:green;\">This rank does not expire.</b>",
  184. 'price' => 20,
  185. 'execute' => array(
  186. "ttt" => array(
  187. 'online' => array(
  188. 0 => array(
  189. array("pointshop_points",10000),
  190. array("broadcast", array(255,0,0) ,"%name% has donated for Donator Rank!" )
  191. )
  192. ),
  193. 'offline' => array(
  194. 0 => array(
  195. array("cancel", true, "ttt"),
  196. array("sv_cmd","ulx", "adduserid", "%steamid%", "donator")
  197. )
  198. )
  199. )
  200. ),
  201. 'checkout' => "source.php"
  202. ),
  203. 6 => array(
  204. 'title' => "Donator Mod",
  205. 'buytitle' => "TTT - D-Mod",
  206. 'description' => "
  207. <b>Price: <b style=\"color:green;\">$40</b></b>
  208. </br>
  209. <b>Features:</b><br/>
  210. <b>1.</b> Earn all donator privileges! <br/>
  211. <b>2.</b> Also earn all moderator privileges!<br/>
  212. <br/>
  213. <b style=\"color:green;\">This rank does not expire.</b>",
  214. 'price' => 40,
  215. 'execute' => array(
  216. "ttt" => array(
  217. 'online' => array(
  218. 0 => array(
  219. array("pointshop_points",10000),
  220. array("broadcast", array(255,0,0) ,"%name% has donated for Donator-Mod Rank!" )
  221. )
  222. ),
  223. 'offline' => array(
  224. 0 => array(
  225. array("cancel", true, "ttt"),
  226. array("sv_cmd","ulx", "adduserid", "%steamid%", "dmod")
  227. )
  228. )
  229. )
  230. ),
  231. 'checkout' => "source.php"
  232. )
  233. );
  234.  
  235. // Advanced
  236. function price($pid, $playerid){
  237. global $PACKAGES;
  238. return $PACKAGES[$pid]['price']; // What price should user pay
  239. }
  240. function ipnPriceValidation($pid, $playerid, $price){
  241. global $PACKAGES;
  242. return $PACKAGES[$pid]["price"] == $price; // Check if price valid after payment was done.
  243. }
  244.  
  245. // !!!!! IGNORE !!!!!
  246. if(PAYPAL_SANDBOX){
  247. define("PAYPAL_URL", "https://www.sandbox.paypal.com/cgi-bin/webscr" );
  248. }else{
  249. define("PAYPAL_URL", "https://www.paypal.com/cgi-bin/webscr" );
  250. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement