Advertisement
Guest User

Catchorro

a guest
Nov 4th, 2013
1,867
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 95.04 KB | None | 0 0
  1. ////////////////////////////////////////////////////////////////////////////////
  2. #include < a_players >
  3. #include < streamer >
  4. #include < sscanf2 >
  5. #include < a_samp >
  6. #include < DOF2 >
  7. #include < zcmd >
  8. #include < Dini >
  9. ////////////////////////////////////////////////////////////////////////////////
  10. #define Floresente 0x03FF35FF
  11. #define AzulClaro 0x03F2FFFF
  12. #define RoxoClaro 0x9A03FFFF
  13. #define Vermelho 0xAA3333AA
  14. #define Laranja 0xFF7403FF
  15. #define Amarelo 0xFFFF00FF
  16. #define Branco 0xFFFFFFAA
  17. #define Verde 0x33AA33AA
  18. #define Preto 0x000000FF
  19. #define Cinza 0x878787FF
  20. #define White 0xFFFFFFAA
  21. #define Azul 0x058AFFFF
  22. #define Rosa 0xFF05CDFF
  23. #define Roxo 0x7D03FFFF
  24. ////////////////////////////////////////////////////////////////////////////////
  25. #pragma dynamic 145000
  26. ////////////////////////////////////////////////////////////////////////////////
  27. #define green 0x0AFF0AAA
  28. #define red 0xFF0000AA
  29. ////////////////////////////////////////////////////////////////////////////////
  30. #define LOGIN 1
  31. ////////////////////////////////////////////////////////////////////////////////
  32. #define REGISTRO 2
  33. ////////////////////////////////////////////////////////////////////////////////
  34. #define CONTAS "Players/%s.ini"
  35. ////////////////////////////////////////////////////////////////////////////////
  36. #define PosPremios 1214.8124,-1675.5703,11.7969
  37. ////////////////////////////////////////////////////////////////////////////////
  38. #define DIALOG_PREMIOS 2095
  39. ////////////////////////////////////////////////////////////////////////////////
  40. #define Aztecas 1
  41. #define Grove 2
  42. #define Pobres 3
  43. #define Novinhas 4
  44. #define Vadias 5
  45. #define Ballas 6
  46. #define Rikinhos 7
  47. #define Japoneses 8
  48. #define Mafia 9
  49. #define Exercito 10
  50. ////////////////////////////////////////////////////////////////////////////////
  51. #define Diag1 50
  52. #define Diag2 51
  53. #define Diag3 52
  54. ////////////////////////////////////////////////////////////////////////////////
  55. #define Dialog_VetGrau 80
  56. #define Dialog_Ajuda2 81
  57. ////////////////////////////////////////////////////////////////////////////////
  58. #define ANIMES 150
  59. ////////////////////////////////////////////////////////////////////////////////
  60. new anims[5];
  61. new strdialog[750];
  62. ////////////////////////////////////////////////////////////////////////////////
  63. new VetOn[MAX_PLAYERS];
  64. ////////////////////////////////////////////////////////////////////////////////
  65. new Holandes;
  66. ////////////////////////////////////////////////////////////////////////////////
  67. new
  68. IDVeiculo,
  69. CorVeiculo,
  70. CorVeiculo2,
  71. IDCarro[MAX_PLAYERS],
  72. bool:VeiculoCriado[MAX_PLAYERS],
  73. Float:p1x,
  74. Float:p1y,
  75. Float:p1z,
  76. Float:SetVPos[3]
  77. ;
  78. ////////////////////////////////////////////////////////////////////////////////
  79. enum pInfo
  80. {
  81. Level,
  82. Matou,
  83. Morreu,
  84. Admin,
  85. Grana,
  86. Logou,
  87. Senha
  88. };
  89. ////////////////////////////////////////////////////////////////////////////////
  90. new gTeam[MAX_PLAYERS];
  91. ////////////////////////////////////////////////////////////////////////////////
  92. new Text:GoldCat[MAX_PLAYERS];
  93. ////////////////////////////////////////////////////////////////////////////////
  94. new Menu: kits;
  95. new Text: textdraw0;
  96. new Text: textdraw1;
  97. new Text: textdraw2;
  98. new Text: textdraw3;
  99. new Text: textdraw4;
  100. new Text: textdraw5;
  101. ////////////////////////////////////////////////////////////////////////////////
  102. new tGold[MAX_PLAYERS];
  103. new Gold[MAX_PLAYERS];
  104. ////////////////////////////////////////////////////////////////////////////////
  105. new Text:TextGato;
  106. new Text:TextGato1;
  107. new Text:TextGato2;
  108. new Text:TextGato3;
  109. new Text:TextGato4;
  110. ////////////////////////////////////////////////////////////////////////////////
  111. new Text:TextIntro;
  112. new Text:TextIntro1;
  113. new Text:TextIntro2;
  114. new Text:TextIntro3;
  115. new Text:TextIntro4;
  116. ////////////////////////////////////////////////////////////////////////////////
  117. new Text:Box[MAX_PLAYERS];
  118. new Text:Ft[MAX_PLAYERS];
  119. ////////////////////////////////////////////////////////////////////////////////
  120. new PlayerKills[MAX_PLAYERS] = 0, Dominating[MAX_PLAYERS] = 0;
  121. ////////////////////////////////////////////////////////////////////////////////
  122. new PlayerInfo[MAX_PLAYERS][pInfo];
  123. ////////////////////////////////////////////////////////////////////////////////
  124. new Wilson;
  125. ////////////////////////////////////////////////////////////////////////////////
  126. main()
  127. {
  128. print("Brasil Vida Loka Status : Online / Brasil Vida Loka Status : Online / By Wesley");
  129. }
  130. ////////////////////////////////////////////////////////////////////////////////
  131. public OnGameModeInit()
  132. {
  133. ////////////////////////////////////////////////////////////////////////////////
  134. textdraw0 = TextDrawCreate(166,218,"- Combat Shotgun, UZI, Deagle, Granada $1500");
  135. textdraw1 = TextDrawCreate(166,236,"- Tec9, Shotgun, M4, Deagle, Molotov $1500");
  136. textdraw2 = TextDrawCreate(166,253,"- Sawn-off Shotgun, UZI, AK-47, 9MM $2500");
  137. textdraw3 = TextDrawCreate(166,269,"- Combat Shotgun, Tec9, Deagle, M4 $2500");
  138. textdraw4 = TextDrawCreate(166,285,"- Sawn-off Shotgun, Tec9, M4, Deagle $5000");
  139. textdraw5 = TextDrawCreate(166,302,"- SMG, M4, Bazuca, Deagle, Granada $15000");
  140. ////////////////////////////////////////////////////////////////////////////////
  141. kits = CreateMenu(" Kits de Armas", 2, 100.0, 200.0, 200.0, 270.0);
  142. AddMenuItem(kits, 0,"KIT1");
  143. AddMenuItem(kits, 0,"KIT2");
  144. AddMenuItem(kits, 0,"KIT3");
  145. AddMenuItem(kits, 0,"KIT4");
  146. AddMenuItem(kits, 0,"KIT5");
  147. AddMenuItem(kits, 0,"KIT6");
  148. AddMenuItem(kits, 0,"<SAIR>");
  149. ////////////////////////////////////////////////////////////////////////////////
  150. UsePlayerPedAnims();
  151. ////////////////////////////////////////////////////////////////////////////////
  152. DisableInteriorEnterExits();
  153. ////////////////////////////////////////////////////////////////////////////////
  154. if(!fexist("Golds.txt")) dini_Create("Golds.txt");
  155. AddStaticPickup(1247,1,PosPremios);
  156. Create3DTextLabel("{FFFF00}Premios Gold\n{87CEEB}Aperte 'F' ou 'Enter'", -1, PosPremios, 30.0, 0);
  157. ////////////////////////////////////////////////////////////////////////////////
  158. Holandes = CreateObject(8493, 2486.1000976563, -1660, 148.69999694824, 0.0, 0.0, 90);
  159. ////////////////////////////////////////////////////////////////////////////////
  160. TextIntro = TextDrawCreate(3.000000, 0.000000, "Brasil Vida Looka");
  161. TextDrawBackgroundColor(TextIntro, 16777215);
  162. TextDrawFont(TextIntro, 2);
  163. TextDrawLetterSize(TextIntro, 1.580000, 10.600005);
  164. TextDrawColor(TextIntro, -16776961);
  165. TextDrawSetOutline(TextIntro1, 0);
  166. TextDrawSetProportional(TextIntro, 1);
  167. TextDrawSetShadow(TextIntro, 4);
  168. TextDrawUseBox(TextIntro, 1);
  169. TextDrawBoxColor(TextIntro, 255);
  170. TextDrawTextSize(TextIntro, 691.000000, -450.000000);
  171. ////////////////////////////////////////////////////////////////////////////////
  172. TextIntro1 = TextDrawCreate(3.000000, 343.000000, "Brasil Vida Looka");
  173. TextDrawBackgroundColor(TextIntro1, 16777215);
  174. TextDrawFont(TextIntro1, 2);
  175. TextDrawLetterSize(TextIntro1, 1.580000, 11.300007);
  176. TextDrawColor(TextIntro1, -16776961);
  177. TextDrawSetOutline(TextIntro1, 0);
  178. TextDrawSetProportional(TextIntro1, 1);
  179. TextDrawSetShadow(TextIntro1, 4);
  180. TextDrawUseBox(TextIntro1, 1);
  181. TextDrawBoxColor(TextIntro1, 255);
  182. TextDrawTextSize(TextIntro1, 691.000000, -450.000000);
  183. ////////////////////////////////////////////////////////////////////////////////
  184. TextIntro2 = TextDrawCreate(250.000000, 2.000000, "Mundo Doido Como Voce Nunca Viu");
  185. TextDrawBackgroundColor(TextIntro2, 16711935);
  186. TextDrawFont(TextIntro2, 0);
  187. TextDrawLetterSize(TextIntro2, 0.870000, 2.299999);
  188. TextDrawColor(TextIntro2, -16776961);
  189. TextDrawSetOutline(TextIntro2, 0);
  190. TextDrawSetProportional(TextIntro2, 1);
  191. TextDrawSetShadow(TextIntro2, 1);
  192. ////////////////////////////////////////////////////////////////////////////////
  193. TextIntro3 = TextDrawCreate(313.000000, 342.000000, "Versao 5.1 Ultimate");
  194. TextDrawBackgroundColor(TextIntro3, 255);
  195. TextDrawFont(TextIntro3, 0);
  196. TextDrawLetterSize(TextIntro3, 0.860000, 3.100000);
  197. TextDrawColor(TextIntro3, 16711935);
  198. TextDrawSetOutline(TextIntro3, 0);
  199. TextDrawSetProportional(TextIntro3, 1);
  200. TextDrawSetShadow(TextIntro3, 1);
  201. ////////////////////////////////////////////////////////////////////////////////
  202. TextIntro4 = TextDrawCreate(11.000000, 347.000000, "BVL Extremma");
  203. TextDrawBackgroundColor(TextIntro4, -16776961);
  204. TextDrawFont(TextIntro4, 2);
  205. TextDrawLetterSize(TextIntro4, 0.500000, 1.000000);
  206. TextDrawColor(TextIntro4, 16711935);
  207. TextDrawSetOutline(TextIntro4, 0);
  208. TextDrawSetProportional(TextIntro4, 1);
  209. TextDrawSetShadow(TextIntro4, 2);
  210. ////////////////////////////////////////////////////////////////////////////////
  211. LoadDynamicObjectsFromFile("Objetos/Outros.txt");
  212. LoadStaticVehiclesFromFile("Veiculos/Outros.txt");
  213. ////////////////////////////////////////////////////////////////////////////////
  214. LoadDynamicObjectsFromFile("Objetos/Tudo.txt");
  215. LoadStaticVehiclesFromFile("Veiculos/Tudo.txt");
  216. ////////////////////////////////////////////////////////////////////////////////
  217. TextGato = TextDrawCreate(485.000000, 103.000000, "Brasil Vida Loka");
  218. TextDrawBackgroundColor(TextGato , -16776961);
  219. TextDrawFont(TextGato, 1);
  220. TextDrawLetterSize(TextGato, 0.500000, 1.000000);
  221. TextDrawColor(TextGato, 255);
  222. TextDrawSetOutline(TextGato, 1);
  223. TextDrawSetProportional(TextGato, 1);
  224. ////////////////////////////////////////////////////////////////////////////////
  225. TextGato1 = TextDrawCreate(3.000000, 435.000000, "Brasil Vida Loka Oficial Sua Diversao e Aqui Nesse Novo Mundo Louko 2014 Nova Era");
  226. TextDrawBackgroundColor(TextGato1, 65535);
  227. TextDrawFont(TextGato1, 0);
  228. TextDrawLetterSize(TextGato1, 0.529999, 1.400000);
  229. TextDrawColor(TextGato1, 16711935);
  230. TextDrawSetOutline(TextGato1, 1);
  231. TextDrawSetProportional(TextGato1, 1);
  232. TextDrawUseBox(TextGato1, 1);
  233. TextDrawBoxColor(TextGato1, 255);
  234. TextDrawTextSize(TextGato1, 651.000000, 6.000000);
  235. ////////////////////////////////////////////////////////////////////////////////
  236. TextGato2 = TextDrawCreate(490.000000, 10.000000, "Vida Loka");
  237. TextDrawBackgroundColor(TextGato2, 255);
  238. TextDrawFont(TextGato2, 0);
  239. TextDrawLetterSize(TextGato2, 0.500000, 1.000000);
  240. TextDrawColor(TextGato2, 16711935);
  241. TextDrawSetOutline(TextGato2, 0);
  242. TextDrawSetProportional(TextGato2, 1);
  243. TextDrawSetShadow(TextGato2, 0);
  244. ////////////////////////////////////////////////////////////////////////////////
  245. TextGato3 = TextDrawCreate(40.000000, 321.000000, "Mundo Doido");
  246. TextDrawBackgroundColor(TextGato3, -65281);
  247. TextDrawFont(TextGato3, 0);
  248. TextDrawLetterSize(TextGato3, 0.650000, 1.600004);
  249. TextDrawColor(TextGato3, 65535);
  250. TextDrawSetOutline(TextGato3, 1);
  251. TextDrawSetProportional(TextGato3, 1);
  252. ////////////////////////////////////////////////////////////////////////////////
  253. TextGato4 = TextDrawCreate(556.000000, 67.000000, "Vida");
  254. TextDrawBackgroundColor(TextGato4, 65535);
  255. TextDrawFont(TextGato4, 2);
  256. TextDrawLetterSize(TextGato4, 0.390000, 0.699999);
  257. TextDrawColor(TextGato4, -1);
  258. TextDrawSetOutline(TextGato4, 0);
  259. TextDrawSetProportional(TextGato4, 1);
  260. TextDrawSetShadow(TextGato4, 0);
  261. ////////////////////////////////////////////////////////////////////////////////
  262. AddPlayerClass(115,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
  263. AddPlayerClass(116,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
  264. AddPlayerClass(116,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
  265. ////////////////////////////////////////////////////////////////////////////////
  266. AddPlayerClass(105,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
  267. AddPlayerClass(106,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
  268. AddPlayerClass(107,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
  269. ////////////////////////////////////////////////////////////////////////////////
  270. AddPlayerClass(1,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
  271. AddPlayerClass(79,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
  272. AddPlayerClass(137,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
  273. ////////////////////////////////////////////////////////////////////////////////
  274. AddPlayerClass(138,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
  275. AddPlayerClass(85,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
  276. AddPlayerClass(91,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
  277. ////////////////////////////////////////////////////////////////////////////////
  278. AddPlayerClass(63,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
  279. AddPlayerClass(64,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
  280. AddPlayerClass(75,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
  281. ////////////////////////////////////////////////////////////////////////////////
  282. AddPlayerClass(102,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
  283. AddPlayerClass(103,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
  284. AddPlayerClass(104,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
  285. ////////////////////////////////////////////////////////////////////////////////
  286. AddPlayerClass(272,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
  287. AddPlayerClass(296,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
  288. AddPlayerClass(299,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
  289. ////////////////////////////////////////////////////////////////////////////////
  290. AddPlayerClass(294,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
  291. AddPlayerClass(123,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
  292. AddPlayerClass(203,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
  293. ////////////////////////////////////////////////////////////////////////////////
  294. AddPlayerClass(111,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
  295. AddPlayerClass(112,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
  296. AddPlayerClass(113,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
  297. ////////////////////////////////////////////////////////////////////////////////
  298. AddPlayerClass(287,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
  299. AddPlayerClass(73,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
  300. AddPlayerClass(100,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
  301. ////////////////////////////////////////////////////////////////////////////////
  302. return 1;
  303. }
  304. public OnGameModeExit()
  305. {
  306. ////////////////////////////////////////////////////////////////////////////////
  307. DestroyMenu(kits);
  308. TextDrawDestroy(textdraw0);
  309. TextDrawDestroy(textdraw1);
  310. TextDrawDestroy(textdraw2);
  311. TextDrawDestroy(textdraw3);
  312. TextDrawDestroy(textdraw4);
  313. TextDrawDestroy(textdraw5);
  314. ////////////////////////////////////////////////////////////////////////////////
  315. print("Brasil Vida Loka Status : Ofline / Brasil Vida Loka Status : Ofline / By Wesley");
  316. ////////////////////////////////////////////////////////////////////////////////
  317. DOF2_Exit();
  318. return 1;
  319. }
  320. ////////////////////////////////////////////////////////////////////////////////
  321. public OnPlayerRequestClass(playerid, classid)
  322. {
  323. ////////////////////////////////////////////////////////////////////////////////
  324. if((classid >= 0) && (classid <= 2))
  325. {
  326. gTeam[playerid] = Aztecas;
  327. GameTextForPlayer(playerid,"~n~~n~~b~Aztecas",4000,5);
  328. }
  329. if((classid >= 3) && (classid <= 5))
  330. {
  331. gTeam[playerid] = Grove;
  332. GameTextForPlayer(playerid,"~n~~n~~g~Grove",4000,5);
  333. }
  334. if((classid >= 6) && (classid <= 8))
  335. {
  336. gTeam[playerid] = Pobres;
  337. GameTextForPlayer(playerid,"~n~~n~~g~Pobres",4000,5);
  338. }
  339. if((classid >= 9) && (classid <= 11))
  340. {
  341. gTeam[playerid] = Pobres;
  342. GameTextForPlayer(playerid,"~n~~n~~b~Novinhas",4000,5);
  343. }
  344. if((classid >= 12) && (classid <= 14))
  345. {
  346. gTeam[playerid] = Pobres;
  347. GameTextForPlayer(playerid,"~n~~n~~r~Vadias",4000,5);
  348. }
  349. if((classid >= 15) && (classid <= 17))
  350. {
  351. gTeam[playerid] = Ballas;
  352. GameTextForPlayer(playerid,"~n~~n~~b~Ballas",4000,5);
  353. }
  354. if((classid >= 18) && (classid <= 20))
  355. {
  356. gTeam[playerid] = Rikinhos;
  357. GameTextForPlayer(playerid,"~n~~n~~g~Rikinhos",4000,5);
  358. }
  359. if((classid >= 21) && (classid <= 23))
  360. {
  361. gTeam[playerid] = Japoneses;
  362. GameTextForPlayer(playerid,"~n~~n~~l~Japoneses",4000,5);
  363. }
  364. if((classid >= 24) && (classid <= 26))
  365. {
  366. gTeam[playerid] = Mafia;
  367. GameTextForPlayer(playerid,"~n~~n~~l~Mafia",4000,5);
  368. }
  369. if((classid >= 27) && (classid <= 29))
  370. {
  371. gTeam[playerid] = Exercito;
  372. GameTextForPlayer(playerid,"~n~~n~~l~Exercito",4000,5);
  373. }
  374. ////////////////////////////////////////////////////////////////////////////////
  375. SetPlayerInterior(playerid,1);
  376. SetPlayerPos(playerid, 2235.768310, 1632.708129, 1008.359375);
  377. SetPlayerFacingAngle(playerid, 0.110143);
  378. SetPlayerCameraLookAt(playerid, 2235.768310, 1632.708129, 1008.359375);
  379. SetPlayerCameraPos(playerid, 2235.768310 + (5 * floatsin(-0.110143, degrees)), 1632.708129 + (5 * floatcos(-0.110143, degrees)), 1008.359375);
  380. ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.0,1,0,0,0,-1);
  381. ////////////////////////////////////////////////////////////////////////////////
  382. return 1;
  383. }
  384. ////////////////////////////////////////////////////////////////////////////////
  385. public OnPlayerConnect(playerid)
  386. {
  387. ////////////////////////////////////////////////////////////////////////////////
  388. SetPlayerAttachedObject( playerid, 0, 1518, 1, 0.643866, 0.000000, 0.000000, 187.985778, 90.253204, 0.000000, 1.000000, 1.000000, 1.000000 );
  389. ////////////////////////////////////////////////////////////////////////////////
  390. if(dini_Isset("Golds.txt",PlayerName(playerid))) Gold[playerid] = (playerid,dini_Int("Golds.txt",PlayerName(playerid)));
  391. ////////////////////////////////////////////////////////////////////////////////
  392. Box[playerid] = TextDrawCreate(622.000000, 79.000000, " ");
  393. TextDrawBackgroundColor(Box[playerid], 255);
  394. TextDrawFont(Box[playerid], 1);
  395. TextDrawLetterSize(Box[playerid], 0.500000, 1.000000);
  396. TextDrawColor(Box[playerid], -1);
  397. TextDrawSetOutline(Box[playerid], 0);
  398. TextDrawSetProportional(Box[playerid], 1);
  399. TextDrawSetShadow(Box[playerid], 1);
  400. ////////////////////////////////////////////////////////////////////////////////
  401. Ft[playerid] = TextDrawCreate(495.000000, 81.000000, "000000000");
  402. TextDrawBackgroundColor(Ft[playerid], 255);
  403. TextDrawFont(Ft[playerid], 3);
  404. TextDrawLetterSize(Ft[playerid], 0.740000, 1.700001);
  405. TextDrawColor(Ft[playerid], 65535);
  406. TextDrawSetOutline(Box[playerid], 0);
  407. TextDrawSetProportional(Ft[playerid], 1);
  408. TextDrawSetShadow(Ft[playerid], 1);
  409. TextDrawUseBox(Ft[playerid], 1);
  410. TextDrawBoxColor(Ft[playerid], 255);
  411. TextDrawTextSize(Ft[playerid], 613.000000, 0.000000);
  412. ////////////////////////////////////////////////////////////////////////////////
  413. TextDrawShowForPlayer(playerid, TextIntro);
  414. TextDrawShowForPlayer(playerid, TextIntro1);
  415. TextDrawShowForPlayer(playerid, TextIntro2);
  416. TextDrawShowForPlayer(playerid, TextIntro3);
  417. TextDrawShowForPlayer(playerid, TextIntro4);
  418. ////////////////////////////////////////////////////////////////////////////////
  419. new String[64];
  420. new Nome[MAX_PLAYER_NAME];
  421. GetPlayerName(playerid, Nome, sizeof(Nome));
  422. format(String, sizeof(String), CONTAS, Nome);
  423. ////////////////////////////////////////////////////////////////////////////////
  424. if(!DOF2_FileExists(String))
  425. {
  426. format(String, sizeof(String), "Nick: %s nao Registrado\n\n Digite sua Senha para Registrar", Nome);
  427. ShowPlayerDialog(playerid, REGISTRO, DIALOG_STYLE_INPUT, "Registrando", String, "Registrar", "Cancelar");
  428. }
  429. else
  430. {
  431. format(String, sizeof(String), "Nick: %s Registrado\n\n Digite Sua Senha Para Logar", Nome);
  432. ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "Logando", String, "Logar", "Cancelar");
  433. }
  434. ////////////////////////////////////////////////////////////////////////////////
  435. return 1;
  436. }
  437. ////////////////////////////////////////////////////////////////////////////////
  438. public OnPlayerDisconnect(playerid, reason)
  439. {
  440. ////////////////////////////////////////////////////////////////////////////////
  441. DestroyVehicle(IDCarro[playerid]);
  442. VeiculoCriado[playerid] = false;
  443. ////////////////////////////////////////////////////////////////////////////////
  444. dini_IntSet("Golds.txt",PlayerName(playerid),Gold[playerid]);
  445. ////////////////////////////////////////////////////////////////////////////////
  446. TextDrawDestroy(Text: TextGato);
  447. TextDrawDestroy(Text: TextGato1);
  448. TextDrawDestroy(Text: TextGato2);
  449. TextDrawDestroy(Text: TextGato3);
  450. TextDrawDestroy(Text: TextGato4);
  451. ////////////////////////////////////////////////////////////////////////////////
  452. TextDrawDestroy(Text: TextIntro);
  453. TextDrawDestroy(Text: TextIntro1);
  454. TextDrawDestroy(Text: TextIntro2);
  455. TextDrawDestroy(Text: TextIntro3);
  456. TextDrawDestroy(Text: TextIntro4);
  457. ////////////////////////////////////////////////////////////////////////////////
  458. SalvarPlayer(playerid);
  459. return 1;
  460. }
  461. ////////////////////////////////////////////////////////////////////////////////
  462. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  463. {
  464. ////////////////////////////////////////////////////////////////////////////////
  465. if((newkeys == KEY_FIRE))
  466. {
  467. new
  468. Float:x , Float:y , Float:z;
  469. ////////////////////////////////////////////////////////////////////////////////
  470. if(VetOn[playerid] == 1)
  471. {
  472. return SetVehicleAngularVelocity(GetPlayerVehicleID(playerid), x+0.1 , y , z);
  473. }
  474. if(VetOn[playerid] == 2)
  475. {
  476. return SetVehicleAngularVelocity(GetPlayerVehicleID(playerid), x+0.3 , y , z);
  477. }
  478. if(VetOn[playerid] == 3)
  479. {
  480. return SetVehicleAngularVelocity(GetPlayerVehicleID(playerid), x+0.5 , y , z);
  481. }
  482. if(VetOn[playerid] == 4)
  483. {
  484. return SetVehicleAngularVelocity(GetPlayerVehicleID(playerid), x+0.5 , y , z+0.10);
  485. }
  486. if(VetOn[playerid] == 5)
  487. {
  488. return SetVehicleAngularVelocity(GetPlayerVehicleID(playerid), x , y+0.5 , z+0.5);
  489. }
  490. if(VetOn[playerid] == 6)
  491. {
  492. return SetVehicleAngularVelocity(GetPlayerVehicleID(playerid), x+0.3 , y , z+0.10);
  493. }
  494. if(VetOn[playerid] == 7)
  495. {
  496. return SetVehicleAngularVelocity(GetPlayerVehicleID(playerid), x , y , z-0.2);
  497. }
  498. if(VetOn[playerid] == 8)
  499. {
  500. return SetVehicleAngularVelocity(GetPlayerVehicleID(playerid), x , y , z+0.2);
  501. }
  502. }
  503. ////////////////////////////////////////////////////////////////////////////////
  504. if ((newkeys == KEY_SECONDARY_ATTACK))
  505. {
  506. cmd_premio(playerid);
  507. }
  508. ////////////////////////////////////////////////////////////////////////////////
  509. return 1;
  510. }
  511. ////////////////////////////////////////////////////////////////////////////////
  512. public OnPlayerSpawn(playerid)
  513. {
  514. ////////////////////////////////////////////////////////////////////////////////
  515. for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++)
  516. {
  517. if(IsPlayerAttachedObjectSlotUsed(playerid, i)) RemovePlayerAttachedObject(playerid, i);
  518. }
  519. ////////////////////////////////////////////////////////////////////////////////
  520. if(gTeam[playerid] == Aztecas)
  521. {
  522. GivePlayerWeapon(playerid, 4, 999);
  523. GivePlayerWeapon(playerid, 24, 999);
  524. GivePlayerWeapon(playerid, 29, 999);
  525. SetPlayerColor(playerid, Amarelo);
  526. SetPlayerPos(playerid, 1217.9275,-1657.3444,11.7969);
  527. SetPlayerInterior(playerid, 0);
  528. }
  529. if(gTeam[playerid] == Grove)
  530. {
  531. GivePlayerWeapon(playerid, 4, 999);
  532. GivePlayerWeapon(playerid, 24, 999);
  533. GivePlayerWeapon(playerid, 29, 999);
  534. SetPlayerColor(playerid, Verde);
  535. SetPlayerPos(playerid, 1217.9275,-1657.3444,11.7969);
  536. SetPlayerInterior(playerid, 0);
  537. }
  538. if(gTeam[playerid] == Pobres)
  539. {
  540. GivePlayerWeapon(playerid, 4, 999);
  541. GivePlayerWeapon(playerid, 24, 999);
  542. GivePlayerWeapon(playerid, 29, 999);
  543. SetPlayerColor(playerid, Verde);
  544. SetPlayerPos(playerid, 1217.9275,-1657.3444,11.7969);
  545. SetPlayerInterior(playerid, 0);
  546. }
  547. if(gTeam[playerid] == Novinhas)
  548. {
  549. GivePlayerWeapon(playerid, 4, 999);
  550. GivePlayerWeapon(playerid, 24, 999);
  551. GivePlayerWeapon(playerid, 29, 999);
  552. SetPlayerColor(playerid, Azul);
  553. SetPlayerPos(playerid, 1217.9275,-1657.3444,11.7969);
  554. SetPlayerInterior(playerid, 0);
  555. }
  556. if(gTeam[playerid] == Vadias)
  557. {
  558. GivePlayerWeapon(playerid, 4, 999);
  559. GivePlayerWeapon(playerid, 24, 999);
  560. GivePlayerWeapon(playerid, 29, 999);
  561. SetPlayerColor(playerid, Vermelho);
  562. SetPlayerPos(playerid, 1217.9275,-1657.3444,11.7969);
  563. SetPlayerInterior(playerid, 0);
  564. }
  565. if(gTeam[playerid] == Ballas)
  566. {
  567. GivePlayerWeapon(playerid, 4, 999);
  568. GivePlayerWeapon(playerid, 24, 999);
  569. GivePlayerWeapon(playerid, 29, 999);
  570. SetPlayerColor(playerid, Azul);
  571. SetPlayerPos(playerid, 1217.9275,-1657.3444,11.7969);
  572. SetPlayerInterior(playerid, 0);
  573. }
  574. if(gTeam[playerid] == Rikinhos)
  575. {
  576. GivePlayerWeapon(playerid, 4, 999);
  577. GivePlayerWeapon(playerid, 24, 999);
  578. GivePlayerWeapon(playerid, 29, 999);
  579. SetPlayerColor(playerid, Azul);
  580. SetPlayerPos(playerid, 1217.9275,-1657.3444,11.7969);
  581. SetPlayerInterior(playerid, 0);
  582. }
  583. if(gTeam[playerid] == Japoneses)
  584. {
  585. GivePlayerWeapon(playerid, 4, 999);
  586. GivePlayerWeapon(playerid, 24, 999);
  587. GivePlayerWeapon(playerid, 29, 999);
  588. SetPlayerColor(playerid, Preto);
  589. SetPlayerPos(playerid, 1217.9275,-1657.3444,11.7969);
  590. SetPlayerInterior(playerid, 0);
  591. }
  592. if(gTeam[playerid] == Mafia)
  593. {
  594. GivePlayerWeapon(playerid, 4, 999);
  595. GivePlayerWeapon(playerid, 24, 999);
  596. GivePlayerWeapon(playerid, 29, 999);
  597. SetPlayerColor(playerid, Preto);
  598. SetPlayerPos(playerid, 1217.9275,-1657.3444,11.7969);
  599. SetPlayerInterior(playerid, 0);
  600. }
  601. if(gTeam[playerid] == Exercito)
  602. {
  603. GivePlayerWeapon(playerid, 4, 999);
  604. GivePlayerWeapon(playerid, 24, 999);
  605. GivePlayerWeapon(playerid, 29, 999);
  606. SetPlayerColor(playerid, Verde);
  607. SetPlayerPos(playerid, 1217.9275,-1657.3444,11.7969);
  608. SetPlayerInterior(playerid, 0);
  609. }
  610. ////////////////////////////////////////////////////////////////////////////////
  611. SetTimerEx("Timer",60000,true,"i",playerid);
  612. SetTimer("ActualizarTextDraws",true,60000);
  613. ////////////////////////////////////////////////////////////////////////////////
  614. GoldCat[playerid] = TextDrawCreate(522.000000, 417.000000, "Gold: ");
  615. TextDrawBackgroundColor(GoldCat[playerid], 255);
  616. TextDrawFont(GoldCat[playerid], 2);
  617. TextDrawLetterSize(GoldCat[playerid], 0.450000, 1.499999);
  618. TextDrawColor(GoldCat[playerid], -65281);
  619. TextDrawSetOutline(GoldCat[playerid], 0);
  620. TextDrawSetProportional(GoldCat[playerid], 1);
  621. TextDrawSetShadow(GoldCat[playerid], 1);
  622. ////////////////////////////////////////////////////////////////////////////////
  623. TextDrawShowForPlayer(playerid, Ft[playerid]);
  624. TextDrawShowForPlayer(playerid, Box[playerid]);
  625. ////////////////////////////////////////////////////////////////////////////////
  626. TextDrawHideForPlayer(playerid, TextIntro);
  627. TextDrawHideForPlayer(playerid, TextIntro1);
  628. TextDrawHideForPlayer(playerid, TextIntro2);
  629. TextDrawHideForPlayer(playerid, TextIntro3);
  630. TextDrawHideForPlayer(playerid, TextIntro4);
  631. ////////////////////////////////////////////////////////////////////////////////
  632. TextDrawShowForPlayer(playerid, TextGato);
  633. TextDrawShowForPlayer(playerid, TextGato1);
  634. TextDrawShowForPlayer(playerid, TextGato2);
  635. TextDrawShowForPlayer(playerid, TextGato3);
  636. TextDrawShowForPlayer(playerid, TextGato4);
  637. return 1;
  638. }
  639. ////////////////////////////////////////////////////////////////////////////////
  640. public OnPlayerEnterCheckpoint(playerid)
  641. {
  642. DisablePlayerCheckpoint(playerid);
  643. GameTextForPlayer(playerid, "~y~] Premios Gold ]~n~~w~Aperte '~b~F~w~' Para Abrir o Menu de Premios", 5000, 3);
  644. return 1;
  645. }
  646. ////////////////////////////////////////////////////////////////////////////////
  647. public OnPlayerDeath(playerid, killerid, reason)
  648. {
  649. ////////////////////////////////////////////////////////////////////////////////
  650. new kName[128], string[128];
  651. GetPlayerName(killerid, kName, sizeof(kName));
  652. PlayerKills[killerid] = PlayerKills[killerid] +1;
  653. PlayerKills[playerid] = 0;
  654. if(PlayerKills[killerid] == 4 && Dominating[killerid] == 1)
  655. {
  656. PlayAudioStreamForPlayer(playerid, "http://uploads3.mp3songurls.com/1351113.mp3");
  657. format(string,128, "~r~%s First Blood", kName);
  658. GameTextForAll(string, 6000,4);
  659. GivePlayerMoney(killerid, 1000);
  660. GivePlayerMoney(playerid, -1000);
  661. return 1;
  662. }
  663. ////////////////////////////////////////////////////////////////////////////////
  664. if(PlayerKills[killerid] == 2)
  665. {
  666. PlayAudioStreamForPlayer(playerid, "http://uploads3.mp3songurls.com/1351108.mp3");
  667. format(string,128, "~r~%s Double Kill", kName);
  668. GameTextForAll(string, 6000,4);
  669. GivePlayerMoney(killerid, 1500);
  670. GivePlayerMoney(playerid, -1000);
  671. return 1;
  672. }
  673. ////////////////////////////////////////////////////////////////////////////////
  674. if(PlayerKills[killerid] == 3)
  675. {
  676. PlayAudioStreamForPlayer(playerid, "http://uploads3.mp3songurls.com/1351115.mp3");
  677. format(string,128, "~r~%s Triple Kill", kName);
  678. GameTextForAll(string, 6000,4);
  679. GivePlayerMoney(killerid, 2000);
  680. GivePlayerMoney(playerid, -1000);
  681. return 1;
  682. }
  683. ////////////////////////////////////////////////////////////////////////////////
  684. if(PlayerKills[killerid] == 4)
  685. {
  686. PlayAudioStreamForPlayer(playerid, "http://uploads3.mp3songurls.com/1351114.mp3");
  687. format(string,128, "~r~%s Dominating", kName);
  688. GameTextForAll(string, 6000,4);
  689. GivePlayerMoney(killerid, 2500);
  690. GivePlayerMoney(playerid, -1000);
  691. return 1;
  692. }
  693. ////////////////////////////////////////////////////////////////////////////////
  694. if(PlayerKills[killerid] == 5)
  695. {
  696. PlayAudioStreamForPlayer(playerid, "http://uploads3.mp3songurls.com/1351111.mp3");
  697. format(string,128, "~r~%s Mega Kill", kName);
  698. GameTextForAll(string, 6000,4);
  699. GivePlayerMoney(killerid, 3000);
  700. GivePlayerMoney(playerid, -1000);
  701. return 1;
  702. }
  703. ////////////////////////////////////////////////////////////////////////////////
  704. if(PlayerKills[killerid] == 6)
  705. {
  706. PlayAudioStreamForPlayer(playerid, "http://uploads3.mp3songurls.com/1351116.mp3");
  707. format(string,128, "~r~%s Unstoppable", kName);
  708. GameTextForAll(string, 6000,4);
  709. GivePlayerMoney(killerid, 3500);
  710. GivePlayerMoney(playerid, -1000);
  711. return 1;
  712. }
  713. ////////////////////////////////////////////////////////////////////////////////
  714. if(PlayerKills[killerid] == 7)
  715. {
  716. PlayAudioStreamForPlayer(playerid, "http://uploads3.mp3songurls.com/1351117.mp3");
  717. format(string,128, "~r~%s Wicked Sick", kName);
  718. GameTextForAll(string, 6000,4);
  719. GivePlayerMoney(killerid, 4000);
  720. GivePlayerMoney(playerid, -1000);
  721. return 1;
  722. }
  723. ////////////////////////////////////////////////////////////////////////////////
  724. if(PlayerKills[killerid] == 8)
  725. {
  726. PlayAudioStreamForPlayer(playerid, "http://uploads3.mp3songurls.com/1351109.mp3");
  727. format(string,128, "~r~%s Monster Kill", kName);
  728. GameTextForAll(string, 6000,4);
  729. GivePlayerMoney(killerid, 4500);
  730. GivePlayerMoney(playerid, -1000);
  731. return 1;
  732. }
  733. ////////////////////////////////////////////////////////////////////////////////
  734. if(PlayerKills[killerid] == 9)
  735. {
  736. PlayAudioStreamForPlayer(playerid, "http://www.pamp3.site40.net/quake/ludicrouskill.mp3");
  737. format(string,128, "~r~%s Ludicrous Kill", kName);
  738. GameTextForAll(string, 6000,4);
  739. GivePlayerMoney(killerid, 5000);
  740. GivePlayerMoney(playerid, -1000);
  741. return 1;
  742. }
  743. ////////////////////////////////////////////////////////////////////////////////
  744. if(PlayerKills[killerid] == 10)
  745. {
  746. PlayAudioStreamForPlayer(playerid, "http://www.pamp3.site40.net/quake/ultrakill.mp3");
  747. format(string,128, "~r~%s Ulltra Kill", kName);
  748. GameTextForAll(string, 6000,4);
  749. GivePlayerMoney(killerid, 6000);
  750. GivePlayerMoney(playerid, -1000);
  751. return 1;
  752. }
  753. ////////////////////////////////////////////////////////////////////////////////
  754. if(PlayerKills[killerid] == 11)
  755. {
  756. format(string,128, "~r~%s Dominando", kName);
  757. GameTextForAll(string, 6000,4);
  758. GivePlayerMoney(killerid, 6000);
  759. GivePlayerMoney(playerid, -1000);
  760. return 1;
  761. }
  762. ////////////////////////////////////////////////////////////////////////////////
  763. if(PlayerKills[killerid] == 12)
  764. {
  765. format(string,128, "~r~%s Fodastico", kName);
  766. GameTextForAll(string, 6000,4);
  767. GivePlayerMoney(killerid, 6000);
  768. GivePlayerMoney(playerid, -1000);
  769. return 1;
  770. }
  771. ////////////////////////////////////////////////////////////////////////////////
  772. if(PlayerKills[killerid] == 13)
  773. {
  774. format(string,128, "~r~%s Lendario", kName);
  775. GameTextForAll(string, 6000,4);
  776. GivePlayerMoney(killerid, 6000);
  777. GivePlayerMoney(playerid, -1000);
  778. return 1;
  779. }
  780. ////////////////////////////////////////////////////////////////////////////////
  781. if(PlayerKills[killerid] == 14)
  782. {
  783. PlayAudioStreamForPlayer(playerid, "http://www.pamp3.site40.net/quake/ludicrouskill.mp3");
  784. format(string,128, "~r~%s Ludicrous Kill", kName);
  785. GameTextForAll(string, 6000,4);
  786. GivePlayerMoney(killerid, 6000);
  787. GivePlayerMoney(playerid, -1000);
  788. return 1;
  789. }
  790. ////////////////////////////////////////////////////////////////////////////////
  791. if(PlayerKills[killerid] == 15)
  792. {
  793. format(string,128, "~r~%s ACE", kName);
  794. GameTextForAll(string, 6000,4);
  795. GivePlayerMoney(killerid, 6000);
  796. GivePlayerMoney(playerid, -1000);
  797. return 1;
  798. }
  799. ////////////////////////////////////////////////////////////////////////////////
  800. return 1;
  801. }
  802. ////////////////////////////////////////////////////////////////////////////////
  803. public OnPlayerCommandPerformed(playerid, cmdtext[], success)
  804. {
  805. if(!success)
  806. return SendClientMessage(playerid,Vermelho,"Comando Inivalido Obs : Use /Comandos");
  807.  
  808. return 1;
  809. }
  810. ////////////////////////////////////////////////////////////////////////////////
  811. /*============================***[INICIO-ZCMD]***=============================*/
  812. ////////////////////////////////////////////////////////////////////////////////
  813. CMD:safado(playerid, params[])
  814. {
  815. new str[64], pName[MAX_PLAYER_NAME];
  816. GetPlayerName(playerid, pName, sizeof(pName));
  817. format(str, sizeof(str), "O Safadenho do {AA3333}%s {FFFF00}Ta de Pau Duro", pName);
  818. SendClientMessageToAll(0xFFFF00FF, str);
  819. SetPlayerAttachedObject( playerid, Wilson, 321, 1, -0.207567, 0.521517, -0.027858, 92.002204, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
  820. return 1;
  821. }
  822. ////////////////////////////////////////////////////////////////////////////////
  823. CMD:descente(playerid, params[])
  824. {
  825. new str[64], pName[MAX_PLAYER_NAME];
  826. GetPlayerName(playerid, pName, sizeof(pName));
  827. format(str, sizeof(str), "O Safadenho do {AA3333}%s {FFFF00}Virou Homen", pName);
  828. SendClientMessageToAll(0xFFFF00FF, str);
  829. for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++)
  830. {
  831. if(IsPlayerAttachedObjectSlotUsed(playerid, i)) RemovePlayerAttachedObject(playerid, i);
  832. }
  833. return 1;
  834. }
  835. ////////////////////////////////////////////////////////////////////////////////
  836. CMD:tirarobjeto(playerid, params[])
  837. {
  838. SendClientMessage(playerid, -1, "{FFD700} Objeto Tirado Com Sucesso");
  839. for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++)
  840. {
  841. if(IsPlayerAttachedObjectSlotUsed(playerid, i)) RemovePlayerAttachedObject(playerid, i);
  842. }
  843. return 1;
  844. }
  845. ////////////////////////////////////////////////////////////////////////////////
  846. CMD:punheta(playerid)
  847. {
  848. new str[64], pName[MAX_PLAYER_NAME];
  849. GetPlayerName(playerid, pName, sizeof(pName));
  850. format(str, sizeof(str), "O Safadenho do {AA3333}%s {FFFF00}Tocando Uma Punheta", pName);
  851. SendClientMessageToAll(0xFFFF00FF, str);
  852. ApplyAnimation(playerid,"PAULNMAC", "wank_loop", 1.800001, 1, 0, 0, 1, 600);
  853. return 1;
  854. }
  855. ////////////////////////////////////////////////////////////////////////////////
  856. CMD:noob(playerid, params[])
  857. {
  858. new str[64], pName[MAX_PLAYER_NAME];
  859. GetPlayerName(playerid, pName, sizeof(pName));
  860. format(str, sizeof(str), "O Player(a) {AA3333}%s {FFFF00}Pegou o Kit NooB Use : /noob", pName);
  861. SendClientMessageToAll(0xFFFF00FF, str);
  862. GivePlayerWeapon(playerid, 4, 999);
  863. GivePlayerWeapon(playerid, 24, 999);
  864. GivePlayerWeapon(playerid, 29, 999);
  865. return true;
  866. }
  867. ////////////////////////////////////////////////////////////////////////////////
  868. CMD:holandes1(playerid, params[])
  869. {
  870. MoveObject(Holandes, 557.70001220703, -1683.3000488281, 148.69999694824, 50.00);
  871. return true;
  872. }
  873. ////////////////////////////////////////////////////////////////////////////////
  874. CMD:holandes2(playerid, params[])
  875. {
  876. MoveObject(Holandes, -38.599998474121, -1098, 148.69999694824, 50.00);
  877. return true;
  878. }
  879. ////////////////////////////////////////////////////////////////////////////////
  880. CMD:holandes3(playerid, params[])
  881. {
  882. MoveObject(Holandes, 347.20001220703, -1464.6999511719, 252.5, 50.00);
  883. return true;
  884. }
  885. ////////////////////////////////////////////////////////////////////////////////
  886. CMD:holandes4(playerid, params[])
  887. {
  888. MoveObject(Holandes, 1771.5, -539.40002441406, 252.5, 50.00);
  889. return true;
  890. }
  891. ////////////////////////////////////////////////////////////////////////////////
  892. CMD:holandes5(playerid, params[])
  893. {
  894. MoveObject(Holandes, 2059.1999511719, 1215.9000244141, 252.5, 50.00);
  895. return true;
  896. }
  897. ////////////////////////////////////////////////////////////////////////////////
  898. CMD:holandes6(playerid, params[])
  899. {
  900. MoveObject(Holandes, -2692.3999023438, 1570.9000244141, 437.10000610352, 50.00);
  901. return true;
  902. }
  903. ////////////////////////////////////////////////////////////////////////////////
  904. CMD:holandes7(playerid, params[])
  905. {
  906. MoveObject(Holandes, 1750.4000244141, -2589.8999023438, 322, 50.00);
  907. return true;
  908. }
  909. ////////////////////////////////////////////////////////////////////////////////
  910. CMD:holandes8(playerid, params[])
  911. {
  912. MoveObject(Holandes, 2062.8000488281, -2581.1999511719, 31.299999237061, 50.00);
  913. return true;
  914. }
  915. ////////////////////////////////////////////////////////////////////////////////
  916. CMD:irh(playerid, params[])
  917. {
  918. new str[64], pName[MAX_PLAYER_NAME];
  919. GetPlayerName(playerid, pName, sizeof(pName));
  920. format(str, sizeof(str), "{AA3333}%s {FFFF00}Foi Para o Navio Fantasma Use : /irh", pName);
  921. SendClientMessageToAll(0xFFFF00FF, str);
  922. SetPlayerPos(playerid, 2486.1000976563, -1660, 148.69999694824);
  923. GameTextForPlayer(playerid,"Bem Vindo",6000,5);
  924. return true;
  925. }
  926. ////////////////////////////////////////////////////////////////////////////////
  927. ///==============================Linhas Retas================================///
  928. ////////////////////////////////////////////////////////////////////////////////
  929. CMD:retirargold(playerid, params[])
  930. {
  931. new id, QuantiadeGold;
  932. if (!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "{FFA500}[ERRO]{E0FFFF}Você não é administrador!");
  933. if (sscanf(params, "ud", id, QuantiadeGold)) return SendClientMessage(playerid, -1, "{FFA500}[ERRO]{E0FFFF} USE: /retirargold [ID] [GOLD]");
  934. if (!IsPlayerConnected(id)) return SendClientMessage(playerid, -1, "{FFA500}[ERRO]{E0FFFF} O Player não está connectado!");
  935. Gold[id] -= QuantiadeGold;
  936. return 1;
  937. }
  938. ////////////////////////////////////////////////////////////////////////////////
  939. CMD:premio(playerid)
  940. {
  941. if(IsPlayerInRangeOfPoint(playerid, 2.0, PosPremios))
  942. {
  943. new ListaPremios[4000];
  944. strcat(ListaPremios,"{7CFC00}R${F8F8FF} 1.000,00{FFFF00} [10 Gold's]\n");
  945. strcat(ListaPremios,"{7CFC00}R${F8F8FF} 2.000,00{FFFF00} [20 Gold's]\n");
  946. strcat(ListaPremios,"{7CFC00}R${F8F8FF} 10.000,00{FFFF00} [50 Gold's]\n");
  947. strcat(ListaPremios,"{7CFC00}R${F8F8FF} 30.000,00{FFFF00} [100 Gold's]\n");
  948. strcat(ListaPremios,"{7CFC00}R${F8F8FF} 200.000,00 + 1 Nível{FFFF00} [500 Gold's]\n");
  949. strcat(ListaPremios,"{7CFC00}R${F8F8FF} 500.000,00 + 3 Níveis{FFFF00} [750 Gold's]\n");
  950. strcat(ListaPremios,"{7CFC00}R${F8F8FF} 1.000.000,00 + 10 Níveis{FFFF00} [1000 Gold's]");
  951. ShowPlayerDialog(playerid, DIALOG_PREMIOS, DIALOG_STYLE_LIST, "Premios Gold", ListaPremios, "Selecionar", "Fechar");
  952. }
  953. return 1;
  954. }
  955. ////////////////////////////////////////////////////////////////////////////////
  956. CMD:ajudagold(playerid)
  957. {
  958. new AjudaPlayer[1000];
  959. new AjudaAdmin[1000];
  960. if (IsPlayerAdmin(playerid))
  961. {
  962. strcat(AjudaAdmin,"{FFD700}/dargold {FFFFFF}- {FFEFD5}Para dar Gold ao um Player.\n");
  963. strcat(AjudaAdmin,"{FFD700}/setargold {FFFFFF}- {FFEFD5}Para setar o Gold de um Player\n");
  964. strcat(AjudaAdmin,"{FFD700}/retirargold {FFFFFF}- {FFEFD5}Para retirar Gold de um Player.");
  965. ShowPlayerDialog(playerid, 3442, DIALOG_STYLE_MSGBOX, "{FFD700}Ajuda Gold",AjudaAdmin, "Fechar", "");
  966. }
  967. else
  968. {
  969. strcat(AjudaPlayer,"{FFA500}Informações:\n");
  970. strcat(AjudaPlayer,"{7FFFD4}A cada {AFEEEE}3 {7FFFD4}Minutos você ganha um Gold.\n");
  971. strcat(AjudaPlayer,"{7FFFD4}Você pode pegar premios em um local, digite: {FFD700}/gpsgold {7FFFD4} para encontra-lo\n\n");
  972. strcat(AjudaPlayer,"{FFA500}Comandos:\n");
  973. strcat(AjudaPlayer,"{FFD700}/meugold {FFFFFF}- {FFEFD5}Para ver a Quantidade de Gold que você tem.\n");
  974. strcat(AjudaPlayer,"{FFD700}/gpsgold {FFFFFF}- {FFEFD5}Local onde se pega premios (Dependendo de Quantos Gold's Você Tem).\n");
  975. ShowPlayerDialog(playerid, 3442, DIALOG_STYLE_MSGBOX, "{FFD700}Ajuda Gold",AjudaPlayer, "Fechar", "");
  976. }
  977. return 1;
  978. }
  979. ////////////////////////////////////////////////////////////////////////////////
  980. CMD:gpsgold(playerid)
  981. {
  982. SetPlayerCheckpoint(playerid, PosPremios,8.0);//Checkpoint Onde aparecerar
  983. SendClientMessage(playerid, -1, "{FFD700} Um ponto {FFA500}vermelho {FFD700}foi marcado no mapa, vá até ele!");
  984. return 1;
  985. }
  986. ////////////////////////////////////////////////////////////////////////////////
  987. CMD:meugold(playerid)
  988. {
  989. new String[128];
  990. new MyGold;
  991. MyGold = Gold[playerid];
  992. format(String, sizeof(String), "{7FFFD4}Você tem {AFEEEE}%d{7FFFD4} de Gold!", MyGold);
  993. SendClientMessage(playerid, -1, String);
  994. return 1;
  995. }
  996. ////////////////////////////////////////////////////////////////////////////////
  997. CMD:setargold(playerid, params[])
  998. {
  999. new id, dargold;
  1000. if (!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "{FFA500}[ERRO] {E0FFFF}Você não é administrador!");
  1001. if (sscanf(params, "ud", id, dargold)) return SendClientMessage(playerid, -1, "{FFA500}[ERRO] {E0FFFF}USE: /setargold [ID] [GOLD]");
  1002. if (!IsPlayerConnected(id)) return SendClientMessage(playerid, -1, "{FFA500}[ERRO] {E0FFFF} O Player não está connectado!");
  1003. Gold[id] = dargold;
  1004. return 1;
  1005. }
  1006. ////////////////////////////////////////////////////////////////////////////////
  1007. CMD:dargold(playerid, params[])
  1008. {
  1009. new ID, GoldQuantia;
  1010. if (!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "{FFA500}[ERRO] {E0FFFF}Você não é administrador!");
  1011. if (sscanf(params, "ud", ID, GoldQuantia)) return SendClientMessage(playerid, -1, "{FFA500}[ERRO] {E0FFFF}USE: /dargold [ID] [GOLD]");
  1012. if (!IsPlayerConnected(ID)) return SendClientMessage(playerid, -1, "{FFA500}[ERRO]{E0FFFF} O Player não está connectado!");
  1013. Gold[ID] += GoldQuantia;
  1014. return 1;
  1015. }
  1016. ////////////////////////////////////////////////////////////////////////////////
  1017. CMD:minigun(playerid, params[])
  1018. {
  1019. SendClientMessage(playerid, -1, "{FFD700} Objeto Adicionado Com Sucesso");
  1020. SetPlayerAttachedObject( playerid, 0, 362, 1, -0.359269, -0.254775, -0.039542, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
  1021. return 1;
  1022. }
  1023. ////////////////////////////////////////////////////////////////////////////////
  1024. CMD:faca(playerid, params[])
  1025. {
  1026. SendClientMessage(playerid, -1, "{FFD700} Objeto Adicionado Com Sucesso");
  1027. SetPlayerAttachedObject( playerid, 0, 339, 1, 0.610027, 0.081778, -0.385961, 4.524044, 358.178833, 172.174072, 0.896676, 1.000000, 1.000000 );
  1028. return 1;
  1029. }
  1030. ////////////////////////////////////////////////////////////////////////////////
  1031. CMD:arvore(playerid, params[])
  1032. {
  1033. SendClientMessage(playerid, -1, "{FFD700} Objeto Adicionado Com Sucesso");
  1034. SetPlayerAttachedObject( playerid, 0, 700, 1, -0.290194, 0.036302, 0.154402, 357.083923, 89.528007, 0.000000, 1.000000, 1.000000, 1.000000 );
  1035. return 1;
  1036. }
  1037. ////////////////////////////////////////////////////////////////////////////////
  1038. CMD:arvoreb(playerid, params[])
  1039. {
  1040. SendClientMessage(playerid, -1, "{FFD700} Objeto Adicionado Com Sucesso");
  1041. SetPlayerAttachedObject( playerid, 0, 724, 1, -2.662456, -0.960637, -0.590212, 0.000000, 84.909217, 358.866760, 1.000000, 0.196750, 1.000000 );
  1042. return 1;
  1043. }
  1044. ////////////////////////////////////////////////////////////////////////////////
  1045. CMD:tv(playerid, params[])
  1046. {
  1047. SendClientMessage(playerid, -1, "{FFD700} Objeto Adicionado Com Sucesso");
  1048. SetPlayerAttachedObject( playerid, 0, 1518, 1, 0.643866, 0.000000, 0.000000, 187.985778, 90.253204, 0.000000, 1.000000, 1.000000, 1.000000 );
  1049. return 1;
  1050. }
  1051. ////////////////////////////////////////////////////////////////////////////////
  1052. CMD:chapeu(playerid, params[])
  1053. {
  1054. SendClientMessage(playerid, -1, "{FFD700} Objeto Adicionado Com Sucesso");
  1055. SetPlayerAttachedObject(playerid, 3, 18639, 2, 0.163258, -0.032386, -0.013128, 0.390689, 358.632415, 340.261840);
  1056. return 1;
  1057. }
  1058. ////////////////////////////////////////////////////////////////////////////////
  1059. CMD:gorro(playerid, params[])
  1060. {
  1061. SendClientMessage(playerid, -1, "{FFD700} Objeto Adicionado Com Sucesso");
  1062. SetPlayerAttachedObject(playerid, 3, 19065, 2, 0.120000, 0.040000, -0.003500, 0, 100, 100, 1.4, 1.4, 1.4);
  1063. return 1;
  1064. }
  1065. ////////////////////////////////////////////////////////////////////////////////
  1066. CMD:acessorios(playerid, params[])
  1067. {
  1068. SendClientMessage(playerid, -1, "{FFD700} /safado /descente /punheta /minigun /faca /tirarobjeto \n /arvore /arvoreb /tv /chapeu /gorro /acessorios");
  1069. return 1;
  1070. }
  1071. ////////////////////////////////////////////////////////////////////////////////
  1072. CMD:comandos(playerid)
  1073. {
  1074. new String[950];
  1075. format(String, sizeof(String), "{FF0000}Comandos Gerais:\n\n");
  1076. strcat(String, "{B9BCCC}- /acessorios /ajudagold /noob /kit /irh /creditos /teleportes\n");
  1077. strcat(String, "{B9BCCC}- /grau / /deletarveiculo /trazerveiculo /animlist\n\n");
  1078. strcat(String, "{FF0000}Barco Pirata:\n\n");
  1079. strcat(String, "{B9BCCC}- *Para Andar* /holandes1 /holandes2 /holandes3 /holandes4\n");
  1080. strcat(String, "{B9BCCC}- /holandes5 /holandes6 /holandes7 /holandes8 (Tele) : /irh\n");
  1081. ShowPlayerDialog(playerid, Diag1, DIALOG_STYLE_MSGBOX, "[BVL] - Comandos", String, "Fechar", "");
  1082. return 1;
  1083. }
  1084. ////////////////////////////////////////////////////////////////////////////////
  1085. CMD:creditos(playerid)
  1086. {
  1087. new String[950];
  1088. format(String, sizeof(String), "{FF0000}Creditos Gerais:\n\n");
  1089. strcat(String, "{B9BCCC}- [BVL]Catchorro x Focaximubh\n");
  1090. ShowPlayerDialog(playerid, Diag2, DIALOG_STYLE_MSGBOX, "[BVL] - Creditos", String, "Fechar", "");
  1091. return 1;
  1092. }
  1093. ////////////////////////////////////////////////////////////////////////////////
  1094. CMD:teleportes(playerid)
  1095. {
  1096. new String[950];
  1097. format(String, sizeof(String), "{FF0000}Teleportes Gerais:\n\n");
  1098. strcat(String, "{B9BCCC}- Teste\n");
  1099. ShowPlayerDialog(playerid, Diag3, DIALOG_STYLE_MSGBOX, "[BVL] - Teleportes", String, "Fechar", "");
  1100. return 1;
  1101. }
  1102. ////////////////////////////////////////////////////////////////////////////////
  1103. CMD:grau(playerid)
  1104. {
  1105. if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, Vermelho, "{AA3333}Você Não Está em um Veículo Use /cv");
  1106. ShowPlayerDialog(playerid, Dialog_VetGrau, DIALOG_STYLE_LIST , "Sistema de Empinar no Grau", "Empinar \nMortal \nSuper-Mortal \nMortal+Flip \nFlip+Up \nVoop+Flip \nVoop+Direita \nVoop+Esquerda \nDesativar Voops!!\nComo Usar" ,"Ligar","Cancelar");
  1107. return 1;
  1108. }
  1109. ////////////////////////////////////////////////////////////////////////////////
  1110. CMD:cv(playerid, params[])
  1111. {
  1112. if(sscanf(params, "ddd", IDVeiculo, CorVeiculo, CorVeiculo2)) return SendClientMessage(playerid, Vermelho, "USO: /cv [ID Veiculo] [Cor1] [Cor2]");
  1113. if(IDVeiculo < 400 || IDVeiculo > 611) return SendClientMessage(playerid, Vermelho, "ID Inválido < ID's de 400 a 611 >");
  1114. if(CorVeiculo < 0 || CorVeiculo > 255) return SendClientMessage(playerid, Vermelho, "COR Inválida < Cores de 0 a 255 >");
  1115. if(CorVeiculo2 < 0 || CorVeiculo2 > 255) return SendClientMessage(playerid, Vermelho, "COR2 Inválida < Cores de 0 a 255 >");
  1116. if(VeiculoCriado[playerid] == true) return SendClientMessage(playerid, Vermelho, "Você já Possui um Veículo Criado, Use /deletarveiculo");
  1117. GetPlayerPos(playerid, p1x, p1y, p1z);
  1118. IDCarro[playerid] = CreateVehicle(IDVeiculo, p1x, p1y, p1z+5, 0.0, CorVeiculo, CorVeiculo2, 60000);
  1119. PutPlayerInVehicle(playerid, IDCarro[playerid], 0);
  1120. SetVehicleVirtualWorld(IDCarro[playerid], GetPlayerVirtualWorld(playerid));
  1121. LinkVehicleToInterior(IDCarro[playerid], GetPlayerInterior(playerid));
  1122. VeiculoCriado[playerid] = true;
  1123. SendClientMessage(playerid, Vermelho, "Você Criou um Veiculo, Para Deleta-lo Utilize: /deletarveiculo!");
  1124. return 1;
  1125. }
  1126. ////////////////////////////////////////////////////////////////////////////////
  1127. CMD:trazerveiculo(playerid)
  1128. {
  1129. if(VeiculoCriado[playerid] == false) return SendClientMessage(playerid, Vermelho, "Você Não Criou um Veículo!");
  1130. GetPlayerPos(playerid, SetVPos[0], SetVPos[1], SetVPos[2]);
  1131. SetVehiclePos(IDCarro[playerid], SetVPos[0], SetVPos[1], SetVPos[2]);
  1132. SendClientMessage(playerid, Vermelho, "Você Trouxe Seu Veículo Até Você!");
  1133. return 1;
  1134. }
  1135. ////////////////////////////////////////////////////////////////////////////////
  1136. CMD:deletarveiculo(playerid)
  1137. {
  1138. if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, Vermelho, "Você Não Está em um Veículo!");
  1139. if(VeiculoCriado[playerid] == false) return SendClientMessage(playerid, Vermelho, "Você Não Criou um Veículo!");
  1140. DestroyVehicle(IDCarro[playerid]);
  1141. VeiculoCriado[playerid] = false;
  1142. SendClientMessage(playerid, Vermelho, "Você Deletou Seu Veículo Com Sucesso, Para Cria-lo Novamente, Use /v!");
  1143. return 1;
  1144. }
  1145. ////////////////////////////////////////////////////////////////////////////////
  1146. CMD:kit(playerid, params[])
  1147. {
  1148. TextDrawAlignment(textdraw0,0);
  1149. TextDrawBackgroundColor(textdraw0,0x000000ff);
  1150. TextDrawFont(textdraw0,1);
  1151. TextDrawLetterSize(textdraw0,0.399999,1.600000);
  1152. TextDrawColor(textdraw0,White);
  1153. TextDrawSetOutline(textdraw0,1);
  1154. TextDrawSetProportional(textdraw0,1);
  1155. TextDrawSetShadow(textdraw0,1);
  1156. TextDrawShowForPlayer(playerid, textdraw0);
  1157. TextDrawAlignment(textdraw1,0);
  1158. TextDrawBackgroundColor(textdraw1,0x000000ff);
  1159. TextDrawFont(textdraw1,1);
  1160. TextDrawLetterSize(textdraw1,0.399999,1.600000);
  1161. TextDrawColor(textdraw1,White);
  1162. TextDrawSetOutline(textdraw1,1);
  1163. TextDrawSetProportional(textdraw1,1);
  1164. TextDrawSetShadow(textdraw1,1);
  1165. TextDrawShowForPlayer(playerid, textdraw1);
  1166. TextDrawAlignment(textdraw2,0);
  1167. TextDrawBackgroundColor(textdraw2,0x000000ff);
  1168. TextDrawFont(textdraw2,1);
  1169. TextDrawLetterSize(textdraw2,0.399999,1.600000);
  1170. TextDrawColor(textdraw2,White);
  1171. TextDrawSetOutline(textdraw2,1);
  1172. TextDrawSetProportional(textdraw2,1);
  1173. TextDrawSetShadow(textdraw2,1);
  1174. TextDrawShowForPlayer(playerid, textdraw2);
  1175. TextDrawAlignment(textdraw3,0);
  1176. TextDrawBackgroundColor(textdraw3,0x000000ff);
  1177. TextDrawFont(textdraw3,1);
  1178. TextDrawLetterSize(textdraw3,0.399999,1.600000);
  1179. TextDrawColor(textdraw3,White);
  1180. TextDrawSetOutline(textdraw3,1);
  1181. TextDrawSetProportional(textdraw3,1);
  1182. TextDrawSetShadow(textdraw3,1);
  1183. TextDrawShowForPlayer(playerid, textdraw3);
  1184. TextDrawAlignment(textdraw4,0);
  1185. TextDrawBackgroundColor(textdraw4,0x000000ff);
  1186. TextDrawFont(textdraw4,1);
  1187. TextDrawLetterSize(textdraw4,0.399999,1.600000);
  1188. TextDrawColor(textdraw4,White);
  1189. TextDrawSetOutline(textdraw4,1);
  1190. TextDrawSetProportional(textdraw4,1);
  1191. TextDrawSetShadow(textdraw4,1);
  1192. TextDrawShowForPlayer(playerid, textdraw4);
  1193. TextDrawAlignment(textdraw5,0);
  1194. TextDrawBackgroundColor(textdraw5,0x000000ff);
  1195. TextDrawFont(textdraw5,1);
  1196. TextDrawLetterSize(textdraw5,0.399999,1.600000);
  1197. TextDrawColor(textdraw5,White);
  1198. TextDrawSetOutline(textdraw5,1);
  1199. TextDrawSetProportional(textdraw5,1);
  1200. TextDrawSetShadow(textdraw5,1);
  1201. TextDrawShowForPlayer(playerid, textdraw5);
  1202. ShowMenuForPlayer(kits,playerid);
  1203. return 1;
  1204. }
  1205. ////////////////////////////////////////////////////////////////////////////////
  1206. CMD:animlist(playerid)
  1207. {
  1208.  
  1209. strcat(strdialog, "/fall - /fallback - /injured - /akick - /push - /lowbodypush - /handsup - /bomb - /drunk - /getarrested - /laugh - /sup\n");
  1210. strcat(strdialog, "/basket - /headbutt - /medic - /spray - /robman - /taichi - /lookout - /kiss - /cellin - /cellout - /crossarms - /lay /run\n");
  1211. strcat(strdialog, "/deal - /crack - /smoke - /groundsit - /chat - /dance - /fucku - /strip - /hide - /vomit - /eat - /chairsit - /reload\n");
  1212. strcat(strdialog, "/koface - /kostomach - /rollfall - /carjacked1 - /carjacked2 - /rcarjack1 - /rcarjack2 - /lcarjack1 - /lcarjack2 - /bat\n");
  1213. strcat(strdialog, "/lifejump - /exhaust - /leftslap - /carlock - /hoodfrisked - /lightcig - /tapcig - /box - /lay2 - /chant - finger /lean\n");
  1214. strcat(strdialog, "/shouting - /knife - /cop - /elbow - /kneekick - /airkick - /gkick - /gpunch - /fstance - /lowthrow - /highthrow - /aim\n");
  1215. strcat(strdialog, "-----------------------------------------------------------------------------------------------------------------------------------------");
  1216. ShowPlayerDialog(playerid, ANIMES, DIALOG_STYLE_MSGBOX, "-------------------------------------------------------- [ ANIMLIST ] ------------------------------------------------------------------", strdialog, "OK", "");
  1217. return 1;
  1218. }
  1219. ////////////////////////////////////////////////////////////////////////////////
  1220. CMD:carjacked1(playerid)
  1221. {
  1222.  
  1223. ApplyAnimation(playerid,"PED","CAR_jackedLHS",4.0,0,1,1,1,0);
  1224. return 1;
  1225. }
  1226. ////////////////////////////////////////////////////////////////////////////////
  1227. CMD:carjacked2(playerid)
  1228. {
  1229.  
  1230. ApplyAnimation(playerid,"PED","CAR_jackedRHS",4.0,0,1,1,1,0);
  1231. return 1;
  1232. }
  1233. ////////////////////////////////////////////////////////////////////////////////
  1234. CMD:handsup(playerid)
  1235. {
  1236.  
  1237. ApplyAnimation(playerid, "ROB_BANK","SHP_HandsUp_Scr", 4.0, 0, 1, 1, 1, 0);
  1238. return 1;
  1239. }
  1240. ////////////////////////////////////////////////////////////////////////////////
  1241. CMD:cellin(playerid)
  1242. {
  1243.  
  1244. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USECELLPHONE);
  1245. return 1;
  1246. }
  1247. ////////////////////////////////////////////////////////////////////////////////
  1248. CMD:cellout(playerid)
  1249. {
  1250.  
  1251. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_STOPUSECELLPHONE);
  1252. return 1;
  1253. }
  1254. ////////////////////////////////////////////////////////////////////////////////
  1255. CMD:drunk(playerid)
  1256. {
  1257.  
  1258. ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,1,1,1,1,1);
  1259. return 1;
  1260. }
  1261. ////////////////////////////////////////////////////////////////////////////////
  1262. CMD:bomb(playerid)
  1263. {
  1264.  
  1265. ClearAnimations(playerid);
  1266. ApplyAnimation(playerid, "BOMBER","BOM_Plant_Loop",4.0,1,0,0,1,0);
  1267. return 1;
  1268. }
  1269. ////////////////////////////////////////////////////////////////////////////////
  1270. CMD:getarrested(playerid)
  1271. {
  1272.  
  1273. ApplyAnimation(playerid,"ped", "ARRESTgun", 4.0, 0, 1, 1, 1, -1);
  1274. return 1;
  1275. }
  1276. ////////////////////////////////////////////////////////////////////////////////
  1277. CMD:laugh(playerid)
  1278. {
  1279.  
  1280. ApplyAnimation(playerid, "RAPPING", "Laugh_01", 4.0, 0, 0, 0, 0, 0);
  1281. return 1;
  1282. }
  1283. ////////////////////////////////////////////////////////////////////////////////
  1284. CMD:lookout(playerid)
  1285. {
  1286.  
  1287. ApplyAnimation(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0);
  1288. return 1;
  1289. }
  1290. ////////////////////////////////////////////////////////////////////////////////
  1291. CMD:robman(playerid)
  1292. {
  1293.  
  1294. ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0);
  1295. return 1;
  1296. }
  1297. ////////////////////////////////////////////////////////////////////////////////
  1298. CMD:crossarms(playerid)
  1299. {
  1300.  
  1301. ApplyAnimation(playerid, "COP_AMBIENT", "Coplook_loop", 4.0, 0, 1, 1, 1, -1);
  1302. return 1;
  1303. }
  1304. ////////////////////////////////////////////////////////////////////////////////
  1305. CMD:lay(playerid)
  1306. {
  1307.  
  1308. ApplyAnimation(playerid,"BEACH", "bather", 4.0, 1, 0, 0, 0, 0);
  1309. return 1;
  1310. }
  1311. ////////////////////////////////////////////////////////////////////////////////
  1312. CMD:hide(playerid)
  1313. {
  1314.  
  1315. ApplyAnimation(playerid, "ped", "cower", 3.0, 1, 0, 0, 0, 0);
  1316. return 1;
  1317. }
  1318. ////////////////////////////////////////////////////////////////////////////////
  1319. CMD:vomit(playerid)
  1320. {
  1321.  
  1322. ApplyAnimation(playerid, "FOOD", "EAT_Vomit_P", 3.0, 0, 0, 0, 0, 0);
  1323. return 1;
  1324. }
  1325. ////////////////////////////////////////////////////////////////////////////////
  1326. CMD:eat(playerid)
  1327. {
  1328.  
  1329. ApplyAnimation(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
  1330. return 1;
  1331. }
  1332. ////////////////////////////////////////////////////////////////////////////////
  1333. CMD:wave(playerid)
  1334. {
  1335.  
  1336. ApplyAnimation(playerid, "ON_LOOKERS", "wave_loop", 4.0, 1, 0, 0, 0, 0);
  1337. return 1;
  1338. }
  1339. ////////////////////////////////////////////////////////////////////////////////
  1340. CMD:slapass(playerid)
  1341. {
  1342.  
  1343. ApplyAnimation(playerid, "SWEET", "sweet_ass_slap", 4.0, 0, 0, 0, 0, 0);
  1344. return 1;
  1345. }
  1346. ////////////////////////////////////////////////////////////////////////////////
  1347. CMD:deal(playerid)
  1348. {
  1349.  
  1350. ApplyAnimation(playerid, "DEALER", "DEALER_DEAL", 4.0, 0, 0, 0, 0, 0);
  1351. return 1;
  1352. }
  1353. ////////////////////////////////////////////////////////////////////////////////
  1354. CMD:crack(playerid)
  1355. {
  1356.  
  1357. ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
  1358. return 1;
  1359. }
  1360. ////////////////////////////////////////////////////////////////////////////////
  1361. CMD:gro(playerid)
  1362. {
  1363.  
  1364. ApplyAnimation(playerid,"BEACH", "ParkSit_M_loop", 4.0, 1, 0, 0, 0, 0); // Sit
  1365. return 1;
  1366. }
  1367. ////////////////////////////////////////////////////////////////////////////////
  1368. CMD:chat(playerid)
  1369. {
  1370.  
  1371. ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,1,0,0,1,1);
  1372. return 1;
  1373. }
  1374. ////////////////////////////////////////////////////////////////////////////////
  1375. CMD:fucku(playerid)
  1376. {
  1377.  
  1378. ApplyAnimation(playerid,"PED","fucku",4.0,0,0,0,0,0);
  1379. return 1;
  1380. }
  1381. ////////////////////////////////////////////////////////////////////////////////
  1382. CMD:taichi(playerid)
  1383. {
  1384.  
  1385. ApplyAnimation(playerid,"PARK","Tai_Chi_Loop",4.0,1,0,0,0,0);
  1386. return 1;
  1387. }
  1388. ////////////////////////////////////////////////////////////////////////////////
  1389. CMD:chairsit(playerid)
  1390. {
  1391.  
  1392. ApplyAnimation(playerid,"PED","SEAT_down",4.1,0,1,1,1,0);
  1393. return 1;
  1394. }
  1395. ////////////////////////////////////////////////////////////////////////////////
  1396. CMD:fall(playerid)
  1397. {
  1398.  
  1399. ApplyAnimation(playerid,"PED","KO_skid_front",4.1,0,1,1,1,0);
  1400. return 1;
  1401. }
  1402. ////////////////////////////////////////////////////////////////////////////////
  1403. CMD:fallback(playerid)
  1404. {
  1405.  
  1406. ApplyAnimation(playerid, "PED","FLOOR_hit_f", 4.0, 1, 0, 0, 0, 0);
  1407. return 1;
  1408. }
  1409. ////////////////////////////////////////////////////////////////////////////////
  1410. CMD:kiss(playerid)
  1411. {
  1412.  
  1413. ApplyAnimation(playerid, "KISSING", "Playa_Kiss_02", 3.0, 1, 1, 1, 1, 0);
  1414. return 1;
  1415. }
  1416. ////////////////////////////////////////////////////////////////////////////////
  1417. CMD:injured(playerid)
  1418. {
  1419.  
  1420. ApplyAnimation(playerid, "SWEET", "Sweet_injuredloop", 4.0, 1, 0, 0, 0, 0);
  1421. return 1;
  1422. }
  1423. ////////////////////////////////////////////////////////////////////////////////
  1424. CMD:push(playerid)
  1425. {
  1426.  
  1427. ApplyAnimation(playerid,"GANGS","shake_cara",4.0,0,0,0,0,0);
  1428. return 1;
  1429. }
  1430. ////////////////////////////////////////////////////////////////////////////////
  1431. CMD:akick(playerid)
  1432. {
  1433.  
  1434. ApplyAnimation(playerid,"POLICE","Door_Kick",4.0,0,0,0,0,0);
  1435. return 1;
  1436. }
  1437. ////////////////////////////////////////////////////////////////////////////////
  1438. CMD:lowbodypush(playerid)
  1439. {
  1440.  
  1441. ApplyAnimation(playerid,"GANGS","shake_carSH",4.0,0,0,0,0,0);
  1442. return 1;
  1443. }
  1444. ////////////////////////////////////////////////////////////////////////////////
  1445. CMD:spray(playerid)
  1446. {
  1447.  
  1448. ApplyAnimation(playerid,"SPRAYCAN","spraycan_full",4.0,0,0,0,0,0);
  1449. return 1;
  1450. }
  1451. ////////////////////////////////////////////////////////////////////////////////
  1452. CMD:headbutt(playerid)
  1453. {
  1454.  
  1455. ApplyAnimation(playerid,"WAYFARER","WF_Fwd",4.0,0,0,0,0,0);
  1456. return 1;
  1457. }
  1458. ////////////////////////////////////////////////////////////////////////////////
  1459. CMD:hoodfrisked(playerid)
  1460. {
  1461.  
  1462. ApplyAnimation(playerid,"POLICE","crm_drgbst_01",4.0,0,1,1,1,0);
  1463. return 1;
  1464. }
  1465. ////////////////////////////////////////////////////////////////////////////////
  1466. CMD:lightcig(playerid)
  1467. {
  1468.  
  1469. ApplyAnimation(playerid,"SMOKING","M_smk_in",3.0,0,0,0,0,0);
  1470. return 1;
  1471. }
  1472. ////////////////////////////////////////////////////////////////////////////////
  1473. CMD:tapcig(playerid)
  1474. {
  1475.  
  1476. ApplyAnimation(playerid,"SMOKING","M_smk_tap",3.0,0,0,0,0,0);
  1477. return 1;
  1478. }
  1479. ////////////////////////////////////////////////////////////////////////////////
  1480. CMD:bat(playerid)
  1481. {
  1482.  
  1483. ApplyAnimation(playerid,"BASEBALL","Bat_IDLE",4.0,1,1,1,1,0);
  1484. return 1;
  1485. }
  1486. ////////////////////////////////////////////////////////////////////////////////
  1487. CMD:box(playerid)
  1488. {
  1489.  
  1490. ApplyAnimation(playerid,"GYMNASIUM","GYMshadowbox",4.0,1,1,1,1,0);
  1491. return 1;
  1492. }
  1493. ////////////////////////////////////////////////////////////////////////////////
  1494. CMD:lay2(playerid)
  1495. {
  1496.  
  1497. ApplyAnimation(playerid,"SUNBATHE","Lay_Bac_in",3.0,0,1,1,1,0);
  1498. return 1;
  1499. }
  1500. ////////////////////////////////////////////////////////////////////////////////
  1501. CMD:chant(playerid)
  1502. {
  1503.  
  1504. ApplyAnimation(playerid,"RIOT","RIOT_CHANT",4.0,1,1,1,1,0);
  1505. return 1;
  1506. }
  1507. ////////////////////////////////////////////////////////////////////////////////
  1508. CMD:finger(playerid)
  1509. {
  1510.  
  1511. ApplyAnimation(playerid,"RIOT","RIOT_FUKU",2.0,0,0,0,0,0);
  1512. return 1;
  1513. }
  1514. ////////////////////////////////////////////////////////////////////////////////
  1515. CMD:shouting(playerid)
  1516. {
  1517.  
  1518. ApplyAnimation(playerid,"RIOT","RIOT_shout",4.0,1,0,0,0,0);
  1519. return 1;
  1520. }
  1521. ////////////////////////////////////////////////////////////////////////////////
  1522. CMD:cop(playerid)
  1523. {
  1524.  
  1525. ApplyAnimation(playerid,"SWORD","sword_block",50.0,0,1,1,1,1);
  1526. return 1;
  1527. }
  1528. ////////////////////////////////////////////////////////////////////////////////
  1529. CMD:elbow(playerid)
  1530. {
  1531.  
  1532. ApplyAnimation(playerid,"FIGHT_D","FightD_3",4.0,0,1,1,0,0);
  1533. return 1;
  1534. }
  1535. ////////////////////////////////////////////////////////////////////////////////
  1536. CMD:kneekick(playerid)
  1537. {
  1538.  
  1539. ApplyAnimation(playerid,"FIGHT_D","FightD_2",4.0,0,1,1,0,0);
  1540. return 1;
  1541. }
  1542. ////////////////////////////////////////////////////////////////////////////////
  1543. CMD:fstance(playerid)
  1544. {
  1545.  
  1546. ApplyAnimation(playerid,"FIGHT_D","FightD_IDLE",4.0,1,1,1,1,0);
  1547. return 1;
  1548. }
  1549. ////////////////////////////////////////////////////////////////////////////////
  1550. CMD:gpunch(playerid)
  1551. {
  1552.  
  1553. ApplyAnimation(playerid,"FIGHT_B","FightB_G",4.0,0,0,0,0,0);
  1554. return 1;
  1555. }
  1556. ////////////////////////////////////////////////////////////////////////////////
  1557. CMD:airkick(playerid)
  1558. {
  1559.  
  1560. ApplyAnimation(playerid,"FIGHT_C","FightC_M",4.0,0,1,1,0,0);
  1561. return 1;
  1562. }
  1563. ////////////////////////////////////////////////////////////////////////////////
  1564. CMD:gkick(playerid)
  1565. {
  1566.  
  1567. ApplyAnimation(playerid,"FIGHT_D","FightD_G",4.0,0,0,0,0,0);
  1568. return 1;
  1569. }
  1570. ////////////////////////////////////////////////////////////////////////////////
  1571. CMD:lowthrow(playerid)
  1572. {
  1573.  
  1574. ApplyAnimation(playerid,"GRENADE","WEAPON_throwu",3.0,0,0,0,0,0);
  1575. return 1;
  1576. }
  1577. ////////////////////////////////////////////////////////////////////////////////
  1578. CMD:highthrow(playerid)
  1579. {
  1580.  
  1581. ApplyAnimation(playerid,"GRENADE","WEAPON_throw",4.0,0,0,0,0,0);
  1582. return 1;
  1583. }
  1584. ////////////////////////////////////////////////////////////////////////////////
  1585. CMD:dealstance(playerid)
  1586. {
  1587.  
  1588. ApplyAnimation(playerid,"DEALER","DEALER_IDLE",4.0,1,0,0,0,0);
  1589. return 1;
  1590. }
  1591. ////////////////////////////////////////////////////////////////////////////////
  1592. CMD:medic(playerid)
  1593. {
  1594.  
  1595. ApplyAnimation(playerid,"MEDIC","CPR",4.0,0,0,0,0,0);
  1596. return 1;
  1597. }
  1598. ////////////////////////////////////////////////////////////////////////////////
  1599. CMD:koface(playerid)
  1600. {
  1601.  
  1602. ApplyAnimation(playerid,"PED","KO_shot_face",4.0,0,1,1,1,0);
  1603. return 1;
  1604. }
  1605. ////////////////////////////////////////////////////////////////////////////////
  1606. CMD:kostomach(playerid)
  1607. {
  1608.  
  1609. ApplyAnimation(playerid,"PED","KO_shot_stom",4.0,0,1,1,1,0);
  1610. return 1;
  1611. }
  1612. ////////////////////////////////////////////////////////////////////////////////
  1613. CMD:lifejump(playerid)
  1614. {
  1615.  
  1616. ApplyAnimation(playerid,"PED","EV_dive",4.0,0,1,1,1,0);
  1617. return 1;
  1618. }
  1619. ////////////////////////////////////////////////////////////////////////////////
  1620. CMD:exhaust(playerid)
  1621. {
  1622.  
  1623. ApplyAnimation(playerid,"PED","IDLE_tired",3.0,1,0,0,0,0);
  1624. return 1;
  1625. }
  1626. ////////////////////////////////////////////////////////////////////////////////
  1627. CMD:leftslap(playerid)
  1628. {
  1629.  
  1630. ApplyAnimation(playerid,"PED","BIKE_elbowL",4.0,0,0,0,0,0);
  1631. return 1;
  1632. }
  1633. ////////////////////////////////////////////////////////////////////////////////
  1634. CMD:rollfall(playerid)
  1635. {
  1636.  
  1637. ApplyAnimation(playerid,"PED","BIKE_fallR",4.0,0,1,1,1,0);
  1638. return 1;
  1639. }
  1640. ////////////////////////////////////////////////////////////////////////////////
  1641. CMD:carlock(playerid)
  1642. {
  1643.  
  1644. ApplyAnimation(playerid,"PED","CAR_doorlocked_LHS",4.0,0,0,0,0,0);
  1645. return 1;
  1646. }
  1647. ////////////////////////////////////////////////////////////////////////////////
  1648. CMD:rcarjack1(playerid)
  1649. {
  1650.  
  1651. ApplyAnimation(playerid,"PED","CAR_pulloutL_LHS",4.0,0,0,0,0,0);
  1652. return 1;
  1653. }
  1654. ////////////////////////////////////////////////////////////////////////////////
  1655. CMD:lcarjack1(playerid)
  1656. {
  1657.  
  1658. ApplyAnimation(playerid,"PED","CAR_pulloutL_RHS",4.0,0,0,0,0,0);
  1659. return 1;
  1660. }
  1661. ////////////////////////////////////////////////////////////////////////////////
  1662. CMD:rcarjack2(playerid)
  1663. {
  1664.  
  1665. ApplyAnimation(playerid,"PED","CAR_pullout_LHS",4.0,0,0,0,0,0);
  1666. return 1;
  1667. }
  1668. ////////////////////////////////////////////////////////////////////////////////
  1669. CMD:lcarjack2(playerid)
  1670. {
  1671.  
  1672. ApplyAnimation(playerid,"PED","CAR_pullout_RHS",4.0,0,0,0,0,0);
  1673. return 1;
  1674. }
  1675. ////////////////////////////////////////////////////////////////////////////////
  1676. CMD:smoke(playerid, params[])
  1677. {
  1678. if(sscanf(params, "s", anims))
  1679. {
  1680. SendClientMessage(playerid, 0x33AA33AA, "Uso correto: /smoke [1-4]");
  1681. }
  1682. else
  1683. {
  1684. if(strcmp(anims, "0", true) == 0)
  1685. {
  1686. SendClientMessage(playerid, 0x33AA33AA, "Uso correto: /smoke [1-4]");
  1687. }
  1688. if(strcmp(anims, "1", true) == 0)
  1689. {
  1690. ApplyAnimation(playerid,"SMOKING", "F_smklean_loop", 4.0, 1, 0, 0, 0, 0);
  1691. }
  1692. if(strcmp(anims, "2", true) == 0)
  1693. {
  1694. ApplyAnimation(playerid,"SMOKING", "M_smklean_loop", 4.0, 1, 0, 0, 0, 0);
  1695. }
  1696. if(strcmp(anims, "3", true) == 0)
  1697. {
  1698. ApplyAnimation(playerid,"SMOKING","M_smkstnd_loop", 4.0, 1, 0, 0, 0, 0);
  1699. }
  1700. if(strcmp(anims, "4", true) == 0)
  1701. {
  1702. ApplyAnimation(playerid,"SMOKING","M_smk_out", 4.0, 1, 0, 0, 0, 0);
  1703. }
  1704. }
  1705. return 1;
  1706. }
  1707. ////////////////////////////////////////////////////////////////////////////////
  1708. CMD:sup(playerid, params[])
  1709. {
  1710. if(sscanf(params, "s", anims))
  1711. {
  1712. SendClientMessage(playerid, 0x33AA33AA, "Uso correto: /sup [1-3]");
  1713. }
  1714. else
  1715. {
  1716. if(strcmp(anims, "1", true) == 0)
  1717. {
  1718. ApplyAnimation(playerid,"GANGS","hndshkba",4.0,0,0,0,0,0);
  1719. }
  1720. if(strcmp(anims, "2", true) == 0)
  1721. {
  1722. ApplyAnimation(playerid,"GANGS","hndshkda",4.0,0,0,0,0,0);
  1723. }
  1724. if(strcmp(anims, "3", true) == 0)
  1725. {
  1726. ApplyAnimation(playerid,"GANGS","hndshkfa_swt",4.0,0,0,0,0,0);
  1727. }
  1728. }
  1729. return 1;
  1730. }
  1731. ////////////////////////////////////////////////////////////////////////////////
  1732. CMD:rap(playerid, params[])
  1733. {
  1734. if(sscanf(params, "s", anims))
  1735. {
  1736. SendClientMessage(playerid, 0x33AA33AA, "Uso correto: /rap [1-4]");
  1737. }
  1738. else
  1739. {
  1740. if(strcmp(anims, "1", true) == 0)
  1741. {
  1742. ApplyAnimation(playerid,"RAPPING","RAP_A_Loop",4.0,1,0,0,0,0);
  1743. }
  1744. if(strcmp(anims, "2", true) == 0)
  1745. {
  1746. ApplyAnimation(playerid,"RAPPING","RAP_C_Loop",4.0,1,0,0,0,0);
  1747. }
  1748. if(strcmp(anims, "3", true) == 0)
  1749. {
  1750. ApplyAnimation(playerid,"GANGS","prtial_gngtlkD",4.0,1,0,0,0,0);
  1751. }
  1752. if(strcmp(anims, "4", true) == 0)
  1753. {
  1754. ApplyAnimation(playerid,"GANGS","prtial_gngtlkH",4.0,1,0,0,1,1);
  1755. }
  1756. }
  1757. return 1;
  1758. }
  1759. ////////////////////////////////////////////////////////////////////////////////
  1760. CMD:knife(playerid, params[])
  1761. {
  1762. if(sscanf(params, "s", anims))
  1763. {
  1764. SendClientMessage(playerid, 0x33AA33AA, "Uso correto: /knife [1-4]");
  1765. }
  1766. else
  1767. {
  1768. if(strcmp(anims, "1", true) == 0)
  1769. {
  1770. ApplyAnimation(playerid,"KNIFE","KILL_Knife_Ped_Damage",4.0,0,1,1,1,0);
  1771. }
  1772. if(strcmp(anims, "2", true) == 0)
  1773. {
  1774. ApplyAnimation(playerid,"KNIFE","KILL_Knife_Ped_Die",4.0,0,1,1,1,0);
  1775. }
  1776. if(strcmp(anims, "3", true) == 0)
  1777. {
  1778.  
  1779. ApplyAnimation(playerid,"KNIFE","KILL_Knife_Player",4.0,0,0,0,0,0);
  1780. }
  1781. if(strcmp(anims, "4", true) == 0)
  1782. {
  1783.  
  1784. ApplyAnimation(playerid,"KNIFE","KILL_Partial",4.0,0,1,1,1,1);
  1785. }
  1786. }
  1787. return 1;
  1788. }
  1789. ////////////////////////////////////////////////////////////////////////////////
  1790. CMD:basket(playerid, params[])
  1791. {
  1792. if(sscanf(params, "s", anims))
  1793. {
  1794. SendClientMessage(playerid, 0x33AA33AA, "Uso correto: /knife [1-6]");
  1795. }
  1796. else
  1797. {
  1798. if(strcmp(anims, "1", true) == 0)
  1799. {
  1800. ApplyAnimation(playerid,"BSKTBALL","BBALL_idleloop",4.0,1,0,0,0,0);
  1801. }
  1802. if(strcmp(anims, "2", true) == 0)
  1803. {
  1804. ApplyAnimation(playerid,"BSKTBALL","BBALL_Jump_Shot",4.0,0,0,0,0,0);
  1805. }
  1806. if(strcmp(anims, "3", true) == 0)
  1807. {
  1808. ApplyAnimation(playerid,"BSKTBALL","BBALL_pickup",4.0,0,0,0,0,0);
  1809. }
  1810. if(strcmp(anims, "4", true) == 0)
  1811. {
  1812. ApplyAnimation(playerid,"BSKTBALL","BBALL_run",4.1,1,1,1,1,1);
  1813. }
  1814. if(strcmp(anims, "5", true) == 0)
  1815. {
  1816. ApplyAnimation(playerid,"BSKTBALL","BBALL_def_loop",4.0,1,0,0,0,0);
  1817. }
  1818. if(strcmp(anims, "6", true) == 0)
  1819. {
  1820. ApplyAnimation(playerid,"BSKTBALL","BBALL_Dnk",4.0,1,0,0,0,0);
  1821. }
  1822. }
  1823. return 1;
  1824. }
  1825. CMD:reload(playerid, params[])
  1826. {
  1827.  
  1828. if(sscanf(params, "s", anims))
  1829. {
  1830.  
  1831. SendClientMessage(playerid, 0x33AA33AA, "Uso correto: /reload [deagle/smg/ak/m4]");
  1832. }
  1833. else
  1834. {
  1835.  
  1836. if(strcmp(anims, "deagle", true) == 0)
  1837. {
  1838.  
  1839. ApplyAnimation(playerid,"COLT45","colt45_reload",4.0,0,0,0,0,1);
  1840. }
  1841. if(strcmp(anims, "smg", true) == 0 || strcmp(anims, "ak", true) == 0 || strcmp(anims, "m4", true) == 0)
  1842. {
  1843.  
  1844. ApplyAnimation(playerid,"UZI","UZI_reload",4.0,0,0,0,0,0);
  1845. }
  1846. }
  1847. return 1;
  1848. }
  1849. ////////////////////////////////////////////////////////////////////////////////
  1850. CMD:gwalk(playerid, params[])
  1851. {
  1852. if(sscanf(params, "s", anims))
  1853. {
  1854. SendClientMessage(playerid, 0x33AA33AA, "Uso correto: /gwalk [1-2]");
  1855. }
  1856. else
  1857. {
  1858. if(strcmp(anims, "1", true) == 0)
  1859. {
  1860. ApplyAnimation(playerid,"PED","WALK_gang1",4.1,1,1,1,1,1);
  1861. }
  1862. if(strcmp(anims, "2", true) == 0)
  1863. {
  1864. ApplyAnimation(playerid,"PED","WALK_gang2",4.1,1,1,1,1,1);
  1865. }
  1866. }
  1867. return 1;
  1868. }
  1869. ////////////////////////////////////////////////////////////////////////////////
  1870. CMD:aim(playerid, params[])
  1871. {
  1872. if(sscanf(params, "s", anims))
  1873. {
  1874. SendClientMessage(playerid, 0x33AA33AA, "Uso correto: /aim [1-3]");
  1875. }
  1876. else
  1877. {
  1878. if(strcmp(anims, "1", true) == 0)
  1879. {
  1880. ApplyAnimation(playerid,"PED","gang_gunstand",4.0,1,1,1,1,1);
  1881. }
  1882. if(strcmp(anims, "2", true) == 0)
  1883. {
  1884. ApplyAnimation(playerid,"PED","Driveby_L",4.0,0,1,1,1,1);
  1885. }
  1886. if(strcmp(anims, "3", true) == 0)
  1887. {
  1888. ApplyAnimation(playerid,"PED","Driveby_R",4.0,0,1,1,1,1);
  1889. }
  1890. }
  1891. return 1;
  1892. }
  1893. ////////////////////////////////////////////////////////////////////////////////
  1894. CMD:lean(playerid, params[])
  1895. {
  1896. if(sscanf(params, "s", anims))
  1897. {
  1898. SendClientMessage(playerid, 0x33AA33AA, "Uso correto: /lean [1-2]");
  1899. }
  1900. else
  1901. {
  1902. if(strcmp(anims, "1", true) == 0)
  1903. {
  1904. ApplyAnimation(playerid,"GANGS","leanIDLE",4.0,0,1,1,1,0);
  1905. }
  1906. if(strcmp(anims, "2", true) == 0)
  1907. {
  1908. ApplyAnimation(playerid,"MISC","Plyrlean_loop",4.0,0,1,1,1,0);
  1909. }
  1910. }
  1911. return 1;
  1912. }
  1913. ////////////////////////////////////////////////////////////////////////////////
  1914. CMD:strip(playerid, params[])
  1915. {
  1916. if(sscanf(params, "s", anims))
  1917. {
  1918.  
  1919. SendClientMessage(playerid, 0x33AA33AA, "Uso correto: /strip [a-g]");
  1920. }
  1921. else
  1922. {
  1923. if(strcmp(anims, "a", true) == 0)
  1924. {
  1925.  
  1926. ApplyAnimation(playerid,"STRIP", "strip_A", 4.1, 1, 1, 1, 1, 1 );
  1927. }
  1928. if(strcmp(anims, "b", true) == 0)
  1929. {
  1930.  
  1931. ApplyAnimation(playerid,"STRIP", "strip_B", 4.1, 1, 1, 1, 1, 1 );
  1932. }
  1933. if(strcmp(anims, "c", true) == 0)
  1934. {
  1935.  
  1936. ApplyAnimation(playerid,"STRIP", "strip_C", 4.1, 1, 1, 1, 1, 1 );
  1937. }
  1938. if(strcmp(anims, "d", true) == 0)
  1939. {
  1940.  
  1941. ApplyAnimation(playerid,"STRIP", "strip_D", 4.1, 1, 1, 1, 1, 1 );
  1942. }
  1943. if(strcmp(anims, "e", true) == 0)
  1944. {
  1945.  
  1946. ApplyAnimation(playerid,"STRIP", "strip_E", 4.1, 1, 1, 1, 1, 1 );
  1947. }
  1948. if(strcmp(anims, "f", true) == 0)
  1949. {
  1950.  
  1951. ApplyAnimation(playerid,"STRIP", "strip_F", 4.1, 1, 1, 1, 1, 1 );
  1952. }
  1953. if(strcmp(anims, "g", true) == 0)
  1954. {
  1955.  
  1956. ApplyAnimation(playerid,"STRIP", "strip_G", 4.1, 1, 1, 1, 1, 1 );
  1957. }
  1958. }
  1959. return 1;
  1960. }
  1961. ////////////////////////////////////////////////////////////////////////////////
  1962. CMD:dance(playerid, params[])
  1963. {
  1964. if(sscanf(params, "s", anims))
  1965. {
  1966.  
  1967. SendClientMessage(playerid, 0x33AA33AA, "Uso correto: /dance [1-3]");
  1968. }
  1969. else
  1970. {
  1971. if(strcmp(anims, "1", true) == 0)
  1972. {
  1973.  
  1974. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
  1975. }
  1976. if(strcmp(anims, "2", true) == 0)
  1977. {
  1978.  
  1979. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE2);
  1980. }
  1981. if(strcmp(anims, "3", true) == 0)
  1982. {
  1983.  
  1984. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE3);
  1985. }
  1986. }
  1987. return 1;
  1988. }
  1989. ////////////////////////////////////////////////////////////////////////////////
  1990. /*===========================***[TERMINO-ZCMD]***=============================*/
  1991. ////////////////////////////////////////////////////////////////////////////////
  1992. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  1993. {
  1994. if(dialogid == Dialog_VetGrau)
  1995. {
  1996. if(response)
  1997. {
  1998. if(listitem == 0)
  1999. {
  2000. VetOn[playerid] = 1;
  2001. }
  2002. if(listitem == 1)
  2003. {
  2004. VetOn[playerid] = 2;
  2005. }
  2006. if(listitem == 2)
  2007. {
  2008. VetOn[playerid] = 3;
  2009. }
  2010. if(listitem == 3)
  2011. {
  2012. VetOn[playerid] = 4;
  2013. }
  2014. if(listitem == 4)
  2015. {
  2016. VetOn[playerid] = 5;
  2017. }
  2018. if(listitem == 5)
  2019. {
  2020. VetOn[playerid] = 6;
  2021. }
  2022. if(listitem == 6)
  2023. {
  2024. VetOn[playerid] = 7;
  2025. }
  2026. if(listitem == 7)
  2027. {
  2028. VetOn[playerid] = 8;
  2029. }
  2030. if(listitem == 8)
  2031. {
  2032. ShowPlayerDialog(playerid, 321465 , DIALOG_STYLE_MSGBOX, "Sistema Voop" , "Sistema de Voop Desativado" , "Sair" ,"");
  2033. VetOn[playerid] = 0;
  2034. }
  2035. if(listitem == 9)
  2036. {
  2037. new Texto[300];
  2038. format(Texto,300,"{6600FF}Ajuda como Usar o Vetgrau\n");
  2039. strcat(Texto,"{6600FF}» /Vetgrau , Entre em um Carro Depois do escolha o Modo Voop e clique com LMB (MOUSE)\n");
  2040. ShowPlayerDialog(playerid,Dialog_Ajuda2, DIALOG_STYLE_MSGBOX, "{66FF00}Sistema De \t\tGrau\t\t ",Texto, "Sair", "");
  2041. }
  2042. }
  2043. return 1;
  2044. }
  2045. ////////////////////////////////////////////////////////////////////////////////
  2046. if(dialogid == DIALOG_PREMIOS)
  2047. {
  2048. if(response)
  2049. {
  2050. if(listitem == 0)
  2051. {
  2052. if(Gold[playerid] >= 10)
  2053. {
  2054. Gold[playerid] -= 10;
  2055. new String[128];
  2056. GivePlayerMoney(playerid, 1000);
  2057. SendClientMessage(playerid, -1, "{7FFFD4} Você ganhou {7CFC00}R${AFEEEE} 1000,00");
  2058. format(String, sizeof(String), "{7FFFD4}Você Gastou {AFEEEE}10{7FFFD4} Gold's, e agora tem {AFEEEE}%d{7FFFD4} de Gold!", Gold[playerid]);
  2059. SendClientMessage(playerid, -1, String);
  2060. }
  2061. else
  2062. {
  2063. SendClientMessage(playerid, -1, "{FFA500}[ERRO] {E0FFFF}Você não tem 10 Gold's!");
  2064. }
  2065. }
  2066. else if (listitem == 1)
  2067. {
  2068. if(Gold[playerid] >= 20)
  2069. {
  2070. Gold[playerid] -= 20;
  2071. new String[128];
  2072. GivePlayerMoney(playerid, 2000);
  2073. SendClientMessage(playerid, -1, "{7FFFD4} Você ganhou {7CFC00}R${AFEEEE} 2000,00");
  2074. format(String, sizeof(String), "{7FFFD4}Você Gastou {AFEEEE}20{7FFFD4} Gold's, e agora tem {AFEEEE}%d{7FFFD4} de Gold!", Gold[playerid]);
  2075. SendClientMessage(playerid, -1, String);
  2076. }
  2077. else
  2078. {
  2079. SendClientMessage(playerid, -1, "{FFA500}[ERRO] {E0FFFF}Você não tem 20 Gold's!");
  2080. }
  2081. }
  2082. else if (listitem == 2)
  2083. {
  2084. if(Gold[playerid] >= 50)
  2085. {
  2086. Gold[playerid] -= 50;
  2087. new String[128];
  2088. GivePlayerMoney(playerid, 10000);
  2089. SendClientMessage(playerid, -1, "{7FFFD4} Você ganhou {7CFC00}R${AFEEEE} 10000,00");
  2090. format(String, sizeof(String), "{7FFFD4}Você Gastou {AFEEEE}50{7FFFD4} Gold's, e agora tem {AFEEEE}%d{7FFFD4} de Gold!", Gold[playerid]);
  2091. SendClientMessage(playerid, -1, String);
  2092. }
  2093. else
  2094. {
  2095. SendClientMessage(playerid, -1, "{FFA500}[ERRO] {E0FFFF}Você não tem 50 Gold's!");
  2096. }
  2097. }
  2098. else if (listitem == 3)
  2099. {
  2100. if(Gold[playerid] >= 100)
  2101. {
  2102. Gold[playerid] -= 100;
  2103. new String[128];
  2104. GivePlayerMoney(playerid, 30000);
  2105. SendClientMessage(playerid, -1, "{7FFFD4} Você ganhou {7CFC00}R${AFEEEE} 30000,00");
  2106. format(String, sizeof(String), "{7FFFD4}Você Gastou {AFEEEE}100{7FFFD4} Gold's, e agora tem {AFEEEE}%d{7FFFD4} de Gold!", Gold[playerid]);
  2107. SendClientMessage(playerid, -1, String);
  2108. }
  2109. else
  2110. {
  2111. SendClientMessage(playerid, -1, "{FFA500}[ERRO] {E0FFFF}Você não tem 100 Gold's!");
  2112. }
  2113. }
  2114. else if (listitem == 4)
  2115. {
  2116. if(Gold[playerid] >= 500)
  2117. {
  2118. Gold[playerid] -= 500;
  2119. new String[128];
  2120. GivePlayerMoney(playerid, 200000);
  2121. SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
  2122. SendClientMessage(playerid, -1, "{7FFFD4} Você ganhou {7CFC00}R${AFEEEE} 200000,00{7FFFD4} e {AFEEEE}1{7FFFD4} Nível");
  2123. format(String, sizeof(String), "{7FFFD4}Você Gastou {AFEEEE}500{7FFFD4} Gold's, e agora tem {AFEEEE}%d{7FFFD4} de Gold!", Gold[playerid]);
  2124. SendClientMessage(playerid, -1, String);
  2125. }
  2126. else
  2127. {
  2128. SendClientMessage(playerid, -1, "{FFA500}[ERRO] {E0FFFF}Você não tem 500 Gold's!");
  2129. }
  2130. }
  2131. else if (listitem == 5)
  2132. {
  2133. if(Gold[playerid] >= 750)
  2134. {
  2135. Gold[playerid] -= 750;
  2136. new String[128];
  2137. GivePlayerMoney(playerid, 500000);
  2138. SetPlayerScore(playerid, GetPlayerScore(playerid) + 3);
  2139. SendClientMessage(playerid, -1, "{7FFFD4} Você ganhou {7CFC00}R${AFEEEE} 500000,00{7FFFD4} e {AFEEEE}3{7FFFD4} Níveis");
  2140. format(String, sizeof(String), "{7FFFD4}Você Gastou {AFEEEE}750{7FFFD4} Gold's, e agora tem {AFEEEE}%d{7FFFD4} de Gold!", Gold[playerid]);
  2141. SendClientMessage(playerid, -1, String);
  2142. }
  2143. else
  2144. {
  2145. SendClientMessage(playerid, -1, "{FFA500}[ERRO] {E0FFFF}Você não tem 750 Gold's!");
  2146. }
  2147. }
  2148. else if (listitem == 6)
  2149. {
  2150. if(Gold[playerid] >= 1000)
  2151. {
  2152. Gold[playerid] -= 1000;
  2153. new String[128];
  2154. GivePlayerMoney(playerid, 1000000);
  2155. SetPlayerScore(playerid, GetPlayerScore(playerid) + 10);
  2156. SendClientMessage(playerid, -1, "{7FFFD4} Você ganhou {7CFC00}R${AFEEEE} 1.000.000,00{7FFFD4} e {AFEEEE}10{7FFFD4} Níveis");
  2157. format(String, sizeof(String), "{7FFFD4}Você Gastou {AFEEEE}1000{7FFFD4} Gold's, e agora tem {AFEEEE}%d{7FFFD4} de Gold!", Gold[playerid]);
  2158. SendClientMessage(playerid, -1, String);
  2159. }
  2160. else
  2161. {
  2162. SendClientMessage(playerid, -1, "{FFA500}[ERRO] {E0FFFF}Você não tem 1000 Gold's!");
  2163. }
  2164. }
  2165. }
  2166. return 1;
  2167. }
  2168. ////////////////////////////////////////////////////////////////////////////////
  2169. if(dialogid == REGISTRO)
  2170. {
  2171. if(response)
  2172. {
  2173. if(!strlen(inputtext))
  2174. {
  2175. new Nome[MAX_PLAYER_NAME];
  2176. GetPlayerName(playerid, Nome, sizeof(Nome));
  2177. new String[150];
  2178. format(String, sizeof(String), "Nick: %s nao Registrado\n\n Digite Uma Senha Para Continuar", Nome);
  2179. ShowPlayerDialog(playerid, REGISTRO, DIALOG_STYLE_INPUT, "Registro", String, "Registrar", "Cancelar");
  2180. SendClientMessage(playerid,0x1E90FFAA,"Senha invalida, digite uma senha valida");
  2181. return 1;
  2182. }
  2183. ////////////////////////////////////////////////////////////////////////////////
  2184. new Nome[MAX_PLAYER_NAME];
  2185. GetPlayerName(playerid, Nome, sizeof(Nome));
  2186. new String[124];
  2187. format(String, sizeof(String), CONTAS, Nome);
  2188. DOF2_CreateFile(String);
  2189. DOF2_SetString(String,"Senha",inputtext);
  2190. DOF2_SetInt(String, "Grana",0);
  2191. DOF2_SetInt(String,"Level",0);
  2192. DOF2_SetInt(String,"Matou",0);
  2193. DOF2_SetInt(String,"Morreu",0);
  2194. DOF2_SetInt(String,"Logou",0);
  2195. DOF2_SetInt(String,"Admin",0);
  2196. ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "Login", "Status Registrado\n\n Digite Sua Senha Para Logar", "Logar", "Cancelar");
  2197. return 1;
  2198. }
  2199. ////////////////////////////////////////////////////////////////////////////////
  2200. else
  2201. {
  2202. SendClientMessage(playerid, 0xFF0000AA, "Voce Foi Kickado Porque nao Quis Se Registrar!!");
  2203. Kick(playerid);
  2204. return 1;
  2205. }
  2206. }
  2207. ////////////////////////////////////////////////////////////////////////////////
  2208. if(dialogid == LOGIN)
  2209. {
  2210. if(response)
  2211. {
  2212. if(!strlen(inputtext))
  2213. {
  2214. new Nome[MAX_PLAYER_NAME];
  2215. GetPlayerName(playerid, Nome, sizeof(Nome));
  2216. new String[150];
  2217. format(String, sizeof(String), "Nick: %s Registrado\n\n Digite Sua Senha Para Logar", Nome);
  2218. ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "Registro", String, "Logar", "Cancelar");
  2219. SendClientMessage(playerid,0x1E90FFAA,"Senha Incorreta !");
  2220. return 1;
  2221. }
  2222. ////////////////////////////////////////////////////////////////////////////////
  2223. new Nome[MAX_PLAYER_NAME];
  2224. GetPlayerName(playerid, Nome, sizeof(Nome));
  2225. new String[124];
  2226. format(String, sizeof(String), CONTAS, Nome);
  2227. if(!strcmp(inputtext,DOF2_GetString(String,"Senha"),false))
  2228. {
  2229. SetarPlayer(playerid);
  2230. PlayerInfo[playerid][Logou] ++;
  2231. SendClientMessage(playerid,0x00FF00AA,"Você foi logado com sucesso Escolha sua skin");
  2232. return 1;
  2233. }
  2234. ////////////////////////////////////////////////////////////////////////////////
  2235. else
  2236. {
  2237. SendClientMessage(playerid,0x00FF00AA,"Senha incorreta digite-a novamente");
  2238. format(String, sizeof(String), "Nick: %s Registrado\n\n Digite Sua Senha Para Logar", Nome);
  2239. ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "Registro", String, "Logar", "Cancelar");
  2240. }
  2241. return 1;
  2242. }
  2243. ////////////////////////////////////////////////////////////////////////////////
  2244. else
  2245. {
  2246. SendClientMessage(playerid, 0xFF0000AA, "Você não quis se logar, por este motivo será Kickado");
  2247. Kick(playerid);
  2248. return 1;
  2249. }
  2250. }
  2251. ////////////////////////////////////////////////////////////////////////////////
  2252. return 1;
  2253. }
  2254. ////////////////////////////////////////////////////////////////////////////////
  2255. SalvarPlayer(playerid)
  2256. {
  2257. new Nome[MAX_PLAYER_NAME];
  2258. GetPlayerName(playerid, Nome, sizeof(Nome));
  2259. new String[50];
  2260. format(String, sizeof(String), CONTAS, Nome);
  2261. DOF2_SetInt(String,"Level", GetPlayerScore(playerid));
  2262. DOF2_SetInt(String,"Grana", GetPlayerMoney(playerid));
  2263. DOF2_SetInt(String,"Matou", PlayerInfo[playerid][Matou]);
  2264. DOF2_SetInt(String,"Morreu", PlayerInfo[playerid][Morreu]);
  2265. DOF2_SetInt(String,"Logou", PlayerInfo[playerid][Logou]);
  2266. DOF2_SetInt(String,"Admin", PlayerInfo[playerid][Admin]);
  2267. DOF2_SaveFile();
  2268. return 1;
  2269. }
  2270. ////////////////////////////////////////////////////////////////////////////////
  2271. SetarPlayer(playerid)
  2272. {
  2273. new Nome[MAX_PLAYER_NAME];
  2274. GetPlayerName(playerid, Nome, sizeof(Nome));
  2275. new String[50];
  2276. format(String, sizeof(String), CONTAS, Nome);
  2277. SetPlayerScore(playerid,PlayerInfo[playerid][Level]);
  2278. PlayerInfo[playerid][Grana] = DOF2_GetInt(String,"Grana");
  2279. PlayerInfo[playerid][Level] = DOF2_GetInt(String, "Level");
  2280. PlayerInfo[playerid][Matou] = DOF2_GetInt(String, "Matou");
  2281. PlayerInfo[playerid][Morreu] = DOF2_GetInt(String, "Morreu");
  2282. PlayerInfo[playerid][Logou] = DOF2_GetInt(String, "Logou");
  2283. PlayerInfo[playerid][Admin] = DOF2_GetInt(String, "Admin");
  2284. return 1;
  2285. }
  2286. ////////////////////////////////////////////////////////////////////////////////
  2287. stock LoadDynamicObjectsFromFile(filename[])
  2288. {
  2289. new File:file_ptr, line[256], modelid, Float:SpawnX, Float:SpawnY, Float:SpawnZ, Float:SpawnRotX, Float:SpawnRotY, Float:SpawnRotZ, objects_loaded;
  2290. file_ptr = fopen(filename, io_read);
  2291. if(!file_ptr) return printf("ERRO! Falha ao carregar objetos do arquivo %s (Arquivo não existe no diretório scriptfiles)!", filename);
  2292. while(fread(file_ptr, line) > 0)
  2293. {
  2294. if(!sscanf(line, "p<,>'('dfffffp<)>f", modelid, SpawnX, SpawnY, SpawnZ, SpawnRotX, SpawnRotY, SpawnRotZ))
  2295. {
  2296. CreateDynamicObject(modelid, SpawnX, SpawnY, SpawnZ, SpawnRotX, SpawnRotY, SpawnRotZ, -1, -1, -1, 200.0);
  2297. objects_loaded++;
  2298. }
  2299. }
  2300. fclose(file_ptr);
  2301. return printf("Objetos: %d carregado(s) de %s", objects_loaded, filename);
  2302. }
  2303. ////////////////////////////////////////////////////////////////////////////////
  2304. stock LoadStaticVehiclesFromFile(filename[])
  2305. {
  2306. new File:file_ptr, line[256], Color1, Color2, modelid, Float:SpawnX, Float:SpawnY, Float:SpawnZ, Float:SpawnRot, vehicles_loaded;
  2307. file_ptr = fopen(filename, io_read);
  2308. if(!file_ptr)
  2309. {
  2310. return printf("ERRO! Falha ao carregar veículos do arquivo %s (O arquivo não existe no diretório scriptfiles)!", filename);
  2311. }
  2312. while(fread(file_ptr, line) > 0)
  2313. {
  2314. if(!sscanf(line, "p<,>dffffdd", modelid, SpawnX, SpawnY, SpawnZ, SpawnRot, Color1, Color2))
  2315. {
  2316. AddStaticVehicleEx(modelid, SpawnX, SpawnY, SpawnZ, SpawnRot, Color1, Color2, -1);
  2317. vehicles_loaded++;
  2318. }
  2319. }
  2320. fclose(file_ptr);
  2321. return printf("Veículos: %d carregado(s) de %s", vehicles_loaded, filename);
  2322. }
  2323. ////////////////////////////////////////////////////////////////////////////////
  2324. public OnPlayerUpdate(playerid)
  2325. {
  2326. new string[128];
  2327. format(string, sizeof(string), "%08d", GetPlayerMoney(playerid));
  2328. TextDrawSetString(Ft[playerid], string);
  2329. return 0;
  2330. }
  2331. ////////////////////////////////////////////////////////////////////////////////
  2332. stock PlayerName(playerid)
  2333. {
  2334. new PlayerNameGold[MAX_PLAYERS];
  2335. GetPlayerName(playerid, PlayerNameGold, MAX_PLAYERS);
  2336. return PlayerNameGold;
  2337. }
  2338. ////////////////////////////////////////////////////////////////////////////////
  2339. forward ActualizarTextDraws();
  2340. ////////////////////////////////////////////////////////////////////////////////
  2341. public ActualizarTextDraws()
  2342. {
  2343. new String[100];
  2344.  
  2345. for(new playerid = 0; playerid < MAX_PLAYERS; playerid ++)
  2346. {
  2347. if(IsPlayerConnected(playerid))
  2348. {
  2349. format(String, sizeof(String), "Gold: %d", Gold[playerid]);
  2350. TextDrawSetString(GoldCat[playerid], String);
  2351. TextDrawShowForPlayer(playerid, GoldCat[playerid]);
  2352. }
  2353. }
  2354. }
  2355. ////////////////////////////////////////////////////////////////////////////////
  2356. forward Timer(playerid);
  2357. ////////////////////////////////////////////////////////////////////////////////
  2358. public Timer(playerid)
  2359. {
  2360. tGold[playerid]++;
  2361. if(tGold[playerid] == 3)
  2362. {
  2363. Gold[playerid]++;
  2364. SendClientMessage(playerid,-1,"{FF3D3D}[INFO]{FFFFFF} Parabéns, você ganhou 1 Gold!");
  2365. tGold[playerid] = 0;
  2366. }
  2367. return 1;
  2368. }
  2369. ////////////////////////////////////////////////////////////////////////////////
  2370. public OnPlayerExitedMenu(playerid)
  2371. {
  2372. TextDrawHideForPlayer(playerid, textdraw0);
  2373. TextDrawHideForPlayer(playerid, textdraw1);
  2374. TextDrawHideForPlayer(playerid, textdraw2);
  2375. TextDrawHideForPlayer(playerid, textdraw3);
  2376. TextDrawHideForPlayer(playerid, textdraw4);
  2377. TextDrawHideForPlayer(playerid, textdraw5);
  2378. TogglePlayerControllable(playerid, true);
  2379. return 1;
  2380. }
  2381. ////////////////////////////////////////////////////////////////////////////////
  2382. public OnPlayerSelectedMenuRow(playerid, row)
  2383. {
  2384. ////////////////////////////////////////////////////////////////////////////////
  2385. new Menu: Current = GetPlayerMenu(playerid);
  2386. ////////////////////////////////////////////////////////////////////////////////
  2387. if(Current == kits)
  2388. {
  2389. switch(row)
  2390. {
  2391. case 0:
  2392. {
  2393. TextDrawHideForPlayer(playerid, textdraw0);
  2394. TextDrawHideForPlayer(playerid, textdraw1);
  2395. TextDrawHideForPlayer(playerid, textdraw2);
  2396. TextDrawHideForPlayer(playerid, textdraw3);
  2397. TextDrawHideForPlayer(playerid, textdraw4);
  2398. TextDrawHideForPlayer(playerid, textdraw5);
  2399. if(GetPlayerMoney(playerid) >=1500)
  2400. {
  2401. GivePlayerWeapon(playerid, 28, 200);
  2402. GivePlayerWeapon(playerid, 27, 50);
  2403. GivePlayerWeapon(playerid, 24, 40);
  2404. GivePlayerWeapon(playerid, 16, 10);
  2405. GivePlayerMoney(playerid, -1500);
  2406. return SendClientMessage(playerid, green, "Kit comprado.");
  2407. }
  2408. else return SendClientMessage(playerid, red, ":( Você não tem dinheiro suficiente!");
  2409. }
  2410. case 1:
  2411. {
  2412. TextDrawHideForPlayer(playerid, textdraw0);
  2413. TextDrawHideForPlayer(playerid, textdraw1);
  2414. TextDrawHideForPlayer(playerid, textdraw2);
  2415. TextDrawHideForPlayer(playerid, textdraw3);
  2416. TextDrawHideForPlayer(playerid, textdraw4);
  2417. TextDrawHideForPlayer(playerid, textdraw5);
  2418. if(GetPlayerMoney(playerid) >=1500)
  2419. {
  2420. GivePlayerWeapon(playerid, 32, 250);
  2421. GivePlayerWeapon(playerid, 25, 25);
  2422. GivePlayerWeapon(playerid, 31, 200);
  2423. GivePlayerWeapon(playerid, 24, 25);
  2424. GivePlayerWeapon(playerid, 18, 5);
  2425. GivePlayerMoney(playerid, -1500);
  2426. return SendClientMessage(playerid, green, "Kit comprado.");
  2427. }
  2428. else return SendClientMessage(playerid, red, ":( Você não tem dinheiro suficiente!");
  2429. }
  2430. case 2:
  2431. {
  2432. TextDrawHideForPlayer(playerid, textdraw0);
  2433. TextDrawHideForPlayer(playerid, textdraw1);
  2434. TextDrawHideForPlayer(playerid, textdraw2);
  2435. TextDrawHideForPlayer(playerid, textdraw3);
  2436. TextDrawHideForPlayer(playerid, textdraw4);
  2437. TextDrawHideForPlayer(playerid, textdraw5);
  2438. if(GetPlayerMoney(playerid) >=2500)
  2439. {
  2440. GivePlayerWeapon(playerid,26,250);
  2441. GivePlayerWeapon(playerid,28,200);
  2442. GivePlayerWeapon(playerid,30,300);
  2443. GivePlayerWeapon(playerid,22,100);
  2444. GivePlayerMoney(playerid, -2500);
  2445. return SendClientMessage(playerid, green, "Kit comprado.");
  2446. }
  2447. else return SendClientMessage(playerid, red, ":( Você não tem dinheiro suficiente!");
  2448. }
  2449. case 3:
  2450. {
  2451. TextDrawHideForPlayer(playerid, textdraw0);
  2452. TextDrawHideForPlayer(playerid, textdraw1);
  2453. TextDrawHideForPlayer(playerid, textdraw2);
  2454. TextDrawHideForPlayer(playerid, textdraw3);
  2455. TextDrawHideForPlayer(playerid, textdraw4);
  2456. TextDrawHideForPlayer(playerid, textdraw5);
  2457. if(GetPlayerMoney(playerid) >=2500)
  2458. {
  2459. GivePlayerMoney(playerid, -2500);
  2460. GivePlayerWeapon(playerid,27, 50);
  2461. GivePlayerWeapon(playerid,32, 500);
  2462. GivePlayerWeapon(playerid,24, 50);
  2463. GivePlayerWeapon(playerid,31, 200);
  2464. return SendClientMessage(playerid,green, "Kit comprado.");
  2465. }
  2466. else return SendClientMessage(playerid, red, ":( Você não tem dinheiro suficiente! ");
  2467. }
  2468. case 4:
  2469. {
  2470. TextDrawHideForPlayer(playerid, textdraw0);
  2471. TextDrawHideForPlayer(playerid, textdraw1);
  2472. TextDrawHideForPlayer(playerid, textdraw2);
  2473. TextDrawHideForPlayer(playerid, textdraw3);
  2474. TextDrawHideForPlayer(playerid, textdraw4);
  2475. TextDrawHideForPlayer(playerid, textdraw5);
  2476. if(GetPlayerMoney(playerid) >=5000)
  2477. {
  2478. GivePlayerWeapon(playerid,26, 200);
  2479. GivePlayerWeapon(playerid,32, 500);
  2480. GivePlayerWeapon(playerid,24, 50);
  2481. GivePlayerWeapon(playerid,31, 200);
  2482. GivePlayerMoney(playerid, -5000);
  2483. return SendClientMessage(playerid,green, "Kit comprado.");
  2484. }
  2485. else return SendClientMessage(playerid, red, ":( Você não tem dinheiro suficiente! ");
  2486. }
  2487. case 5:
  2488. { TextDrawHideForPlayer(playerid, textdraw0);
  2489. TextDrawHideForPlayer(playerid, textdraw1);
  2490. TextDrawHideForPlayer(playerid, textdraw2);
  2491. TextDrawHideForPlayer(playerid, textdraw3);
  2492. TextDrawHideForPlayer(playerid, textdraw4);
  2493. TextDrawHideForPlayer(playerid, textdraw5);
  2494.  
  2495. if(GetPlayerMoney(playerid) >=15000)
  2496. {
  2497. GivePlayerMoney(playerid, -15000);
  2498. GivePlayerWeapon(playerid, 29, 200);
  2499. GivePlayerWeapon(playerid, 31, 200);
  2500. GivePlayerWeapon(playerid, 16, 10);
  2501. GivePlayerWeapon(playerid, 35, 50);
  2502. return SendClientMessage(playerid,green, "Kit comprado.");
  2503. }
  2504. else return SendClientMessage(playerid, red, ":( Você não tem dinheiro suficiente! ");
  2505. }
  2506. case 6:
  2507. { TextDrawHideForPlayer(playerid, textdraw0);
  2508. TextDrawHideForPlayer(playerid, textdraw1);
  2509. TextDrawHideForPlayer(playerid, textdraw2);
  2510. TextDrawHideForPlayer(playerid, textdraw3);
  2511. TextDrawHideForPlayer(playerid, textdraw4);
  2512. TextDrawHideForPlayer(playerid, textdraw5);
  2513. HideMenuForPlayer(kits,playerid);
  2514. TogglePlayerControllable(playerid,true);
  2515. }
  2516. }
  2517. }
  2518. return 1;
  2519. }
  2520. ////////////////////////////////////////////////////////////////////////////////
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement