Advertisement
Guest User

Untitled

a guest
Feb 27th, 2015
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.10 KB | None | 0 0
  1. //======= Aces FS este pentru distractie nu de vanzare=======
  2. //======== Teddy Pentru Tine===========================
  3. //==== Y!M alvasy nick Sirvasy =================================
  4. #include <a_samp>
  5. #define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
  6. #define COLOR_DARKGOLD 0x808000AA
  7. #define COLOR_RED 0xFF0000AA
  8. #define COLOR_YELLOW 0xFFFF00AA
  9. #define COLOR_AQUA 0x00FFFFFF
  10. #define COL_GREEN "{6EF83C}"
  11. #define TEAM_AZTECAS_COLOR 0x01FCFFC8
  12. new PompierJob[256];
  13. new info;
  14. forward busroutestoptimer(playerid);
  15. public OnFilterScriptInit()
  16. {
  17. info = CreatePickup(1239,1,1112.0814,-1250.2550,15.9391,-1);
  18. //== Masini =====
  19. AddStaticVehicleEx(407, 1103.3850, -1246.4249, 16.0418, 0.0000, -1, -1, 100);
  20. AddStaticVehicleEx(407, 1095.1766, -1245.9021, 16.0418, 0.0000, -1, -1, 100);
  21. AddStaticVehicleEx(407, 1086.6315, -1246.2279, 16.0418, 0.0000, -1, -1, 100);
  22. AddStaticVehicleEx(407, 1086.6494, -1227.3779, 16.0418, 271.3036, -1, -1, 100);
  23. // ===Cladire Pompieri ======
  24. CreateObject(11008, 1099.30066, -1261.38281, 20.22270, 0.00000, -6.00000, 90.00000);// casa la job Pompier
  25. CreateObject(3255, 1099.55139, -1185.04590, 17.02541, 0.00000, 0.00000, 270.48352);
  26. CreateObject(3643, 1099.36389, -1189.03284, 25.69979, 0.00000, 0.00000, 0.00000);
  27. }
  28. public OnPlayerCommandText(playerid, cmdtext[])
  29. {
  30. if(strcmp("/Pompier", cmdtext, true, 10) == 0)
  31. {
  32. if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 407)
  33. {
  34. PompierJob[playerid] = 1;
  35. new name[MAX_PLAYER_NAME], string[90];
  36. GetPlayerName(playerid, name, sizeof(name));
  37. format(string, sizeof(string), "* %s Este Pompier.", name );
  38. SendClientMessageToAll(COLOR_AQUA, string);
  39. GameTextForPlayer(playerid, "~g~!!~w~Ai inceput sa ~r~Lucrezi~b~Succes~g~!!!...", 2000, 5);
  40. SetPlayerCheckpoint(playerid,1099.0345,-1194.4751,18.1079,4);
  41. GivePlayerWeapon(playerid, 42, 99999);
  42. SendClientMessage(playerid,COLOR_YELLOW,"* Dute Si stinge focul!");
  43. return 1;
  44. }
  45. SendClientMessage(playerid, COLOR_RED,"Doar cu masina de Pompier Incepi jobu!");
  46. }
  47. return 0;
  48. }
  49.  
  50. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  51. {
  52. if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 407)
  53. {
  54. SendClientMessage(playerid, COLOR_RED, "* Tasteaza /pompier ");
  55. }
  56. return 0;
  57. }
  58. public OnPlayerEnterCheckpoint(playerid)
  59. {
  60. if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 407)
  61. {
  62. if(PompierJob[playerid] == 1)
  63. {
  64. PompierJob[playerid] = 2;
  65. SetTimerEx("Descarca", 1000, 0, "i", playerid);
  66. GameTextForPlayer(playerid, "~g~Incarca Apa...", 2000, 5);
  67. SetPlayerCheckpoint(playerid,1099.0345,-1194.4751,18.1079,4);//2
  68. SendClientMessage(playerid,COLOR_AQUA,"* Dute Si stinge focul!");
  69. SetTimerEx("busroutestoptimer", 3000, false, "i", playerid);
  70. TogglePlayerControllable(playerid, 0);
  71. }
  72. else if(PompierJob[playerid] == 2)
  73. {
  74. PompierJob[playerid] = 3;
  75. SetTimerEx("busroutestoptimer", 3000, false, "i", playerid);
  76. TogglePlayerControllable(playerid, 0);
  77. SetPlayerCheckpoint(playerid,2449.0610, -1274.9933, 23.4286,4);//1
  78. SendClientMessage(playerid,COLOR_AQUA,"*Stinge focu si Intoarcete la baza!");
  79. }
  80. else if(PompierJob[playerid] == 3)
  81. {
  82. PompierJob[playerid] = 4;
  83. SetPlayerCheckpoint(playerid,1099.0345,-1194.4751,18.1079,4);//2
  84. GameTextForPlayer(playerid, "~g~Incarca Apa...", 2000, 5);
  85. SendClientMessage(playerid,COLOR_AQUA,"* Dute Si stinge focul!");
  86. SetTimerEx("busroutestoptimer", 3000, false, "i", playerid);
  87. TogglePlayerControllable(playerid, 0);
  88. CreateExplosion(2438.04688, -1271.21838, 23.22764,1,100);
  89. CreateExplosion(2438.04688, -1271.21838, 23.22764,1,100);
  90. CreateExplosion(2438.04688, -1271.21838, 23.22764,1,100);
  91. CreateExplosion(2438.04688, -1271.21838, 23.22764,1,100);
  92. CreateExplosion(2438.04688, -1271.21838, 23.22764,1,100);
  93. CreateExplosion(2438.04688, -1271.21838, 23.22764,1,100);
  94. CreateExplosion(2438.04688, -1271.21838, 23.22764,1,100);
  95. CreateExplosion(2438.04688, -1271.21838, 23.22764,1,100);
  96. CreateExplosion(2438.04688, -1271.21838, 23.22764,1,100);
  97. CreateExplosion(2438.04688, -1271.21838, 23.22764,1,100);
  98.  
  99.  
  100. CreateExplosion(2435.11060, -1270.86462, 23.22764,1,100);
  101. CreateExplosion(2435.11060, -1270.86462, 23.22764,1,100);
  102. CreateExplosion(2435.11060, -1270.86462, 23.22764,1,100);
  103. CreateExplosion(2435.11060, -1270.86462, 23.22764,1,100);
  104. CreateExplosion(2435.11060, -1270.86462, 23.22764,1,100);
  105. CreateExplosion(2435.11060, -1270.86462, 23.22764,1,100);
  106. CreateExplosion(2435.11060, -1270.86462, 23.22764,1,100);
  107. CreateExplosion(2435.11060, -1270.86462, 23.22764,1,100);
  108. CreateExplosion(2435.11060, -1270.86462, 23.22764,1,100);
  109. CreateExplosion(2435.11060, -1270.86462, 23.22764,1,100);
  110.  
  111.  
  112. CreateExplosion(2434.60400, -1274.67651, 23.42864,1,100);
  113. CreateExplosion(2434.60400, -1274.67651, 23.42864,1,100);
  114. CreateExplosion(2434.60400, -1274.67651, 23.42864,1,100);
  115. CreateExplosion(2434.60400, -1274.67651, 23.42864,1,100);
  116. CreateExplosion(2434.60400, -1274.67651, 23.42864,1,100);
  117. CreateExplosion(2434.60400, -1274.67651, 23.42864,1,100);
  118. CreateExplosion(2434.60400, -1274.67651, 23.42864,1,100);
  119. CreateExplosion(2434.60400, -1274.67651, 23.42864,1,100);
  120. CreateExplosion(2434.60400, -1274.67651, 23.42864,1,100);
  121. CreateExplosion(2434.60400, -1274.67651, 23.42864,1,100);
  122.  
  123.  
  124. CreateExplosion(2434.87476, -1278.60217, 23.42864,1,100);
  125. CreateExplosion(2434.87476, -1278.60217, 23.42864,1,100);
  126. CreateExplosion(2434.87476, -1278.60217, 23.42864,1,100);
  127. CreateExplosion(2434.87476, -1278.60217, 23.42864,1,100);
  128. CreateExplosion(2434.87476, -1278.60217, 23.42864,1,100);
  129. CreateExplosion(2434.87476, -1278.60217, 23.42864,1,100);
  130. CreateExplosion(2434.87476, -1278.60217, 23.42864,1,100);
  131. CreateExplosion(2434.87476, -1278.60217, 23.42864,1,100);
  132. CreateExplosion(2434.87476, -1278.60217, 23.42864,1,100);
  133. CreateExplosion(2434.87476, -1278.60217, 23.42864,1,100);
  134.  
  135.  
  136. CreateExplosion(2438.10645, -1279.20044, 23.42864,1,100);
  137. CreateExplosion(2438.10645, -1279.20044, 23.42864,1,100);
  138. CreateExplosion(2438.10645, -1279.20044, 23.42864,1,100);
  139. CreateExplosion(2438.10645, -1279.20044, 23.42864,1,100);
  140. CreateExplosion(2438.10645, -1279.20044, 23.42864,1,100);
  141. CreateExplosion(2438.10645, -1279.20044, 23.42864,1,100);
  142. CreateExplosion(2438.10645, -1279.20044, 23.42864,1,100);
  143. CreateExplosion(2438.10645, -1279.20044, 23.42864,1,100);
  144. CreateExplosion(2438.10645, -1279.20044, 23.42864,1,100);
  145. CreateExplosion(2438.10645, -1279.20044, 23.42864,1,100);
  146.  
  147.  
  148. CreateExplosion(2438.35132, -1275.54395, 23.42864,1,100);
  149. CreateExplosion(2438.35132, -1275.54395, 23.42864,1,100);
  150. CreateExplosion(2438.35132, -1275.54395, 23.42864,1,100);
  151. CreateExplosion(2438.35132, -1275.54395, 23.42864,1,100);
  152. CreateExplosion(2438.35132, -1275.54395, 23.42864,1,100);
  153. CreateExplosion(2438.35132, -1275.54395, 23.42864,1,100);
  154. CreateExplosion(2438.35132, -1275.54395, 23.42864,1,100);
  155. CreateExplosion(2438.35132, -1275.54395, 23.42864,1,100);
  156. CreateExplosion(2438.35132, -1275.54395, 23.42864,1,100);
  157. CreateExplosion(2438.35132, -1275.54395, 23.42864,1,100);
  158.  
  159.  
  160. CreateExplosion(2433.57251, -1269.59546, 23.42864,1,100);
  161. CreateExplosion(2433.57251, -1269.59546, 23.42864,1,100);
  162. CreateExplosion(2433.57251, -1269.59546, 23.42864,1,100);
  163. CreateExplosion(2433.57251, -1269.59546, 23.42864,1,100);
  164. CreateExplosion(2433.57251, -1269.59546, 23.42864,1,100);
  165. CreateExplosion(2433.57251, -1269.59546, 23.42864,1,100);
  166. CreateExplosion(2433.57251, -1269.59546, 23.42864,1,100);
  167. CreateExplosion(2433.57251, -1269.59546, 23.42864,1,100);
  168. CreateExplosion(2433.57251, -1269.59546, 23.42864,1,100);
  169. CreateExplosion(2433.57251, -1269.59546, 23.42864,1,100);
  170. }
  171. else if(PompierJob[playerid] == 4)
  172. {
  173. PompierJob[playerid] = 5;
  174. SetPlayerCheckpoint(playerid,807.4693, -1690.9219, 12.3747,4);//3
  175. SetTimerEx("busroutestoptimer", 3000, false, "i", playerid);
  176. TogglePlayerControllable(playerid, 0);
  177. SendClientMessage(playerid,COLOR_YELLOW,"* Dute stinge focu!");
  178. }
  179. else if(PompierJob[playerid] == 5)
  180. {
  181. PompierJob[playerid] = 6;
  182. SetPlayerCheckpoint(playerid,1099.0345,-1194.4751,18.1079,4);//3
  183. SetTimerEx("busroutestoptimer", 3000, false, "i", playerid);
  184. TogglePlayerControllable(playerid, 0);
  185. SendClientMessage(playerid,COLOR_YELLOW,"*Stinge focu si Intoarcete la baza!");
  186. CreateExplosion(798.45123, -1689.74084, 13.06241,1,100);
  187. CreateExplosion(798.45123, -1689.74084, 13.06241,1,100);
  188. CreateExplosion(798.45123, -1689.74084, 13.06241,1,100);
  189. CreateExplosion(798.45123, -1689.74084, 13.06241,1,100);
  190. CreateExplosion(798.45123, -1689.74084, 13.06241,1,100);
  191. CreateExplosion(798.45123, -1689.74084, 13.06241,1,100);
  192. CreateExplosion(798.45123, -1689.74084, 13.06241,1,100);
  193. CreateExplosion(798.45123, -1689.74084, 13.06241,1,100);
  194. CreateExplosion(798.45123, -1689.74084, 13.06241,1,100);
  195. CreateExplosion(798.45123, -1689.74084, 13.06241,1,100);
  196.  
  197.  
  198. CreateExplosion(794.80164, -1690.99963, 13.78167,1,100);
  199. CreateExplosion(794.80164, -1690.99963, 13.78167,1,100);
  200. CreateExplosion(794.80164, -1690.99963, 13.78167,1,100);
  201. CreateExplosion(794.80164, -1690.99963, 13.78167,1,100);
  202. CreateExplosion(794.80164, -1690.99963, 13.78167,1,100);
  203. CreateExplosion(794.80164, -1690.99963, 13.78167,1,100);
  204. CreateExplosion(794.80164, -1690.99963, 13.78167,1,100);
  205. CreateExplosion(794.80164, -1690.99963, 13.78167,1,100);
  206. CreateExplosion(794.80164, -1690.99963, 13.78167,1,100);
  207. CreateExplosion(794.80164, -1690.99963, 13.78167,1,100);
  208.  
  209.  
  210.  
  211. CreateExplosion(797.27179, -1694.94678, 13.16647,1,100);
  212. CreateExplosion(797.27179, -1694.94678, 13.16647,1,100);
  213. CreateExplosion(797.27179, -1694.94678, 13.16647,1,100);
  214. CreateExplosion(797.27179, -1694.94678, 13.16647,1,100);
  215. CreateExplosion(797.27179, -1694.94678, 13.16647,1,100);
  216. CreateExplosion(797.27179, -1694.94678, 13.16647,1,100);
  217. CreateExplosion(797.27179, -1694.94678, 13.16647,1,100);
  218. CreateExplosion(797.27179, -1694.94678, 13.16647,1,100);
  219. CreateExplosion(797.27179, -1694.94678, 13.16647,1,100);
  220. CreateExplosion(797.27179, -1694.94678, 13.16647,1,100);
  221.  
  222. CreateExplosion(798.41132, -1687.45667, 13.06241,1,100);
  223. CreateExplosion(798.41132, -1687.45667, 13.06241,1,100);
  224. CreateExplosion(798.41132, -1687.45667, 13.06241,1,100);
  225. CreateExplosion(798.41132, -1687.45667, 13.06241,1,100);
  226. CreateExplosion(798.41132, -1687.45667, 13.06241,1,100);
  227. CreateExplosion(798.41132, -1687.45667, 13.06241,1,100);
  228. CreateExplosion(798.41132, -1687.45667, 13.06241,1,100);
  229. CreateExplosion(798.41132, -1687.45667, 13.06241,1,100);
  230. CreateExplosion(798.41132, -1687.45667, 13.06241,1,100);
  231. CreateExplosion(798.41132, -1687.45667, 13.06241,1,100);
  232.  
  233. CreateExplosion(799.21808, -1691.95740, 12.75940,1,100);
  234. CreateExplosion(799.21808, -1691.95740, 12.75940,1,100);
  235. CreateExplosion(799.21808, -1691.95740, 12.75940,1,100);
  236. CreateExplosion(799.21808, -1691.95740, 12.75940,1,100);
  237. CreateExplosion(799.21808, -1691.95740, 12.75940,1,100);
  238. CreateExplosion(799.21808, -1691.95740, 12.75940,1,100);
  239. CreateExplosion(799.21808, -1691.95740, 12.75940,1,100);
  240. CreateExplosion(799.21808, -1691.95740, 12.75940,1,100);
  241. CreateExplosion(799.21808, -1691.95740, 12.75940,1,100);
  242. CreateExplosion(799.21808, -1691.95740, 12.75940,1,100);
  243.  
  244.  
  245. CreateExplosion(797.75031, -1693.45801, 13.06241,1,100);
  246. CreateExplosion(797.75031, -1693.45801, 13.06241,1,100);
  247. CreateExplosion(797.75031, -1693.45801, 13.06241,1,100);
  248. CreateExplosion(797.75031, -1693.45801, 13.06241,1,100);
  249. CreateExplosion(797.75031, -1693.45801, 13.06241,1,100);
  250. CreateExplosion(797.75031, -1693.45801, 13.06241,1,100);
  251. CreateExplosion(797.75031, -1693.45801, 13.06241,1,100);
  252. CreateExplosion(797.75031, -1693.45801, 13.06241,1,100);
  253. CreateExplosion(797.75031, -1693.45801, 13.06241,1,100);
  254. CreateExplosion(797.75031, -1693.45801, 13.06241,1,100);
  255. CreateExplosion(797.75031, -1693.45801, 13.06241,1,100);
  256.  
  257. CreateExplosion(794.52057, -1687.30396, 13.78167,1,100);
  258. CreateExplosion(794.52057, -1687.30396, 13.78167,1,100);
  259. CreateExplosion(794.52057, -1687.30396, 13.78167,1,100);
  260. CreateExplosion(794.52057, -1687.30396, 13.78167,1,100);
  261. CreateExplosion(794.52057, -1687.30396, 13.78167,1,100);
  262. CreateExplosion(794.52057, -1687.30396, 13.78167,1,100);
  263. CreateExplosion(794.52057, -1687.30396, 13.78167,1,100);
  264. CreateExplosion(794.52057, -1687.30396, 13.78167,1,100);
  265. CreateExplosion(794.52057, -1687.30396, 13.78167,1,100);
  266. CreateExplosion(794.52057, -1687.30396, 13.78167,1,100);
  267. }
  268. else if(PompierJob[playerid] == 6)
  269. {
  270. PompierJob[playerid] = 0;
  271. SetPlayerCheckpoint(playerid,1099.0345,-1194.4751,18.1079,4);//40
  272. GameTextForPlayer(playerid, "~g~!!~w~Felicitati ai primit ~r~100~b~k ~g~!!!...", 2000, 5);
  273. GivePlayerCash(playerid, 100000); //You can edit this
  274. SetVehicleToRespawn(GetPlayerVehicleID(playerid));
  275. RemovePlayerFromVehicle(playerid);
  276. DisablePlayerCheckpoint(playerid);
  277. SendClientMessage(playerid,COLOR_AQUA,"* felicitari ai primit 100000 $!");
  278. }
  279. }
  280. return 1;
  281. }
  282. public OnPlayerPickUpPickup(playerid, pickupid)
  283. {
  284. if(pickupid == info)
  285. {
  286. GameTextForPlayer(playerid, "~g~Pompier,~w~Tasteaza din masina ~r~/pompier~w~,Stinge Focurile si castigi ~g~100k", 3000, 3);
  287. }
  288. }
  289. public busroutestoptimer(playerid)
  290. {
  291. if(IsPlayerConnected(playerid))
  292. {
  293. if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 407)
  294. {
  295. TogglePlayerControllable(playerid, 1);
  296. SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "Acum poti sa te misti!");
  297. }
  298. }
  299. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement