Advertisement
Guest User

Vip Locker

a guest
Mar 19th, 2014
641
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.92 KB | None | 0 0
  1. //this filterscript is made by iThePunisher, Please do not remove credits.
  2. //and give me some reputation in samp forums :)
  3. //you need Zcmd include to work.
  4. #include <a_samp>
  5. #include <Zcmd>
  6.  
  7. #define COLOR_RED 0xAA3333AA
  8. #define DIALOG_VIPWEAPONS 1442
  9. #if defined FILTERSCRIPT
  10.  
  11. public OnFilterScriptInit()
  12. {
  13. print("\n--------------------------------------");
  14. print(" Punishment VipLocker System Loaded");
  15. print("--------------------------------------\n");
  16. return 1;
  17. }
  18.  
  19. public OnFilterScriptExit()
  20. {
  21. return 1;
  22. }
  23.  
  24. #else
  25.  
  26. main()
  27. {
  28. print("\n----------------------------------");
  29. print(" Punishment VipLocker System unLoaded");
  30. print("----------------------------------\n");
  31. }
  32.  
  33. #endif
  34.  
  35. public OnGameModeInit()
  36. {
  37. return 1;
  38. }
  39.  
  40. public OnGameModeExit()
  41. {
  42. return 1;
  43. }
  44.  
  45. public OnPlayerRequestClass(playerid, classid)
  46. {
  47. return 1;
  48. }
  49.  
  50. public OnPlayerConnect(playerid)
  51. {
  52. return 1;
  53. }
  54.  
  55. public OnPlayerDisconnect(playerid, reason)
  56. {
  57. return 1;
  58. }
  59.  
  60. public OnPlayerSpawn(playerid)
  61. {
  62. return 1;
  63. }
  64.  
  65. public OnPlayerDeath(playerid, killerid, reason)
  66. {
  67. return 1;
  68. }
  69.  
  70. public OnVehicleSpawn(vehicleid)
  71. {
  72. return 1;
  73. }
  74.  
  75. CMD:vipweapons(playerid, params[])
  76. {//change isplayerinrangeofpoint to your location that you want to put the vip locker
  77. if(!IsPlayerInRangeOfPoint(playerid, 3.0, 1734.4607, -1659.5483, 20.2420)) return SendClientMessage(playerid,-1, "Error: You're not near the vip Weapons locker.");
  78. //if(PlayerInfo[playerid][dRank] == 3) return SendClientMessage(playerid, COLOR_RED, "Only level 3 vips can get free weapons from Vip Weapons locker"); //change this to make it just for vips
  79. {
  80. ShowPlayerDialog(playerid, DIALOG_VIPWEAPONS, DIALOG_STYLE_LIST, "VIP Weapons Locker", "Deagle{00DF00}(Free)\nShotgun{00DF00}(Free)\nMP5{00DF00}{00DF00}(Free)\nSpas-12{00DF00}(Free)\nAk-47{00DF00}(Free)\nM4{00DF00}(Free)\nSniper{00DF00}(Free)\nFull Heal{00DF00}(Free)\nFull Armour{00DF00}(Free)","Select","Cancel");
  81. }
  82. return 1;
  83. }
  84.  
  85.  
  86.  
  87. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  88. {
  89. if(dialogid == DIALOG_VIPWEAPONS)
  90. {
  91. if(response)
  92. {
  93. switch(listitem)
  94. {
  95. case 0:
  96. {
  97. SendClientMessage(playerid, -1, "You Took Deagle from vip weapons locker");
  98. GivePlayerWeapon(playerid,24, 90);
  99. }
  100. case 1:
  101. {
  102. SendClientMessage(playerid, -1, "You Took Shotgun from vip weapons locker");
  103. GivePlayerWeapon(playerid, 25, 150);
  104. }
  105. case 2:
  106. {
  107. SendClientMessage(playerid, -1, "You Took MP5 from vip weapons locker");
  108. GivePlayerWeapon(playerid, 29 ,150);
  109. }
  110. case 3:
  111. {
  112. SendClientMessage(playerid, -1, "You Took Spas-12 from vip weapons locker");
  113. GivePlayerWeapon(playerid, 27, 120);
  114. }
  115. case 4:
  116. {
  117. SendClientMessage(playerid, -1, "You Took Ak-47 from vip weapons locker");
  118. GivePlayerWeapon(playerid,30 ,150);
  119. }
  120. case 5:
  121. {
  122. SendClientMessage(playerid, -1, "You Took M4 from vip weapons locker");
  123. GivePlayerWeapon(playerid, 31, 150);
  124. }
  125. case 6:
  126. {
  127. SendClientMessage(playerid, -1, "You Took Sniper Rifle from vip weapons locker");
  128. GivePlayerWeapon(playerid, 34, 90);
  129. }
  130. case 7:
  131. {
  132. new Float:heal;
  133. GetPlayerArmour(playerid, heal);
  134. if(heal == 100) return SendClientMessage(playerid, COLOR_RED,"Gun Shop: {FFFFFF}You already have a full heal!");
  135. SendClientMessage(playerid, -1, "You have been healed 100 % from vip weapons locker");
  136. SetPlayerHealth(playerid, 100);
  137. }
  138. case 8:
  139. {
  140. new Float:armour;
  141. GetPlayerArmour(playerid, armour);
  142. if(armour == 100) return SendClientMessage(playerid, COLOR_RED, "Gun Shop: {FFFFFF}You already have a full Armour!");
  143. SendClientMessage(playerid, -1, "You Took Full Armour from vip weapons locker");
  144. SetPlayerArmour(playerid, 90);
  145. }
  146.  
  147. }
  148. return 1;
  149. }
  150. }
  151. return 1;
  152. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement