Guest User

Fix

a guest
Sep 28th, 2013
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.41 KB | None | 0 0
  1. // This is a comment
  2. // uncomment the line below if you want to write a filterscript
  3. //define filterscript
  4.  
  5. #include <core>
  6. #include <float>
  7. #include <a_samp>
  8. #include <zcmd>
  9. #pragma tabsize 0
  10.  
  11. #define COLOR_WHITE 0xFFFFFFFF
  12. #define COL_GREEN "{6EF83C}"
  13. #define COL_WHITE "{FFFFFF}"
  14. #define COLOR_RED 0xAA3333AA
  15. #define COLOR_GREEN 0x33AA33AA
  16. #define GROVE 1
  17. #define BALLA 2
  18. #define AZTECAS 3
  19. #define AMMUNITION 4
  20. #define SLUT 5
  21. #define BOSS 6
  22. #define VAGOS 7
  23.  
  24. new gPlayerClass[MAX_PLAYERS];
  25. new PickedClass[MAX_PLAYERS];
  26.  
  27. public OnGameModeInit()
  28. {
  29. // Don't use these lines if it's a filterscript
  30. SetGameModeText("Just Testin'");
  31. AddPlayerClass(107,2521.2722,-1678.7083,15.3522,82.8959,31,500,24,999,32,400);
  32. AddPlayerClass(106,2521.2722,-1678.7083,15.3522,82.8959,31,500,24,999,32,400);
  33. AddPlayerClass(105,2521.2722,-1678.7083,15.3522,82.8959,31,500,24,999,32,400);
  34. AddPlayerClass(108,2521.2722,-1678.7083,15.3522,82.8959,37,900,18,2020,30,999);
  35. AddPlayerClass(109,2521.2722,-1678.7083,15.3522,82.8959,37,900,18,2020,30,999);
  36. AddPlayerClass(110,2521.2722,-1678.7083,15.3522,82.8959,37,900,18,2020,30,999);
  37. AddPlayerClass(102,2521.2722,-1678.7083,15.3522,82.8959,22,9999,31,999,30,999);
  38. AddPlayerClass(103,2521.2722,-1678.7083,15.3522,82.8959,27,2700,22,9999,31,999);
  39. AddPlayerClass(104,2521.2722,-1678.7083,15.3522,82.8959,27,2700,22,9999,31,999);
  40. AddPlayerClass(114,2521.2722,-1678.7083,15.3522,82.8959,26,200,23,400,32,999);
  41. AddPlayerClass(115,2521.2722,-1678.7083,15.3522,82.8959,26,200,23,400,32,999);
  42. AddPlayerClass(116,2521.2722,-1678.7083,15.3522,82.8959,26,200,23,400,32,999);
  43. AddPlayerClass(120,2521.2722,-1678.7083,15.3522,82.8959,8,0,31,999,24,999);
  44. AddPlayerClass(179,2521.2722,-1678.7083,15.3522,82.8959,30,500,22,490,29,800);
  45. AddPlayerClass(194,2521.2722,-1678.7083,15.3522,82.8959,10,0,31,2000,30,2000);
  46.  
  47. AddStaticVehicle(447,2529.5759,-1678.2296,19.9419,91.5106,75,2);
  48. AddStaticVehicle(490,2494.3008,-1654.5840,13.5311,249.8709,0,0);
  49. AddStaticVehicle(451,2473.8311,-1700.7242,13.2273,177.6675,125,125);
  50. AddStaticVehicle(522,2528.0742,-1689.7404,13.2581,80.6985,6,25);
  51. AddStaticVehicle(522,2527.1887,-1689.2676,13.2201,63.1784,6,25);
  52. return 1;
  53. }
  54.  
  55. public OnGameModeExit()
  56. {
  57. return 1;
  58. }
  59.  
  60. public OnPlayerRequestClass(playerid, classid)
  61. {
  62. SetPlayerPos(playerid,1679.3407,14.8529,88.2490);
  63. SetPlayerFacingAngle(playerid,88.2490);
  64. SetPlayerCameraPos(playerid,2513.6995,-1675.4047,13.5563);
  65. SetPlayerCameraLookAt(playerid,1679.3407,14.8529,88.2490);
  66. return 1;
  67. }
  68.  
  69. public OnPlayerConnect(playerid)
  70. {
  71. GameTextForPlayer(playerid, "Hello, Welcome to our server, remember to read /rules!",15000,6);
  72. return 1;
  73. }
  74.  
  75. public OnPlayerDisconnect(playerid, reason)
  76. {
  77. return 1;
  78. }
  79.  
  80. public OnPlayerSpawn(playerid)
  81. {
  82. ShowPlayerDialog(playerid, 999, DIALOG_STYLE_LIST, "{6EF83C}Choose A Class:", "nGrove Class/nBalla Class/nVagos Class/nAztecas Class/nSlut Class/nAmmunution class/nBoss Class", "Choose","");
  83.  
  84. if(gPlayerClass[playerid] == GROVE)
  85. {
  86. TogglePlayerControllable(playerid, 1);
  87. ResetPlayerWeapons(playerid);
  88. GivePlayerWeapon(playerid, 31, 1000);//m4
  89. GivePlayerWeapon(playerid, 25, 1000);//mp5
  90. GivePlayerWeapon(playerid, 24, 7000);//deagle
  91. }
  92. else if(gPlayerClass[playerid] == BALLA)//This is for the Second Sniper class.
  93. {
  94. TogglePlayerControllable(playerid, 1);
  95. ResetPlayerWeapons(playerid);
  96. GivePlayerWeapon(playerid, 30, 2250);//sniper
  97. GivePlayerWeapon(playerid, 29, 2250);//mp5
  98. GivePlayerWeapon(playerid, 4, 1);//knife
  99. }
  100. else if(gPlayerClass[playerid] == AZTECAS)//This is for the Second Engineer class.
  101. {
  102. TogglePlayerControllable(playerid, 1);
  103. ResetPlayerWeapons(playerid);
  104. GivePlayerWeapon(playerid, 27, 700);//spas12
  105. GivePlayerWeapon(playerid, 23, 8000);//silent pistol
  106. GivePlayerWeapon(playerid, 30, 2000);//rpg
  107. GivePlayerWeapon(playerid, 16, 5);//grenade
  108. }
  109. else if(gPlayerClass[playerid] == VAGOS)//This is for the Second Jetrooper class.
  110. {
  111. TogglePlayerControllable(playerid, 1);
  112. ResetPlayerWeapons(playerid);
  113. GivePlayerWeapon(playerid, 32, 500);//tec-9
  114. GivePlayerWeapon(playerid, 30, 500);//colt
  115. GivePlayerWeapon(playerid, 25, 200);//knife
  116. }
  117. else if(gPlayerClass[playerid] == SLUT)//This is for the Second Pilot class.
  118. {
  119. TogglePlayerControllable(playerid, 1);
  120. ResetPlayerWeapons(playerid);
  121. GivePlayerWeapon(playerid, 27, 1000);//deagle
  122. GivePlayerWeapon(playerid, 29, 1000);//moltove
  123. GivePlayerWeapon(playerid, 10, 1);//shotgun
  124. }
  125. else if(gPlayerClass[playerid] == AMMUNITION)//This is for the Second Spy class.
  126. {
  127. TogglePlayerControllable(playerid, 1);
  128. ResetPlayerWeapons(playerid);
  129. GivePlayerWeapon(playerid, 29, 990);//mp5
  130. GivePlayerWeapon(playerid, 26, 100);//silent pistol
  131. GivePlayerWeapon(playerid, 4, 1);//knife
  132. GivePlayerWeapon(playerid, 30, 500);//moltove
  133. }
  134. else if(gPlayerClass[playerid] == BOSS)//This is for the Second Spy class.
  135. {
  136. TogglePlayerControllable(playerid, 1);
  137. ResetPlayerWeapons(playerid);
  138. GivePlayerWeapon(playerid, 31, 990);//mp5
  139. GivePlayerWeapon(playerid, 22, 100);//silent pistol
  140. GivePlayerWeapon(playerid, 16, 3);//knife
  141. GivePlayerWeapon(playerid, 32, 500);//moltove
  142. }
  143.  
  144.  
  145. }
  146. CMD:dildo(playerid,params[])
  147. {
  148. if(gPlayerClass[playerid] == SLUT)//if the player is slut
  149. {
  150. SetPlayerHealth(playerid, 80);
  151. }
  152. return 1;
  153. }
  154. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  155. {
  156. if(dialogid == 999)//dialog id response
  157. {
  158. if(response)
  159. {
  160. if(listitem == 0)//the listitem0, defines the number one option of the dialog
  161. {
  162. if(GetPlayerScore(playerid) >= 0)//if player have 0 score then he can choose this class
  163. {
  164. SendClientMessage(playerid, COLOR_WHITE, "You chose the Grove as your class.");
  165. ShowPlayerDialog(playerid, 11, DIALOG_STYLE_MSGBOX, "{6EF83C}Grove Class:", "{F81414}Abilities:\n{FFFFFF}Gang class. Good at shooting.\n\n{F81414}Weapons:\n\n{FFFFFF}M4\n{FFFFFF}Shotgun\n{FFFFFF}Deagle", "Play","");
  166. gPlayerClass[playerid] = GROVE;//setting the class to soldier
  167. PickedClass[playerid] = 1;
  168. SetPlayerVirtualWorld(playerid, 0);
  169. TogglePlayerControllable(playerid, 1);
  170. ResetPlayerWeapons(playerid);
  171. GivePlayerWeapon(playerid, 31, 1000);//m4
  172. GivePlayerWeapon(playerid, 25, 1000);//mp5
  173. GivePlayerWeapon(playerid, 24, 7000);//deagle
  174. }
  175. }
  176.  
  177. if(listitem == 1)//the listitem1, defines the number one option of the dialog
  178. {
  179. if(GetPlayerScore(playerid) >= 0)//if player have 0 score then he can choose this class
  180. {
  181. SendClientMessage(playerid, COLOR_WHITE, "You chose the Balla as your class.");
  182. ShowPlayerDialog(playerid, 11, DIALOG_STYLE_MSGBOX, "{6EF83C}Balla Class:", "{F81414}Abilities:\n{FFFFFF}You're invisible on map.You don't have much foes.Ammunition and slut are your friends.\n\n{F81414}Weapons:\n\n{FFFFFF}AK-47\n{FFFFFF}Mp5\n{FFFFFF}Knife", "Play","");
  183. gPlayerClass[playerid] = BALLA;//setting the class to Sniper
  184. PickedClass[playerid] = 1;
  185. RemovePlayerMapIcon(playerid, 0);
  186. SetPlayerVirtualWorld(playerid, 0);
  187. TogglePlayerControllable(playerid, 1);
  188. ResetPlayerWeapons(playerid);
  189. GivePlayerWeapon(playerid, 30, 2250);//sniper
  190. GivePlayerWeapon(playerid, 29, 2250);//mp5
  191. GivePlayerWeapon(playerid, 4, 1);//knife
  192. }
  193. }
  194.  
  195. if(listitem == 2)//the listitem2, defines the number one option of the dialog
  196. {
  197. if(GetPlayerScore(playerid) >= 0)//if player have 0 score then he can choose this class
  198. {
  199. SendClientMessage(playerid, COLOR_WHITE, "You chose the Aztecas as your class.");
  200. ShowPlayerDialog(playerid, 11, DIALOG_STYLE_MSGBOX, "{6EF83C}Azteca Class:", "{F81414}Abilities:\n{FFFFFF}You fight against BALLAS and VAGOS. They are your only enemies..\n\n{F81414}Weapons:\n\n{FFFFFF}Spas12\n{FFFFFF}Silent Pistol\n{FFFFFF}M4\n{FFFFFF}Grenade", "Play","");
  201. gPlayerClass[playerid] = AZTECAS;//setting the class to engineer
  202. PickedClass[playerid] = 1;
  203. SetPlayerVirtualWorld(playerid, 0);
  204. TogglePlayerControllable(playerid, 1);
  205. ResetPlayerWeapons(playerid);
  206. GivePlayerWeapon(playerid, 27, 700);//spas12
  207. GivePlayerWeapon(playerid, 23, 8000);//silent pistol
  208. GivePlayerWeapon(playerid, 30, 2000);//rpg
  209. GivePlayerWeapon(playerid, 16, 5);//grenade
  210. }
  211. }
  212.  
  213. if(listitem == 3)//the listitem3, defines the number one option of the dialog
  214. {
  215. if(GetPlayerScore(playerid) >= 0)//if player have 0 score then he can choose this class
  216. {
  217. SendClientMessage(playerid, COLOR_WHITE, "You chose the Vagos as your class.");
  218. ShowPlayerDialog(playerid, 11, DIALOG_STYLE_MSGBOX, "{6EF83C}Vagos Class:", "{F81414}Abilities:\n{FFFFFF}Good class if you want to go solo.\n\n{F81414}Weapons:\n\n{FFFFFF}Shotgun\n{FFFFFF}M4\n{FFFFFF}Mp5", "Play","");
  219. gPlayerClass[playerid] = VAGOS;//setting the class to jettrooper
  220. PickedClass[playerid] = 1;
  221. SetPlayerVirtualWorld(playerid, 0);
  222. TogglePlayerControllable(playerid, 1);
  223. ResetPlayerWeapons(playerid);
  224. GivePlayerWeapon(playerid, 32, 500);//tec-9
  225. GivePlayerWeapon(playerid, 30, 500);//colt
  226. GivePlayerWeapon(playerid, 25, 200);//knife
  227. }
  228. }
  229.  
  230. if(listitem == 4)//the listitem4, defines the number one option of the dialog
  231. {
  232. if(GetPlayerScore(playerid) >= 20)//if player have 0 score then he can choose this class
  233. {
  234. SendClientMessage(playerid, COLOR_WHITE, "You chose the Slut as your class.");
  235. ShowPlayerDialog(playerid, 11, DIALOG_STYLE_MSGBOX, "{6EF83C}Slut Class:", "{F81414}Abilities:\n{FFFFFF}Best class: You can heal yourself with /dildo.\n\n{F81414}Weapons:\n\n{FFFFFF}Combat Shotgun\n{FFFFFF}Mp5\n{FFFFFF}Dildo", "Play","");
  236. gPlayerClass[playerid] = SLUT;//setting the class to pilot
  237. PickedClass[playerid] = 1;
  238. SetPlayerVirtualWorld(playerid, 0);
  239. TogglePlayerControllable(playerid, 1);
  240. ResetPlayerWeapons(playerid);
  241. GivePlayerWeapon(playerid, 27, 10000);//deagle
  242. GivePlayerWeapon(playerid, 29, 10000);//moltove
  243. GivePlayerWeapon(playerid, 10, 1);//shotgun
  244. }
  245. }
  246.  
  247. if(listitem == 5)//the listitem5, defines the number one option of the dialog
  248. {
  249. if(GetPlayerScore(playerid) >= 0)//if player have 0 score then he can choose this class
  250. {
  251. SendClientMessage(playerid, COLOR_WHITE, "You chose the Ammunition as your class.");
  252. ShowPlayerDialog(playerid, 11, DIALOG_STYLE_MSGBOX, "{6EF83C}Ammunition Class:", "{F81414}Abilities:\n{FFFFFF}You sell weapons, do you really need a description? /dis\n\n{F81414}Weapons:\n\n{FFFFFF}Sawnoff\n{FFFFFF}Mp5\n{FFFFFF}Knife\n{FFFFFF}AK-47", "Play","");
  253. gPlayerClass[playerid] = AMMUNITION;//setting the class to Spy
  254. PickedClass[playerid] = 1;
  255. SetPlayerVirtualWorld(playerid, 0);
  256. TogglePlayerControllable(playerid, 1);
  257. ResetPlayerWeapons(playerid);
  258. GivePlayerWeapon(playerid, 29, 990);//mp5
  259. GivePlayerWeapon(playerid, 26, 100);//silent pistol
  260. GivePlayerWeapon(playerid, 4, 1);//knife
  261. GivePlayerWeapon(playerid, 30, 500);//moltove
  262. }
  263. }
  264.  
  265. if(listitem == 5)//the listitem5, defines the number one option of the dialog
  266. {
  267. if(GetPlayerScore(playerid) >= 0)//if player have 0 score then he can choose this class
  268. {
  269. SendClientMessage(playerid, COLOR_WHITE, "You chose the Boss as your class.");
  270. ShowPlayerDialog(playerid, 11, DIALOG_STYLE_MSGBOX, "{6EF83C}Boss Class:", "{F81414}Abilities:\n{FFFFFF}You're the boss. You choose your enemies. /dis\n\n{F81414}Weapons:\n\n{FFFFFF}M4\n{FFFFFF}Grenade\n{FFFFFF}Pistol\n{FFFFFF}Molotov", "Play","");
  271. gPlayerClass[playerid] = BOSS;//setting the class to Spy
  272. PickedClass[playerid] = 1;
  273. SetPlayerVirtualWorld(playerid, 0);
  274. TogglePlayerControllable(playerid, 1);
  275. ResetPlayerWeapons(playerid);
  276. GivePlayerWeapon(playerid, 31, 990);//mp5
  277. GivePlayerWeapon(playerid, 22, 100);//silent pistol
  278. GivePlayerWeapon(playerid, 16, 3);//knife
  279. GivePlayerWeapon(playerid, 32, 500);//moltove
  280. }
  281. }
  282. }
  283. }
  284. return 1;
  285. }
Advertisement
Add Comment
Please, Sign In to add comment