Guest User

Untitled

a guest
Sep 30th, 2012
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 32.89 KB | None | 0 0
  1. #define FILTERSCRIPT
  2.  
  3. #include <a_samp>
  4. #include <streamer>
  5.  
  6. #if defined FILTERSCRIPT
  7. #define PRESSED(%0) \
  8. (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
  9.  
  10. #define COLOR_GREEN 0x00FF00FF
  11. #define COLOR_RED 0xFF0000AA
  12.  
  13. new Text:Weapon;
  14. new Text:ninemm;
  15. new Text:Desert;
  16. new Text:Shotgun;
  17. new Text:Sawnoff;
  18. new Text:shotgun;
  19. new Text:Combat;
  20. new Text:MP5;
  21. new Text:AK47;
  22. new Text:M4;
  23. new Text:Country;
  24. new Text:rifle;
  25. new Text:eagle;
  26.  
  27. new Text:Box;
  28. new Text:Pressy;
  29. new Text:Pressn;
  30.  
  31. new Text:Ammo;
  32. new Text:Ammo200;
  33. new Text:Ammo500;
  34. new Text:Ammo700;
  35.  
  36. new Text:Price;
  37. new Text:Price9000;
  38. new Text:Price8000;
  39. new Text:Price7000;
  40. new Text:Price3000;
  41. new Text:Price2000;
  42.  
  43. public OnFilterScriptInit()
  44. {
  45. print("\n--------------------------------------");
  46. print(" Weapon Shop FilterScript by MechaTech");
  47. print("--------------------------------------\n");
  48. return 1;
  49. }
  50.  
  51. public OnFilterScriptExit()
  52. {
  53. return 1;
  54. }
  55.  
  56. #else
  57.  
  58. main()
  59. {
  60. print("\n----------------------------------");
  61. print(" Blank Gamemode by your name here");
  62. print("Tradução: eduardo_holanda\n");
  63. }
  64.  
  65. #endif
  66.  
  67. public OnGameModeInit()
  68. {
  69. CreateDynamicObject(346, 310.69, -163.25, 999.62, 0.00, 0.00, 0.00);
  70. CreateDynamicObject(348, 309.95, -162.45, 999.62, 0.00, 0.00, 90.00);
  71. CreateDynamicObject(349, 311.69, -162.64, 999.62, 0.00, 12.00, 96.00);
  72. CreateDynamicObject(350, 310.10, -161.51, 999.60, 0.00, 4.00, 0.00);
  73. CreateDynamicObject(351, 311.46, -161.44, 999.62, 0.00, 0.00, 186.00);
  74. CreateDynamicObject(353, 314.99, -161.50, 999.64, 0.00, 0.00, 4.00);
  75. CreateDynamicObject(355, 315.92, -162.31, 999.66, 0.00, 0.00, -86.00);
  76. CreateDynamicObject(356, 314.96, -163.18, 999.66, 0.00, 0.00, 4.00);
  77. CreateDynamicObject(357, 314.28, -162.09, 999.62, 0.00, 6.00, -84.00);
  78.  
  79. Weapon = TextDrawCreate(509.000000, 280.000000, "Weapon:");
  80. TextDrawBackgroundColor(Weapon, 255);
  81. TextDrawFont(Weapon, 1);
  82. TextDrawLetterSize(Weapon, 0.470000, 1.700000);
  83. TextDrawColor(Weapon, -16776961);
  84. TextDrawSetOutline(Weapon, 0);
  85. TextDrawSetProportional(Weapon, 1);
  86. TextDrawSetShadow(Weapon, 1);
  87.  
  88. ninemm = TextDrawCreate(579.000000, 281.000000, "9mm");
  89. TextDrawBackgroundColor(ninemm, 255);
  90. TextDrawFont(ninemm, 1);
  91. TextDrawLetterSize(ninemm, 0.470000, 1.700000);
  92. TextDrawColor(ninemm, -1);
  93. TextDrawSetOutline(ninemm, 0);
  94. TextDrawSetProportional(ninemm, 1);
  95. TextDrawSetShadow(ninemm, 1);
  96.  
  97. Desert = TextDrawCreate(579.000000, 281.000000, "Desert");
  98. TextDrawBackgroundColor(Desert, 255);
  99. TextDrawFont(Desert, 1);
  100. TextDrawLetterSize(Desert, 0.470000, 1.700000);
  101. TextDrawColor(Desert, -1);
  102. TextDrawSetOutline(Desert, 0);
  103. TextDrawSetProportional(Desert, 1);
  104. TextDrawSetShadow(Desert, 1);
  105. eagle = TextDrawCreate(510.000000, 299.000000, "eagle");
  106. TextDrawBackgroundColor(eagle, 255);
  107. TextDrawFont(eagle, 1);
  108. TextDrawLetterSize(eagle, 0.470000, 1.700000);
  109. TextDrawColor(eagle, -1);
  110. TextDrawSetOutline(eagle, 0);
  111. TextDrawSetProportional(eagle, 1);
  112. TextDrawSetShadow(eagle, 1);
  113.  
  114. Shotgun = TextDrawCreate(579.000000, 281.000000, "Shotgun");
  115. TextDrawBackgroundColor(Shotgun, 255);
  116. TextDrawFont(Shotgun, 1);
  117. TextDrawLetterSize(Shotgun, 0.470000, 1.700000);
  118. TextDrawColor(Shotgun, -1);
  119. TextDrawSetOutline(Shotgun, 0);
  120. TextDrawSetProportional(Shotgun, 1);
  121. TextDrawSetShadow(Shotgun, 1);
  122.  
  123. Sawnoff = TextDrawCreate(579.000000, 281.000000, "Sawnoff");
  124. TextDrawBackgroundColor(Sawnoff, 255);
  125. TextDrawFont(Sawnoff, 1);
  126. TextDrawLetterSize(Sawnoff, 0.470000, 1.700000);
  127. TextDrawColor(Sawnoff, -1);
  128. TextDrawSetOutline(Sawnoff, 0);
  129. TextDrawSetProportional(Sawnoff, 1);
  130. TextDrawSetShadow(Sawnoff, 1);
  131.  
  132. Combat = TextDrawCreate(579.000000, 281.000000, "Combat");
  133. TextDrawBackgroundColor(Combat, 255);
  134. TextDrawFont(Combat, 1);
  135. TextDrawLetterSize(Combat, 0.470000, 1.700000);
  136. TextDrawColor(Combat, -1);
  137. TextDrawSetOutline(Combat, 0);
  138. TextDrawSetProportional(Combat, 1);
  139. TextDrawSetShadow(Combat, 1);
  140.  
  141. shotgun = TextDrawCreate(510.000000, 299.000000, "shotgun");
  142. TextDrawBackgroundColor(shotgun, 255);
  143. TextDrawFont(shotgun, 1);
  144. TextDrawLetterSize(shotgun, 0.470000, 1.700000);
  145. TextDrawColor(shotgun, -1);
  146. TextDrawSetOutline(shotgun, 0);
  147. TextDrawSetProportional(shotgun, 1);
  148. TextDrawSetShadow(shotgun, 1);
  149.  
  150. MP5 = TextDrawCreate(579.000000, 281.000000, "MP5");
  151. TextDrawBackgroundColor(MP5, 255);
  152. TextDrawFont(MP5, 1);
  153. TextDrawLetterSize(MP5, 0.470000, 1.700000);
  154. TextDrawColor(MP5, -1);
  155. TextDrawSetOutline(MP5, 0);
  156. TextDrawSetProportional(MP5, 1);
  157. TextDrawSetShadow(MP5, 1);
  158.  
  159. M4 = TextDrawCreate(579.000000, 281.000000, "M4");
  160. TextDrawBackgroundColor(M4, 255);
  161. TextDrawFont(M4, 1);
  162. TextDrawLetterSize(M4, 0.470000, 1.700000);
  163. TextDrawColor(M4, -1);
  164. TextDrawSetOutline(M4, 0);
  165. TextDrawSetProportional(M4, 1);
  166. TextDrawSetShadow(M4, 1);
  167.  
  168. AK47 = TextDrawCreate(579.000000, 281.000000, "AK-47");
  169. TextDrawBackgroundColor(AK47, 255);
  170. TextDrawFont(AK47, 1);
  171. TextDrawLetterSize(AK47, 0.470000, 1.700000);
  172. TextDrawColor(AK47, -1);
  173. TextDrawSetOutline(AK47, 0);
  174. TextDrawSetProportional(AK47, 1);
  175. TextDrawSetShadow(AK47, 1);
  176.  
  177. Country = TextDrawCreate(579.000000, 281.000000, "Country");
  178. TextDrawBackgroundColor(Country, 255);
  179. TextDrawFont(Country, 1);
  180. TextDrawLetterSize(Country, 0.470000, 1.700000);
  181. TextDrawColor(Country, -1);
  182. TextDrawSetOutline(Country, 0);
  183. TextDrawSetProportional(Country, 1);
  184. TextDrawSetShadow(Country, 1);
  185. rifle = TextDrawCreate(510.000000, 299.000000, "rifle");
  186. TextDrawBackgroundColor(rifle, 255);
  187. TextDrawFont(rifle, 1);
  188. TextDrawLetterSize(rifle, 0.470000, 1.700000);
  189. TextDrawColor(rifle, -1);
  190. TextDrawSetOutline(rifle, 0);
  191. TextDrawSetProportional(rifle, 1);
  192. TextDrawSetShadow(rifle, 1);
  193.  
  194. Ammo = TextDrawCreate(510.000000, 330.000000, "Ammo:");
  195. TextDrawBackgroundColor(Ammo, 255);
  196. TextDrawFont(Ammo, 1);
  197. TextDrawLetterSize(Ammo, 0.360000, 1.500000);
  198. TextDrawColor(Ammo, 143263999);
  199. TextDrawSetOutline(Ammo, 0);
  200. TextDrawSetProportional(Ammo, 1);
  201. TextDrawSetShadow(Ammo, 1);
  202.  
  203. Price = TextDrawCreate(511.000000, 349.000000, "Price:");
  204. TextDrawBackgroundColor(Price, 255);
  205. TextDrawFont(Price, 1);
  206. TextDrawLetterSize(Price, 0.360000, 1.500000);
  207. TextDrawColor(Price, 143263999);
  208. TextDrawSetOutline(Price, 0);
  209. TextDrawSetProportional(Price, 1);
  210. TextDrawSetShadow(Price, 1);
  211.  
  212. Pressy = TextDrawCreate(498.000000, 389.000000, "Pressione 'Y' para comprar a arma.");
  213. TextDrawBackgroundColor(Pressy, 255);
  214. TextDrawFont(Pressy, 1);
  215. TextDrawLetterSize(Pressy, 0.290000, 1.000000);
  216. TextDrawColor(Pressy, -1);
  217. TextDrawSetOutline(Pressy, 0);
  218. TextDrawSetProportional(Pressy, 1);
  219. TextDrawSetShadow(Pressy, 1);
  220.  
  221. Pressn = TextDrawCreate(498.000000, 402.000000, "Pressione 'N' para cancelar.");
  222. TextDrawBackgroundColor(Pressn, 255);
  223. TextDrawFont(Pressn, 1);
  224. TextDrawLetterSize(Pressn, 0.290000, 1.000000);
  225. TextDrawColor(Pressn, -1);
  226. TextDrawSetOutline(Pressn, 0);
  227. TextDrawSetProportional(Pressn, 1);
  228. TextDrawSetShadow(Pressn, 1);
  229.  
  230. Box = TextDrawCreate(600.000000, 265.000000, " ");
  231. TextDrawAlignment(Box, 2);
  232. TextDrawBackgroundColor(Box, 255);
  233. TextDrawFont(Box, 3);
  234. TextDrawLetterSize(Box, 0.349999, 6.699995);
  235. TextDrawColor(Box, 153);
  236. TextDrawSetOutline(Box, 0);
  237. TextDrawSetProportional(Box, 1);
  238. TextDrawSetShadow(Box, 1);
  239. TextDrawUseBox(Box, 1);
  240. TextDrawBoxColor(Box, 153);
  241. TextDrawTextSize(Box, 45.000000, 212.000000);
  242.  
  243. Ammo500 = TextDrawCreate(555.000000, 330.000000, "500");
  244. TextDrawBackgroundColor(Ammo500, 255);
  245. TextDrawFont(Ammo500, 1);
  246. TextDrawLetterSize(Ammo500, 0.360000, 1.500000);
  247. TextDrawColor(Ammo500, -1);
  248. TextDrawSetOutline(Ammo500, 0);
  249. TextDrawSetProportional(Ammo500, 1);
  250. TextDrawSetShadow(Ammo500, 1);
  251.  
  252. Ammo200 = TextDrawCreate(555.000000, 330.000000, "200");
  253. TextDrawBackgroundColor(Ammo200, 255);
  254. TextDrawFont(Ammo200, 1);
  255. TextDrawLetterSize(Ammo200, 0.360000, 1.500000);
  256. TextDrawColor(Ammo200, -1);
  257. TextDrawSetOutline(Ammo200, 0);
  258. TextDrawSetProportional(Ammo200, 1);
  259. TextDrawSetShadow(Ammo200, 1);
  260.  
  261. Ammo700 = TextDrawCreate(555.000000, 330.000000, "700");
  262. TextDrawBackgroundColor(Ammo700, 255);
  263. TextDrawFont(Ammo700, 1);
  264. TextDrawLetterSize(Ammo700, 0.360000, 1.500000);
  265. TextDrawColor(Ammo700, -1);
  266. TextDrawSetOutline(Ammo700, 0);
  267. TextDrawSetProportional(Ammo700, 1);
  268. TextDrawSetShadow(Ammo700, 1);
  269.  
  270. Price7000 = TextDrawCreate(548.000000, 350.000000, "$7,000");
  271. TextDrawBackgroundColor(Price7000, 255);
  272. TextDrawFont(Price7000, 1);
  273. TextDrawLetterSize(Price7000, 0.360000, 1.500000);
  274. TextDrawColor(Price7000, -1);
  275. TextDrawSetOutline(Price7000, 0);
  276. TextDrawSetProportional(Price7000, 1);
  277. TextDrawSetShadow(Price7000, 1);
  278.  
  279. Price8000 = TextDrawCreate(548.000000, 350.000000, "$8,000");
  280. TextDrawBackgroundColor(Price8000, 255);
  281. TextDrawFont(Price8000, 1);
  282. TextDrawLetterSize(Price8000, 0.360000, 1.500000);
  283. TextDrawColor(Price8000, -1);
  284. TextDrawSetOutline(Price8000, 0);
  285. TextDrawSetProportional(Price8000, 1);
  286. TextDrawSetShadow(Price8000, 1);
  287.  
  288. Price9000 = TextDrawCreate(548.000000, 350.000000, "$9,000");
  289. TextDrawBackgroundColor(Price9000, 255);
  290. TextDrawFont(Price9000, 1);
  291. TextDrawLetterSize(Price9000, 0.360000, 1.500000);
  292. TextDrawColor(Price9000, -1);
  293. TextDrawSetOutline(Price9000, 0);
  294. TextDrawSetProportional(Price9000, 1);
  295. TextDrawSetShadow(Price9000, 1);
  296.  
  297. Price2000 = TextDrawCreate(548.000000, 350.000000, "$2,000");
  298. TextDrawBackgroundColor(Price2000, 255);
  299. TextDrawFont(Price2000, 1);
  300. TextDrawLetterSize(Price2000, 0.360000, 1.500000);
  301. TextDrawColor(Price2000, -1);
  302. TextDrawSetOutline(Price2000, 0);
  303. TextDrawSetProportional(Price2000, 1);
  304. TextDrawSetShadow(Price2000, 1);
  305.  
  306. Price3000 = TextDrawCreate(548.000000, 350.000000, "$3,000");
  307. TextDrawBackgroundColor(Price3000, 255);
  308. TextDrawFont(Price3000, 1);
  309. TextDrawLetterSize(Price3000, 0.360000, 1.500000);
  310. TextDrawColor(Price3000, -1);
  311. TextDrawSetOutline(Price3000, 0);
  312. TextDrawSetProportional(Price3000, 1);
  313. TextDrawSetShadow(Price3000, 1);
  314. return 1;
  315. }
  316.  
  317. public OnGameModeExit()
  318. {
  319. return 1;
  320. }
  321.  
  322. public OnPlayerRequestClass(playerid, classid)
  323. {
  324. return 1;
  325. }
  326.  
  327. public OnPlayerConnect(playerid)
  328. {
  329. PreloadAnimLib(playerid,"INT_SHOP");
  330. RemoveBuildingForPlayer(playerid, 18105, 312.9844, -163.2500, 1000.5547, 0.25);
  331. return 1;
  332. }
  333.  
  334. public OnPlayerDisconnect(playerid, reason)
  335. {
  336. return 1;
  337. }
  338.  
  339. public OnPlayerSpawn(playerid)
  340. {
  341. return 1;
  342. }
  343.  
  344. public OnPlayerDeath(playerid, killerid, reason)
  345. {
  346. return 1;
  347. }
  348.  
  349. public OnVehicleSpawn(vehicleid)
  350. {
  351. return 1;
  352. }
  353.  
  354. public OnVehicleDeath(vehicleid, killerid)
  355. {
  356. return 1;
  357. }
  358.  
  359. public OnPlayerText(playerid, text[])
  360. {
  361. return 1;
  362. }
  363.  
  364. public OnPlayerCommandText(playerid, cmdtext[])
  365. {
  366. if (strcmp("/ammu", cmdtext, true, 5) == 0)
  367. {
  368. SetPlayerInterior(playerid, 6);
  369. SetPlayerPos(playerid, 316.524993,-167.706985,999.593750);
  370. return 1;
  371. }
  372. return 0;
  373. }
  374.  
  375. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  376. {
  377. return 1;
  378. }
  379.  
  380. public OnPlayerExitVehicle(playerid, vehicleid)
  381. {
  382. return 1;
  383. }
  384.  
  385. public OnPlayerStateChange(playerid, newstate, oldstate)
  386. {
  387. return 1;
  388. }
  389.  
  390. public OnPlayerEnterCheckpoint(playerid)
  391. {
  392. return 1;
  393. }
  394.  
  395. public OnPlayerLeaveCheckpoint(playerid)
  396. {
  397. return 1;
  398. }
  399.  
  400. public OnPlayerEnterRaceCheckpoint(playerid)
  401. {
  402. return 1;
  403. }
  404.  
  405. public OnPlayerLeaveRaceCheckpoint(playerid)
  406. {
  407. return 1;
  408. }
  409.  
  410. public OnRconCommand(cmd[])
  411. {
  412. return 1;
  413. }
  414.  
  415. public OnPlayerRequestSpawn(playerid)
  416. {
  417. return 1;
  418. }
  419.  
  420. public OnObjectMoved(objectid)
  421. {
  422. return 1;
  423. }
  424.  
  425. public OnPlayerObjectMoved(playerid, objectid)
  426. {
  427. return 1;
  428. }
  429.  
  430. public OnPlayerPickUpPickup(playerid, pickupid)
  431. {
  432. return 1;
  433. }
  434.  
  435. public OnVehicleMod(playerid, vehicleid, componentid)
  436. {
  437. return 1;
  438. }
  439.  
  440. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  441. {
  442. return 1;
  443. }
  444.  
  445. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  446. {
  447. return 1;
  448. }
  449.  
  450. public OnPlayerSelectedMenuRow(playerid, row)
  451. {
  452. return 1;
  453. }
  454.  
  455. public OnPlayerExitedMenu(playerid)
  456. {
  457. return 1;
  458. }
  459.  
  460. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  461. {
  462. return 1;
  463. }
  464.  
  465. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  466. {
  467. if(IsPlayerInRangeOfPoint(playerid,20.0, 298.3672, -164.2344, 1000.8281))
  468. {
  469. if (PRESSED(KEY_NO))
  470. {
  471. TogglePlayerControllable(playerid,1);
  472. SetCameraBehindPlayer(playerid);
  473. TextDrawHideForPlayer(playerid, Text:Weapon);
  474. TextDrawHideForPlayer(playerid, Text:ninemm);
  475. TextDrawHideForPlayer(playerid, Text:Desert);
  476. TextDrawHideForPlayer(playerid, Text:eagle);
  477. TextDrawHideForPlayer(playerid, Text:Shotgun);
  478. TextDrawHideForPlayer(playerid, Text:Combat);
  479. TextDrawHideForPlayer(playerid, Text:Sawnoff);
  480. TextDrawHideForPlayer(playerid, Text:shotgun);
  481. TextDrawHideForPlayer(playerid, Text:MP5);
  482. TextDrawHideForPlayer(playerid, Text:AK47);
  483. TextDrawHideForPlayer(playerid, Text:M4);
  484. TextDrawHideForPlayer(playerid, Text:Country);
  485. TextDrawHideForPlayer(playerid, Text:rifle);
  486. TextDrawHideForPlayer(playerid, Text:Box);
  487. TextDrawHideForPlayer(playerid, Text:Pressy);
  488. TextDrawHideForPlayer(playerid, Text:Pressn);
  489. TextDrawHideForPlayer(playerid, Text:Ammo);
  490. TextDrawHideForPlayer(playerid, Text:Ammo200);
  491. TextDrawHideForPlayer(playerid, Text:Ammo500);
  492. TextDrawHideForPlayer(playerid, Text:Ammo700);
  493. TextDrawHideForPlayer(playerid, Text:Price);
  494. TextDrawHideForPlayer(playerid, Text:Price9000);
  495. TextDrawHideForPlayer(playerid, Text:Price8000);
  496. TextDrawHideForPlayer(playerid, Text:Price7000);
  497. TextDrawHideForPlayer(playerid, Text:Price2000);
  498. TextDrawHideForPlayer(playerid, Text:Price3000);
  499. new Skin = GetPlayerSkin(playerid);
  500. SetPlayerSkin(playerid, Skin);
  501. }
  502. }
  503.  
  504. if(IsPlayerInRangeOfPoint(playerid,1.0, 310.69, -163.25, 999.62))
  505. {
  506. if (PRESSED(KEY_YES))
  507. {
  508. if(GetPlayerMoney(playerid) < 2000) return SendClientMessage(playerid, COLOR_RED, "Você não tem dinheiro suficiente para comprar a arma.");
  509. TogglePlayerControllable(playerid,1);
  510. SetCameraBehindPlayer(playerid);
  511. TextDrawHideForPlayer(playerid, Text:Weapon);
  512. TextDrawHideForPlayer(playerid, Text:ninemm);
  513. TextDrawHideForPlayer(playerid, Text:Box);
  514. TextDrawHideForPlayer(playerid, Text:Pressy);
  515. TextDrawHideForPlayer(playerid, Text:Pressn);
  516. TextDrawHideForPlayer(playerid, Text:Ammo);
  517. TextDrawHideForPlayer(playerid, Text:Price);
  518. TextDrawHideForPlayer(playerid, Text:Ammo200);
  519. TextDrawHideForPlayer(playerid, Text:Price2000);
  520. SendClientMessage(playerid, COLOR_GREEN, "Você acabou de comprar uma 9mm com 200 munições por $2.000!");
  521. GivePlayerWeapon(playerid, 22, 200);
  522. GivePlayerMoney(playerid, -2000);
  523. new Skin = GetPlayerSkin(playerid);
  524. SetPlayerSkin(playerid, Skin);
  525. }
  526. }
  527. if (PRESSED(KEY_SECONDARY_ATTACK))
  528. {
  529. if(IsPlayerInRangeOfPoint(playerid,1.0, 310.69, -163.25, 999.62))
  530. {
  531. TogglePlayerControllable(playerid,0);
  532. ApplyAnimation(playerid,"INT_SHOP","shop_lookB",4.1,1,1,1,1,1,1);
  533. TextDrawShowForPlayer(playerid, Text:Weapon);
  534. TextDrawShowForPlayer(playerid, Text:ninemm);
  535. TextDrawShowForPlayer(playerid, Text:Box);
  536. TextDrawShowForPlayer(playerid, Text:Pressy);
  537. TextDrawShowForPlayer(playerid, Text:Pressn);
  538. TextDrawShowForPlayer(playerid, Text:Ammo);
  539. TextDrawShowForPlayer(playerid, Text:Price);
  540. TextDrawShowForPlayer(playerid, Text:Ammo200);
  541. TextDrawShowForPlayer(playerid, Text:Price2000);
  542. SetPlayerCameraPos(playerid, 312.7308, -164.2786, 1000.1425);
  543. SetPlayerCameraLookAt(playerid, 309.7611, -162.7127, 999.5625);
  544. }
  545. }
  546.  
  547. if(IsPlayerInRangeOfPoint(playerid,1.0, 309.9547, -162.4500, 999.6200))
  548. {
  549. if (PRESSED(KEY_YES))
  550. {
  551. if(GetPlayerMoney(playerid) < 3000) return SendClientMessage(playerid, COLOR_RED, "Você não tem dinheiro suficiente para comprar a arma.");
  552. TogglePlayerControllable(playerid,1);
  553. SetCameraBehindPlayer(playerid);
  554. TextDrawHideForPlayer(playerid, Text:Weapon);
  555. TextDrawHideForPlayer(playerid, Text:Desert);
  556. TextDrawHideForPlayer(playerid, Text:eagle);
  557. TextDrawHideForPlayer(playerid, Text:Box);
  558. TextDrawHideForPlayer(playerid, Text:Pressy);
  559. TextDrawHideForPlayer(playerid, Text:Pressn);
  560. TextDrawHideForPlayer(playerid, Text:Ammo);
  561. TextDrawHideForPlayer(playerid, Text:Price);
  562. TextDrawHideForPlayer(playerid, Text:Ammo200);
  563. TextDrawHideForPlayer(playerid, Text:Price3000);
  564. SendClientMessage(playerid, COLOR_GREEN, "Você acabou de comprar uma Desert Eagle com 200 munições por $3.000!");
  565. GivePlayerWeapon(playerid, 24, 200);
  566. GivePlayerMoney(playerid, -3000);
  567. new Skin = GetPlayerSkin(playerid);
  568. SetPlayerSkin(playerid, Skin);
  569. }
  570. }
  571. if (PRESSED(KEY_SECONDARY_ATTACK))
  572. {
  573. if(IsPlayerInRangeOfPoint(playerid,1.0, 309.9547, -162.4500, 999.6200))
  574. {
  575. TogglePlayerControllable(playerid,0);
  576. ApplyAnimation(playerid,"INT_SHOP","shop_lookB",4.1,1,1,1,1,1,1);
  577. TextDrawShowForPlayer(playerid, Text:Weapon);
  578. TextDrawShowForPlayer(playerid, Text:Desert);
  579. TextDrawShowForPlayer(playerid, Text:eagle);
  580. TextDrawShowForPlayer(playerid, Text:Box);
  581. TextDrawShowForPlayer(playerid, Text:Pressy);
  582. TextDrawShowForPlayer(playerid, Text:Pressn);
  583. TextDrawShowForPlayer(playerid, Text:Ammo);
  584. TextDrawShowForPlayer(playerid, Text:Price);
  585. TextDrawShowForPlayer(playerid, Text:Ammo200);
  586. TextDrawShowForPlayer(playerid, Text:Price3000);
  587. SetPlayerCameraPos(playerid, 309.4929, -164.2428, 1000.1425);
  588. SetPlayerCameraLookAt(playerid, 309.6281, -162.3687, 999.5625);
  589. }
  590. }
  591.  
  592. if(IsPlayerInRangeOfPoint(playerid,1.0, 311.69, -162.64, 999.62))
  593. {
  594. if (PRESSED(KEY_YES))
  595. {
  596. if(GetPlayerMoney(playerid) < 7000) return SendClientMessage(playerid, COLOR_RED, "Você não tem dinheiro suficiente para comprar a arma.");
  597. TogglePlayerControllable(playerid,1);
  598. SetCameraBehindPlayer(playerid);
  599. TextDrawHideForPlayer(playerid, Text:Weapon);
  600. TextDrawHideForPlayer(playerid, Text:Shotgun);
  601. TextDrawHideForPlayer(playerid, Text:Box);
  602. TextDrawHideForPlayer(playerid, Text:Pressy);
  603. TextDrawHideForPlayer(playerid, Text:Pressn);
  604. TextDrawHideForPlayer(playerid, Text:Ammo);
  605. TextDrawHideForPlayer(playerid, Text:Price);
  606. TextDrawHideForPlayer(playerid, Text:Ammo200);
  607. TextDrawHideForPlayer(playerid, Text:Price7000);
  608. SendClientMessage(playerid, COLOR_GREEN, "Você acabou de comprar uma espingarda com munição 200 por $7.000!");
  609. GivePlayerWeapon(playerid, 25, 200);
  610. GivePlayerMoney(playerid, -7000);
  611. new Skin = GetPlayerSkin(playerid);
  612. SetPlayerSkin(playerid, Skin);
  613. }
  614. }
  615. if (PRESSED(KEY_SECONDARY_ATTACK))
  616. {
  617. if(IsPlayerInRangeOfPoint(playerid,1.0, 311.69, -162.64, 999.62))
  618. {
  619. TogglePlayerControllable(playerid,0);
  620. ApplyAnimation(playerid,"INT_SHOP","shop_lookB",4.1,1,1,1,1,1,1);
  621. TextDrawShowForPlayer(playerid, Text:Weapon);
  622. TextDrawShowForPlayer(playerid, Text:Shotgun);
  623. TextDrawShowForPlayer(playerid, Text:Box);
  624. TextDrawShowForPlayer(playerid, Text:Pressy);
  625. TextDrawShowForPlayer(playerid, Text:Pressn);
  626. TextDrawShowForPlayer(playerid, Text:Ammo);
  627. TextDrawShowForPlayer(playerid, Text:Price);
  628. TextDrawShowForPlayer(playerid, Text:Ammo200);
  629. TextDrawShowForPlayer(playerid, Text:Price7000);
  630. SetPlayerCameraPos(playerid, 311.9360, -160.4641, 1000.1425);
  631. SetPlayerCameraLookAt(playerid, 311.5432, -162.4070, 999.5625);
  632.  
  633. }
  634. }
  635.  
  636. if(IsPlayerInRangeOfPoint(playerid,1.0, 310.10, -161.51, 999.60))
  637. {
  638. if (PRESSED(KEY_YES))
  639. {
  640. if(GetPlayerMoney(playerid) < 9000) return SendClientMessage(playerid, COLOR_RED, "Você não tem dinheiro suficiente para comprar a arma.");
  641. TogglePlayerControllable(playerid,1);
  642. SetCameraBehindPlayer(playerid);
  643. TextDrawHideForPlayer(playerid, Text:Weapon);
  644. TextDrawHideForPlayer(playerid, Text:Sawnoff);
  645. TextDrawHideForPlayer(playerid, Text:shotgun);
  646. TextDrawHideForPlayer(playerid, Text:Box);
  647. TextDrawHideForPlayer(playerid, Text:Pressy);
  648. TextDrawHideForPlayer(playerid, Text:Pressn);
  649. TextDrawHideForPlayer(playerid, Text:Ammo);
  650. TextDrawHideForPlayer(playerid, Text:Price);
  651. TextDrawHideForPlayer(playerid, Text:Ammo200);
  652. TextDrawHideForPlayer(playerid, Text:Price9000);
  653. SendClientMessage(playerid, COLOR_GREEN, "Você acabou de comprar uma espingarda serrada Off com 200 munições por $9.000 ");
  654. GivePlayerWeapon(playerid, 26, 200);
  655. GivePlayerMoney(playerid, -9000);
  656. new Skin = GetPlayerSkin(playerid);
  657. SetPlayerSkin(playerid, Skin);
  658. }
  659. }
  660. if (PRESSED(KEY_SECONDARY_ATTACK))
  661. {
  662. if(IsPlayerInRangeOfPoint(playerid,1.0, 310.10, -161.51, 999.60))
  663. {
  664. TogglePlayerControllable(playerid,0);
  665. ApplyAnimation(playerid,"INT_SHOP","shop_lookB",4.1,1,1,1,1,1,1);
  666. TextDrawShowForPlayer(playerid, Text:Weapon);
  667. TextDrawShowForPlayer(playerid, Text:Sawnoff);
  668. TextDrawShowForPlayer(playerid, Text:shotgun);
  669. TextDrawShowForPlayer(playerid, Text:Box);
  670. TextDrawShowForPlayer(playerid, Text:Pressy);
  671. TextDrawShowForPlayer(playerid, Text:Pressn);
  672. TextDrawShowForPlayer(playerid, Text:Ammo);
  673. TextDrawShowForPlayer(playerid, Text:Price);
  674. TextDrawShowForPlayer(playerid, Text:Ammo200);
  675. TextDrawShowForPlayer(playerid, Text:Price9000);
  676. SetPlayerCameraPos(playerid, 308.0452, -161.1160, 1000.1425);
  677. SetPlayerCameraLookAt(playerid, 310.0738, -161.4842, 999.5625);
  678.  
  679. }
  680. }
  681.  
  682. if(IsPlayerInRangeOfPoint(playerid,1.0, 311.46, -161.44, 999.62))
  683. {
  684. if (PRESSED(KEY_YES))
  685. {
  686. if(GetPlayerMoney(playerid) < 8000) return SendClientMessage(playerid, COLOR_RED, "Você não tem dinheiro suficiente para comprar a arma.");
  687. TogglePlayerControllable(playerid,1);
  688. SetCameraBehindPlayer(playerid);
  689. TextDrawHideForPlayer(playerid, Text:Weapon);
  690. TextDrawHideForPlayer(playerid, Text:shotgun);
  691. TextDrawHideForPlayer(playerid, Text:Combat);
  692. TextDrawHideForPlayer(playerid, Text:Box);
  693. TextDrawHideForPlayer(playerid, Text:Pressy);
  694. TextDrawHideForPlayer(playerid, Text:Pressn);
  695. TextDrawHideForPlayer(playerid, Text:Ammo);
  696. TextDrawHideForPlayer(playerid, Text:Price);
  697. TextDrawHideForPlayer(playerid, Text:Ammo200);
  698. TextDrawHideForPlayer(playerid, Text:Price8000);
  699. SendClientMessage(playerid, COLOR_GREEN, "Você acabou de comprar uma espingarda de Combate com 200 munições por $8.000!");
  700. GivePlayerWeapon(playerid, 27, 200);
  701. GivePlayerMoney(playerid, -8000);
  702. new Skin = GetPlayerSkin(playerid);
  703. SetPlayerSkin(playerid, Skin);
  704. }
  705. }
  706. if (PRESSED(KEY_SECONDARY_ATTACK))
  707. {
  708. if(IsPlayerInRangeOfPoint(playerid,1.0, 311.46, -161.44, 999.62))
  709. {
  710. TogglePlayerControllable(playerid,0);
  711. ApplyAnimation(playerid,"INT_SHOP","shop_lookB",4.1,1,1,1,1,1,1);
  712. TextDrawShowForPlayer(playerid, Text:Weapon);
  713. TextDrawShowForPlayer(playerid, Text:shotgun);
  714. TextDrawShowForPlayer(playerid, Text:Combat);
  715. TextDrawShowForPlayer(playerid, Text:Box);
  716. TextDrawShowForPlayer(playerid, Text:Pressy);
  717. TextDrawShowForPlayer(playerid, Text:Pressn);
  718. TextDrawShowForPlayer(playerid, Text:Ammo);
  719. TextDrawShowForPlayer(playerid, Text:Price);
  720. TextDrawShowForPlayer(playerid, Text:Ammo200);
  721. TextDrawShowForPlayer(playerid, Text:Price8000);
  722. SetPlayerCameraPos(playerid, 312.6877, -161.2530, 1000.1425);
  723. SetPlayerCameraLookAt(playerid, 311.0968, -161.5094, 999.5625);
  724. }
  725. }
  726.  
  727. if(IsPlayerInRangeOfPoint(playerid,1.0, 314.99, -161.50, 999.64))
  728. {
  729. if (PRESSED(KEY_YES))
  730. {
  731. if(GetPlayerMoney(playerid) < 7000) return SendClientMessage(playerid, COLOR_RED, "Você não tem dinheiro suficiente para comprar a arma.");
  732. TogglePlayerControllable(playerid,1);
  733. SetCameraBehindPlayer(playerid);
  734. TextDrawHideForPlayer(playerid, Text:Weapon);
  735. TextDrawHideForPlayer(playerid, Text:MP5);
  736. TextDrawHideForPlayer(playerid, Text:Box);
  737. TextDrawHideForPlayer(playerid, Text:Pressy);
  738. TextDrawHideForPlayer(playerid, Text:Pressn);
  739. TextDrawHideForPlayer(playerid, Text:Ammo);
  740. TextDrawHideForPlayer(playerid, Text:Price);
  741. TextDrawHideForPlayer(playerid, Text:Ammo700);
  742. TextDrawHideForPlayer(playerid, Text:Price7000);
  743. SendClientMessage(playerid, COLOR_GREEN, "Você acabou de comprar um MP5 com 700 munições por $7,000!");
  744. GivePlayerWeapon(playerid, 29, 700);
  745. GivePlayerMoney(playerid, -7000);
  746. new Skin = GetPlayerSkin(playerid);
  747. SetPlayerSkin(playerid, Skin);
  748. }
  749. }
  750. if (PRESSED(KEY_SECONDARY_ATTACK))
  751. {
  752. if(IsPlayerInRangeOfPoint(playerid,1.0, 314.99, -161.50, 999.64))
  753. {
  754. TogglePlayerControllable(playerid,0);
  755. ApplyAnimation(playerid,"INT_SHOP","shop_lookB",4.1,1,1,1,1,1,1);
  756. TextDrawShowForPlayer(playerid, Text:Weapon);
  757. TextDrawShowForPlayer(playerid, Text:MP5);
  758. TextDrawShowForPlayer(playerid, Text:Box);
  759. TextDrawShowForPlayer(playerid, Text:Pressy);
  760. TextDrawShowForPlayer(playerid, Text:Pressn);
  761. TextDrawShowForPlayer(playerid, Text:Ammo);
  762. TextDrawShowForPlayer(playerid, Text:Price);
  763. TextDrawShowForPlayer(playerid, Text:Ammo700);
  764. TextDrawShowForPlayer(playerid, Text:Price7000);
  765. SetPlayerCameraPos(playerid, 313.2165, -161.2382, 1000.1425);
  766. SetPlayerCameraLookAt(playerid, 314.9025, -161.4821, 999.5625);
  767. }
  768. }
  769.  
  770. if(IsPlayerInRangeOfPoint(playerid,1.0, 315.92, -162.31, 999.66))
  771. {
  772. if (PRESSED(KEY_YES))
  773. {
  774. if(GetPlayerMoney(playerid) < 7000) return SendClientMessage(playerid, COLOR_RED, "Você não tem dinheiro suficiente para comprar a arma.");
  775. TogglePlayerControllable(playerid,1);
  776. SetCameraBehindPlayer(playerid);
  777. TextDrawHideForPlayer(playerid, Text:Weapon);
  778. TextDrawHideForPlayer(playerid, Text:AK47);
  779. TextDrawHideForPlayer(playerid, Text:Box);
  780. TextDrawHideForPlayer(playerid, Text:Pressy);
  781. TextDrawHideForPlayer(playerid, Text:Pressn);
  782. TextDrawHideForPlayer(playerid, Text:Ammo);
  783. TextDrawHideForPlayer(playerid, Text:Price);
  784. TextDrawHideForPlayer(playerid, Text:Ammo500);
  785. TextDrawHideForPlayer(playerid, Text:Price7000);
  786. SendClientMessage(playerid, COLOR_GREEN, "Você acabou de comprar um AK-47 com 500 munições por $7.000!");
  787. GivePlayerWeapon(playerid, 30, 500);
  788. GivePlayerMoney(playerid, -7000);
  789. new Skin = GetPlayerSkin(playerid);
  790. SetPlayerSkin(playerid, Skin);
  791. }
  792. }
  793. if (PRESSED(KEY_SECONDARY_ATTACK))
  794. {
  795. if(IsPlayerInRangeOfPoint(playerid,1.0, 315.92, -162.31, 999.66))
  796. {
  797. TogglePlayerControllable(playerid,0);
  798. ApplyAnimation(playerid,"INT_SHOP","shop_lookB",4.1,1,1,1,1,1,1);
  799. TextDrawShowForPlayer(playerid, Text:Weapon);
  800. TextDrawShowForPlayer(playerid, Text:AK47);
  801. TextDrawShowForPlayer(playerid, Text:Box);
  802. TextDrawShowForPlayer(playerid, Text:Pressy);
  803. TextDrawShowForPlayer(playerid, Text:Pressn);
  804. TextDrawShowForPlayer(playerid, Text:Ammo);
  805. TextDrawShowForPlayer(playerid, Text:Price);
  806. TextDrawShowForPlayer(playerid, Text:Ammo500);
  807. TextDrawShowForPlayer(playerid, Text:Price7000);
  808. SetPlayerCameraPos(playerid, 316.7339, -160.9307, 1000.1425);
  809. SetPlayerCameraLookAt(playerid, 315.8018, -162.3379, 999.5625);
  810. }
  811. }
  812.  
  813. if(IsPlayerInRangeOfPoint(playerid,1.0, 314.96, -163.18, 999.66))
  814. {
  815. if (PRESSED(KEY_YES))
  816. {
  817. if(GetPlayerMoney(playerid) < 8000) return SendClientMessage(playerid, COLOR_RED, "Você não tem dinheiro suficiente para comprar a arma.");
  818. TogglePlayerControllable(playerid,1);
  819. SetCameraBehindPlayer(playerid);
  820. TextDrawHideForPlayer(playerid, Text:Weapon);
  821. TextDrawHideForPlayer(playerid, Text:M4);
  822. TextDrawHideForPlayer(playerid, Text:Box);
  823. TextDrawHideForPlayer(playerid, Text:Pressy);
  824. TextDrawHideForPlayer(playerid, Text:Pressn);
  825. TextDrawHideForPlayer(playerid, Text:Ammo);
  826. TextDrawHideForPlayer(playerid, Text:Price);
  827. TextDrawHideForPlayer(playerid, Text:Ammo500);
  828. TextDrawHideForPlayer(playerid, Text:Price8000);
  829. SendClientMessage(playerid, COLOR_GREEN, "Você acabou de comprar uma M4 com 500 munições por $8,000!");
  830. GivePlayerWeapon(playerid, 31, 500);
  831. GivePlayerMoney(playerid, -8000);
  832. new Skin = GetPlayerSkin(playerid);
  833. SetPlayerSkin(playerid, Skin);
  834. }
  835. }
  836. if (PRESSED(KEY_SECONDARY_ATTACK))
  837. {
  838. if(IsPlayerInRangeOfPoint(playerid,1.0, 314.96, -163.18, 999.66))
  839. {
  840. TogglePlayerControllable(playerid,0);
  841. ApplyAnimation(playerid,"INT_SHOP","shop_lookB",4.1,1,1,1,1,1,1);
  842. TextDrawShowForPlayer(playerid, Text:Weapon);
  843. TextDrawShowForPlayer(playerid, Text:M4);
  844. TextDrawShowForPlayer(playerid, Text:Box);
  845. TextDrawShowForPlayer(playerid, Text:Pressy);
  846. TextDrawShowForPlayer(playerid, Text:Pressn);
  847. TextDrawShowForPlayer(playerid, Text:Ammo);
  848. TextDrawShowForPlayer(playerid, Text:Price);
  849. TextDrawShowForPlayer(playerid, Text:Ammo500);
  850. TextDrawShowForPlayer(playerid, Text:Price8000);
  851. SetPlayerCameraPos(playerid, 316.6595, -163.8956, 1000.1425);
  852. SetPlayerCameraLookAt(playerid, 314.9826, -163.2139, 999.5625);
  853. }
  854. }
  855.  
  856. if(IsPlayerInRangeOfPoint(playerid,1.0, 314.28, -162.09, 999.62))
  857. {
  858. if (PRESSED(KEY_YES))
  859. {
  860. if(GetPlayerMoney(playerid) < 8000) return SendClientMessage(playerid, COLOR_RED, "Você não tem dinheiro suficiente para comprar a arma.");
  861. TogglePlayerControllable(playerid,1);
  862. SetCameraBehindPlayer(playerid);
  863. TextDrawHideForPlayer(playerid, Text:Weapon);
  864. TextDrawHideForPlayer(playerid, Text:Country);
  865. TextDrawHideForPlayer(playerid, Text:rifle);
  866. TextDrawHideForPlayer(playerid, Text:Box);
  867. TextDrawHideForPlayer(playerid, Text:Pressy);
  868. TextDrawHideForPlayer(playerid, Text:Pressn);
  869. TextDrawHideForPlayer(playerid, Text:Ammo);
  870. TextDrawHideForPlayer(playerid, Text:Price);
  871. TextDrawHideForPlayer(playerid, Text:Ammo200);
  872. TextDrawHideForPlayer(playerid, Text:Price8000);
  873. SendClientMessage(playerid, COLOR_GREEN, "Você acabou de comprar um rifle com 200 munições por $8,000!");
  874. GivePlayerWeapon(playerid, 33, 200);
  875. GivePlayerMoney(playerid, -8000);
  876. new Skin = GetPlayerSkin(playerid);
  877. SetPlayerSkin(playerid, Skin);
  878. }
  879. }
  880. if (PRESSED(KEY_SECONDARY_ATTACK))
  881. {
  882. if(IsPlayerInRangeOfPoint(playerid,1.0, 314.28, -162.09, 999.62))
  883. {
  884. TogglePlayerControllable(playerid,0);
  885. ApplyAnimation(playerid,"INT_SHOP","shop_lookB",4.1,1,1,1,1,1,1);
  886. TextDrawShowForPlayer(playerid, Text:Weapon);
  887. TextDrawShowForPlayer(playerid, Text:Country);
  888. TextDrawShowForPlayer(playerid, Text:rifle);
  889. TextDrawShowForPlayer(playerid, Text:Box);
  890. TextDrawShowForPlayer(playerid, Text:Pressy);
  891. TextDrawShowForPlayer(playerid, Text:Pressn);
  892. TextDrawShowForPlayer(playerid, Text:Ammo);
  893. TextDrawShowForPlayer(playerid, Text:Price);
  894. TextDrawShowForPlayer(playerid, Text:Ammo200);
  895. TextDrawShowForPlayer(playerid, Text:Price8000);
  896. SetPlayerCameraPos(playerid, 313.8457, -163.7814, 1000.1425);
  897. SetPlayerCameraLookAt(playerid, 314.2114, -162.3438, 999.5625);
  898. }
  899. }
  900.  
  901. return 1;
  902. }
  903.  
  904. public OnRconLoginAttempt(ip[], password[], success)
  905. {
  906. return 1;
  907. }
  908.  
  909. public OnPlayerUpdate(playerid)
  910. {
  911. return 1;
  912. }
  913.  
  914. public OnPlayerStreamIn(playerid, forplayerid)
  915. {
  916. return 1;
  917. }
  918.  
  919. public OnPlayerStreamOut(playerid, forplayerid)
  920. {
  921. return 1;
  922. }
  923.  
  924. public OnVehicleStreamIn(vehicleid, forplayerid)
  925. {
  926. return 1;
  927. }
  928.  
  929. public OnVehicleStreamOut(vehicleid, forplayerid)
  930. {
  931. return 1;
  932. }
  933.  
  934. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  935. {
  936. return 1;
  937. }
  938.  
  939. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  940. {
  941. return 1;
  942. }
  943.  
  944. stock PreloadAnimLib(playerid, animlib[])
  945. {
  946. ApplyAnimation(playerid,animlib,"null",0.0,0,0,0,0,0);
  947. }
Advertisement
Add Comment
Please, Sign In to add comment