Advertisement
Guest User

TDMfusion

a guest
May 1st, 2011
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 153.96 KB | None | 0 0
  1. /==================== [ Includes ] =====================
  2. #include <a_samp>
  3. #include <core>
  4. #include <float>
  5. #include <dini>
  6. #include <dudb>
  7.  
  8. #pragma tabsize 0
  9. #pragma unused ret_memcpy
  10.  
  11. //============= [ text draw em cima ] ===================
  12. #if defined FILTERSCRIPT
  13. #endif
  14. new Text:textdraw;
  15. //========[ DROP WEAPONS ] ===========================
  16. #define MAX_DROP_AMOUNT -1
  17. #define MAX_DROP_LIFETIME 30
  18.  
  19. #define WEAPON_SLOTS 13
  20. #define INVALID_PICKUP -1
  21. #define MAX_PICKUPS 90
  22. #define PICKUP_TYPE 19
  23. forward DestroyPickupEx( p );
  24.  
  25. enum pickup
  26. {
  27. creation_time,
  28. weapon,
  29. ammo,
  30. timer
  31. }
  32. new pickups [ MAX_PICKUPS ][ pickup ];
  33. //======== [ hexadecimáis do SendClientMessage ] ========
  34. //{FF6347}"[RADIO]"
  35. //{90EE90}"[FusioN TDM]"
  36. //{8470FF}"/comando"
  37. //{D2D2FF}"Texto padrão"
  38. //{FFFF00}"[INFO]"
  39. //{00FA9A}"[JOGADOR]"
  40. //{0000FF}"[EVENTOS]"
  41. //{8B658B}"[TELEPORTE]"
  42. //{FF0000}"[ERRO]"
  43. //{33CCFF}"[ADMIN]"
  44. //{4169E1}"Números"
  45. //{4682B4}"[MP]"
  46. //=======================================================
  47.  
  48. //============== [ Cores do Servidor ] ==================
  49. //--------------------- 3D Label ------------------------
  50. #define COR_TEXTO3D 0xF68E00F6
  51. //-------------------- gangzone -------------------------
  52. #define COR_GZ 0xFFFFFF96
  53. #define COR_FLASHVERMELHO 0xFF6347AA
  54. //-------------------------------------------------------
  55. #define COR_CINZA 0xAFAFAFAA
  56. #define COR_VERDE 0x33AA33AA
  57. #define COR_VERMELHA 0xAA3333AA
  58. #define COR_AMARELA 0xFFFF00AA
  59. #define COR_BRANCA 0xFFFFFFAA
  60. #define COR_INFO 0xD2D2FFFF
  61. #define COR_AZULCLARO 0x33CCFFAA
  62. //----------------------- MENSAGEM PRIVADA--------------
  63. #define Vermelho 0xFF5B5BAA
  64. #define Verde 0xA9FF53AA
  65. #define Amarelo 0xFCBE03AA
  66. //---------------------- ORGS ---------------------------
  67. #define COR_GROVE 0x00D900C8 //Grove
  68. #define COR_VAGOS 0xFFC801C8 //Vagos
  69. #define COR_BALLAS 0xD900D3C8 //Ballas
  70. #define COR_AZTECAS 0x2641FEC8 //Aztecas
  71. #define COR_SFPD 0x7491F6F6 //SF:PD
  72. #define COR_CV 0xFF5B5BAA // COMANDO VERMELHO
  73. //--------------------- dialog --------------------------
  74. #define GROVE 5
  75. #define VAGOS 6
  76. #define BALLAS 7
  77. #define AZTECAS 8
  78. #define SFPD 9
  79. #define CV 10
  80. #define SKINGROVE 12
  81. #define SKINVAGOS 13
  82. #define SKINBALLAS 14
  83. #define SKINAZTECAS 15
  84. #define SKINSFPD 16
  85. #define SKINCV 17
  86. //================== [ Stock de nome ] ==================
  87. stock NomeDoJogador(playerid)
  88. {
  89. new Nome[MAX_PLAYER_NAME];
  90. GetPlayerName(playerid, Nome, MAX_PLAYER_NAME);
  91. return Nome;
  92. }
  93. //=======================================================
  94. // NOME DO SERVIDOR
  95. new contagem = 0;
  96. new ServidorNome[7][128] = {
  97. "[FusioN] FusioN TeamDeath Match BR",
  98. "[FusioN] FusioN TeamDeath Match BR",
  99. "[FusioN] FusioN TeamDeath Match BR",
  100. "[FusioN] fusion-games.forumeiros.com",
  101. "[FusioN] fusion-games.forumeiros.com",
  102. "[FusioN] Versão 0.3c",
  103. "[FusioN] Versão 0.3c"
  104. };
  105.  
  106. //================ * ~ [ News Diversas ] ~ * =================
  107. //====================== [ Banimento ] =======================
  108. new ano, mes,dia;
  109. new hora, minuto, segundo;
  110. //==================== [ Atuaalizar GM ] =====================
  111. forward GameModeInitExitFunc();
  112. forward GameModeExitFunc();
  113. //==================[ text draw ] =============================
  114. new Text:Textdraw1;
  115. new Text:fusion;
  116. //==================[ drop armas ] ==========================
  117. new weapons[] =
  118. {
  119. -1, // no fists
  120. 331, // - Brass Knuckles
  121. 333, // Golf Club
  122. 334, // Night Stick
  123. 335, // Knife
  124. 336, // baseball bat
  125. 337, // shovel
  126. 338, // pool cue
  127. 339, // katama
  128. 341, // chainsaw
  129. 321, // regular dildo
  130. 322, // white dildo
  131. 323, // Medium, white vibrator
  132. 324, // smaill, silver vibrator
  133. 325, // flowers
  134. 326, // cane
  135. 342, // grendade
  136. 343, // tear gas
  137. 344, // molotov
  138. -1, // RPG rocket - we can't pick up those, do we oO
  139. -1, // Heat-Seeking Rocket
  140. -1, // Hydra rocket
  141. 346, // colt 45
  142. 347, // colt 45 + silencer
  143. 348, // deagle
  144. 349, // shotgun
  145. 350, // sawn-off
  146. 351, // spaz
  147. 352, // micro-uzi
  148. 353, // mp5
  149. 355, // ak47
  150. 356, // m4
  151. 372, // tec9
  152. 357, // country rifle
  153. 358, // sniper rifle
  154. 359, // rocket launcher
  155. 360, // heat-seeking rocket launcher
  156. 361, // flamethrower
  157. 362, // minigun
  158. 363, // sachtel charges
  159. -1, // detonator
  160. 365, // spray can
  161. 366, // fire extinguisher
  162. 367, // camera
  163. -1, // night-vision goggles
  164. -1, // heat-vision goggles
  165. 371 // parachute
  166. };
  167.  
  168. //============================================================
  169. new gstring[256];
  170. //================= [ Sistema de gangzone ] ==================
  171. new Dominando[MAX_PLAYERS];
  172. //-- Construção
  173. new GuerranaConstrucao;
  174. new GZConstrucao;
  175. new ProvocouConstrucao[MAX_PLAYERS];
  176. new TempoDeGuerraNaConstrucao;
  177. forward GuerraConstrucao(playerid);
  178. new donodaconstrucao;
  179. stock JogadorNaConstrucao(playerid)
  180. {
  181. new Float:x,Float:y,Float:z;
  182. GetPlayerPos(playerid, x, y, z);
  183. if(x >= -2132.02 && y >= 136.4459 && x <= -2008.414 && y <= 325.8042) return 1;
  184. else return 0;
  185. }
  186. //-- Puteiro
  187. new GuerranoPuteiro;
  188. new GZPuteiro;
  189. new ProvocouPuteiro[MAX_PLAYERS];
  190. new TempoDeGuerraNoPuteiro;
  191. forward GuerraPuteiro(playerid);
  192. new donodoputeiro;
  193. stock JogadorNoPuteiro(playerid)
  194. {
  195. new Float:x,Float:y,Float:z;
  196. GetPlayerPos(playerid, x, y, z);
  197. if(x >= -2649.62 && y >= 1312.045 && x <= -2487.387 && y <= 1469.844) return 1;
  198. else return 0;
  199. }
  200. //==================== [ Anti TK ] ======================
  201. new TKmatador[MAX_PLAYER_NAME];
  202. //=================== [ tenso ] ================
  203. new Visitantes;
  204. //=================== [ MENSAGEM PRIVADA ] ==========
  205. #define PlayerClicado clickedplayerid
  206. new Jogador[MAX_PLAYERS];
  207. //================ [ Anti-Queda ~ MOTO ] ================
  208. #define Motorista 0
  209. #define Passageiro 2
  210.  
  211. new ModoAntiQueda[MAX_PLAYERS];
  212. new JogadorNoVeiculo[MAX_PLAYERS];
  213. new QualCarro[MAX_PLAYERS];
  214. //================== [ Chat com TAG ] ===================
  215. new chatcomorg = 1;
  216. //================= [ SpawnarJogador ] ==================
  217. forward SpawnarJogador(playerid);
  218. //================= [ Veiculo criado ] ==================
  219. new veiculonovo;
  220. //=================== [ CarroGod ] ======================
  221. forward CarroGod(playerid);
  222. //=================== [ infoserver ] ====================
  223. new Online;
  224. new AdminsOnline;
  225. //======================= [ AFK ] =======================
  226. new AFK[MAX_PLAYERS] = 0;
  227. //================ [ TEXTDRAW DE ENTRADA ] ==============
  228. /*new Text:topoescuro, Text:embaixoescuro;*/ //~> DESABILITADO
  229. new Text:Textdrawdebaixodoradar;
  230. //==============[ SISTEMA DE /X1 ]====================== ~> DESABILITADO
  231. /*new contagemx1, contagem = 4;
  232. new Desafiador[MAX_PLAYER_NAME];
  233. new
  234. TaNoX1[MAX_PLAYERS],
  235. Limitex12
  236. ; */
  237. //================== [ Point ] ==================
  238.  
  239. //=========== [ SetupPlayerForClassSelection ] ==========
  240. forward SetupPlayerForClassSelection(playerid);
  241. //================[ Contador de Visitas ] ===============
  242. //new contador;
  243. //================= [ Nome Server ] =====================
  244. forward NomeServer();
  245. //============= [ Mensagens Randômicas ] ================
  246. forward MensagensRandomicas();
  247. new Mensagens[9][129] = {
  248. "{90EE90}[FusioN TDM]{D2D2FF}: Visite nosso fórum: {33CCFF}fusion{F2F2FF}-{33CCFF}games{D2D2FF}.forumeiros.com",
  249. "{90EE90}[FusioN TDM]{D2D2FF}: Visite nosso fórum: {33CCFF}fusion{D2D2FF}-{33CCFF}games{D2D2FF}.forumeiros.com",
  250. "{90EE90}[FusioN TDM]{D2D2FF}: Visite nosso fórum: {33CCFF}fusion{D2D2FF}-{33CCFF}games{D2D2FF}.forumeiros.com",
  251. "{90EE90}[FusioN TDM]{D2D2FF}: Servidor Exclusivo {33CCFF}FusioN SAMP",
  252. "{90EE90}[FusioN TDM]{D2D2FF}: Servidor Exclusivo {33CCFF}FusioN SAMP",
  253. "{90EE90}[FusioN TDM]{D2D2FF}: Para ver os creditos use {8470FF}/creditos",
  254. "{90EE90}[FusioN TDM]{D2D2FF}: Para ver os creditos use {8470FF}/creditos",
  255. "{90EE90}[FusioN TDM]{D2D2FF}: Visite Nosso Servidor de Team Speak 3: IP: 187.45.233.13 | Porta: 9994",
  256. "{90EE90}[FusioN TDM]{D2D2FF}: Precisa de ajuda? use {8470FF}/ajuda"
  257. };
  258. //---------------- Cores das mensagens ------------------
  259. new Cores[] = {
  260. 0x20B2AAAA,
  261. 0xFFFFFFAA,
  262. 0x33AA33AA,
  263. 0xE0FFFFAA,
  264. 0x934FF6F6,
  265. 0xF4005BF6,
  266. 0xF68E00F6,
  267. 0x00E7C6F6,
  268. 0x5EB7E3F6,
  269. 0xCD6CF6F6,
  270. 0x685000F6
  271. };
  272. //================= [ FusioNInfo ] ======================
  273. enum pInfo
  274. {
  275. pLugar,
  276. pUltimoLoginAno,
  277. pUltimoLoginMes,
  278. pUltimoLoginDia,
  279. pUltimoLoginHora,
  280. pUltimoLoginMinuto,
  281. pUltimoLoginSegundo,
  282. pReg,
  283. pSenha,
  284. pMoney,
  285. pLevel,
  286. pSkin,
  287. pMortes,
  288. pKills,
  289. pAdmin,
  290. pLogado,
  291. pORG,
  292. };
  293.  
  294. new PlayerInfo[MAX_PLAYERS][pInfo];
  295. //=============== [ Variáveis de player ] ===============
  296. new MostrarIconesMapa[MAX_PLAYERS];
  297. new gPlayerConta[MAX_PLAYERS];
  298. new Registrado[MAX_PLAYERS];
  299. new Digitou[MAX_PLAYERS][64];
  300. forward RegistrarJogador(playerid, senha[])
  301. forward CarregarJogador(playerid, senha[])
  302. forward AtualizarJogador(playerid);
  303. //================ [ prompt de comando ] ================
  304. main()
  305. {
  306. print("|====================================|");
  307. print("| ~ Team DeathMatch ~ |");
  308. print("| FusioN Games |");
  309. print("|_________[San Andreas:MP]___________|");
  310. print("|====================================|");
  311. }
  312. //=================== [ Publics ] =======================
  313. //================== [ OnPlayerText ] ===================
  314. public OnPlayerText(playerid, text[])
  315. {
  316. new string[128];
  317. if (chatcomorg)
  318. {
  319. if(PlayerInfo[playerid][pLogado] == 0)
  320. {
  321. return 0;
  322. }
  323. if(PlayerInfo[playerid][pORG] == 1)
  324. {
  325. format(string, sizeof(string), "{00D900}[GROVE] {FFFFFF}%s diz: %s", NomeDoJogador(playerid), text);
  326. SendClientMessageToAll(COR_INFO,string);
  327. SetPlayerChatBubble(playerid, text, COR_INFO, 20.0, 10000);
  328. }
  329. if(PlayerInfo[playerid][pORG] == 2)
  330. {
  331. format(string, sizeof(string), "{D900D3}[BALLAS] {FFFFFF}%s diz: %s", NomeDoJogador(playerid), text);
  332. SendClientMessageToAll(COR_INFO,string);
  333. SetPlayerChatBubble(playerid, text, COR_INFO, 20.0, 10000);
  334. }
  335. if(PlayerInfo[playerid][pORG] == 3)
  336. {
  337. format(string, sizeof(string), "{FFC801}[LOS VAGOS] {FFFFFF}%s diz: %s", NomeDoJogador(playerid), text);
  338. SendClientMessageToAll(COR_INFO,string);
  339. SetPlayerChatBubble(playerid, text, COR_INFO, 20.0, 10000);
  340. }
  341. if(PlayerInfo[playerid][pORG] == 4)
  342. {
  343. format(string, sizeof(string), "{2641FE}[LOS AZTECAS] {FFFFFF}%s diz: %s", NomeDoJogador(playerid), text);
  344. SendClientMessageToAll(COR_INFO,string);
  345. SetPlayerChatBubble(playerid, text, COR_INFO, 20.0, 10000);
  346. }
  347. if(PlayerInfo[playerid][pORG] == 5)
  348. {
  349. format(string, sizeof(string), "{7491F6}[SF:PD] {FFFFFF}%s diz: %s", NomeDoJogador(playerid), text);
  350. SendClientMessageToAll(COR_INFO,string);
  351. SetPlayerChatBubble(playerid, text, COR_INFO, 20.0, 10000);
  352. }
  353. if(PlayerInfo[playerid][pORG] == 6)
  354. {
  355. format(string, sizeof(string), "{FF5B5B}[COMANDO VERMELHO] {FFFFFF}%s diz: %s", NomeDoJogador(playerid), text);
  356. SendClientMessageToAll(COR_INFO,string);
  357. SetPlayerChatBubble(playerid, text, COR_INFO, 20.0, 10000);
  358. }
  359. return 0;
  360. }
  361. return 1;
  362. }
  363. //================[ OnPLayerClickPlayer ] ===============
  364. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  365. {
  366. new string[128];
  367. if(PlayerInfo[playerid][pAdmin] == 0 || PlayerInfo[playerid][pAdmin] !=0)
  368. {
  369. new plname[MAX_PLAYER_NAME];
  370. GetPlayerName(clickedplayerid, plname, sizeof(plname));
  371. if(playerid == clickedplayerid) return SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Você não pode enviar mensagens para si mesmo.");
  372. format(string, sizeof(string), "{D2D2FF}Escreva uma mensagem para %s", plname);
  373. ShowPlayerDialog(playerid, 9752, DIALOG_STYLE_INPUT, "{FFFF00}Mensagem Pessoal",string,"Enviar","Fechar");
  374. Jogador[playerid] = PlayerClicado;
  375. }
  376. return 1;
  377. }
  378. // ==============[ OnDialogResponse ] =================
  379. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  380. {
  381. new string[128];
  382. TogglePlayerControllable(playerid, 0);
  383. if(dialogid == 1)
  384. {
  385. if(response)
  386. {
  387. strmid(Digitou[playerid], inputtext, 0, strlen(inputtext), 255);
  388. if(!strcmp(Digitou[playerid], "Nada", true))
  389. {
  390. ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "{90EE90}FusioN TeamDeath Match", "Você digitou absolutamente NADA, digite sua senha", "Logar", "Esperar");
  391. }
  392. else
  393. {
  394. CarregarJogador(playerid, inputtext);
  395. }
  396. }
  397. else
  398. {
  399. Kick(playerid);
  400. AtualizarJogador(playerid);
  401. }
  402. }
  403. if(dialogid == 2)
  404. {
  405. if(response == 1)
  406. {
  407. if(strlen(inputtext) < 3)
  408. {
  409. ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "{90EE90}FusioN TeamDeath Match", "Crie sua senha para registrar-se", "Registrar", "Esperar");
  410. return 1;
  411. }
  412. if(strlen(inputtext) > 20)
  413. {
  414. ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "{90EE90}FusioN TeamDeath Match", "Crie sua senha para registrar-se", "Registrar", "Esperar");
  415. return 1;
  416. }
  417. RegistrarJogador(playerid, inputtext);
  418. }
  419. else
  420. {
  421. Kick(playerid);
  422. AtualizarJogador(playerid);
  423. }
  424. }
  425. if(dialogid == 3)
  426. {
  427. if(response == 0)
  428. {
  429. TogglePlayerControllable(playerid, 1);
  430. return 1;
  431. }
  432. if(response >= 1)
  433. {
  434. TogglePlayerControllable(playerid, 1);
  435. if(listitem == 0)
  436. {
  437. ShowPlayerDialog(playerid, 18, DIALOG_STYLE_LIST, "Head Quarters(HQ)", "{D2D2FF}HQ {00D900}Grove\n{D2D2FF}HQ {D900D3}Ballas\n{D2D2FF}HQ {FFC801}Vagos\n{D2D2FF}HQ {2641FE}Aztecas\n{D2D2FF}HQ {7491F6}SFPD\n{D2D2FF}HQ {FF5B5B}Comando Vermelho\nLoja de armas", "Ok", "Cancelar");
  438. return 1;
  439. }
  440. if(listitem == 1)
  441. {
  442. ShowPlayerDialog(playerid, 19, DIALOG_STYLE_LIST, "Territórios", "Construção", "Ok", "Cancelar");
  443. return 1;
  444. }
  445. if(listitem == 2)
  446. {
  447. SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Esta lacuna está desativada.");
  448. //ShowPlayerDialog(playerid, 20, DIALOG_STYLE_LIST, "Eventos", "*DESATIVADO*", "Ok", "Cancelar");
  449. return 1;
  450. }
  451. if(listitem == 3)
  452. {
  453. ShowPlayerDialog(playerid, 21, DIALOG_STYLE_LIST, "Outros", "Loja de armas", "Ok", "Cancelar");
  454. return 1;
  455. }
  456. }
  457. return 1;
  458. }
  459. if(dialogid == 4)
  460. {
  461. if(response == 0)
  462. {
  463. TogglePlayerControllable(playerid, 1);
  464. return 1;
  465. }
  466. if(response >= 1)
  467. {
  468. TogglePlayerControllable(playerid, 1);
  469. if(listitem == 0)
  470. {
  471. SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Você comprou o Kit básico e pagou {4169E1}3000{D2D2FF}R$.");
  472. GivePlayerMoney(playerid, -3000);
  473. ResetPlayerWeapons(playerid);
  474. GivePlayerWeapon(playerid, 4, 1);
  475. GivePlayerWeapon(playerid, 24, 999);
  476. GivePlayerWeapon(playerid, 25, 999);
  477. GivePlayerWeapon(playerid, 30, 999);
  478. AtualizarJogador(playerid);
  479. return 1;
  480. }
  481. if(listitem == 1)
  482. {
  483. SendClientMessage(playerid, COR_BRANCA, "{FFFF00}[INFO]{D2D2FF}: Você comprou o kit intermediário e pagou {4169E1}4000{D2D2FF}R$.");
  484. GivePlayerMoney(playerid, -4000);
  485. ResetPlayerWeapons(playerid);
  486. GivePlayerWeapon(playerid, 4, 1);
  487. GivePlayerWeapon(playerid, 24, 999);
  488. GivePlayerWeapon(playerid, 25, 999);
  489. GivePlayerWeapon(playerid, 30, 999);
  490. GivePlayerWeapon(playerid, 33, 999);
  491. AtualizarJogador(playerid);
  492. return 1;
  493. }
  494. if(listitem == 2)
  495. {
  496. SendClientMessage(playerid, COR_BRANCA, "{FFFF00}[INFO]{D2D2FF}: Você comprou o kit avançado e pagou {4169E1}5000{D2D2FF}R$.");
  497. GivePlayerMoney(playerid, -5000);
  498. ResetPlayerWeapons(playerid);
  499. GivePlayerWeapon(playerid, 4, 1);
  500. GivePlayerWeapon(playerid, 24, 999);
  501. GivePlayerWeapon(playerid, 25, 999);
  502. GivePlayerWeapon(playerid, 30, 999);
  503. GivePlayerWeapon(playerid, 34, 999);
  504. AtualizarJogador(playerid);
  505. return 1;
  506. }
  507. }
  508. return 1;
  509. }
  510. return 1;
  511. if(dialogid == 5)
  512. {
  513. if(response == 0)
  514. {
  515. TogglePlayerControllable(playerid, 1);
  516. return 1;
  517. }
  518. if(response >= 1)
  519. {
  520. TogglePlayerControllable(playerid, 1);
  521. if(listitem == 0)
  522. {
  523. SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Você comprou o Kit básico e pagou {4169E1}3000{D2D2FF}R$.");
  524. GivePlayerMoney(playerid, -3000);
  525. ResetPlayerWeapons(playerid);
  526. GivePlayerWeapon(playerid, 4, 1);
  527. GivePlayerWeapon(playerid, 24, 999);
  528. GivePlayerWeapon(playerid, 25, 999);
  529. GivePlayerWeapon(playerid, 30, 999);
  530. AtualizarJogador(playerid);
  531. return 1;
  532. }
  533. if(listitem == 1)
  534. {
  535. SendClientMessage(playerid, COR_BRANCA, "{FFFF00}[INFO]{D2D2FF}: Você comprou o kit intermediário e pagou {4169E1}4000{D2D2FF}R$.");
  536. GivePlayerMoney(playerid, -4000);
  537. ResetPlayerWeapons(playerid);
  538. GivePlayerWeapon(playerid, 4, 1);
  539. GivePlayerWeapon(playerid, 24, 999);
  540. GivePlayerWeapon(playerid, 25, 999);
  541. GivePlayerWeapon(playerid, 30, 999);
  542. GivePlayerWeapon(playerid, 33, 999);
  543. AtualizarJogador(playerid);
  544. return 1;
  545. }
  546. if(listitem == 2)
  547. {
  548. SendClientMessage(playerid, COR_BRANCA, "{FFFF00}[INFO]{D2D2FF}: Você comprou o kit avançado e pagou {4169E1}5000{D2D2FF}R$.");
  549. GivePlayerMoney(playerid, -5000);
  550. ResetPlayerWeapons(playerid);
  551. GivePlayerWeapon(playerid, 4, 1);
  552. GivePlayerWeapon(playerid, 24, 999);
  553. GivePlayerWeapon(playerid, 25, 999);
  554. GivePlayerWeapon(playerid, 30, 999);
  555. GivePlayerWeapon(playerid, 34, 999);
  556. AtualizarJogador(playerid);
  557. return 1;
  558. }
  559. }
  560. return 1;
  561. }
  562. //======= [ mp ] ===========
  563. if(dialogid == 9752 && response)
  564. {
  565. format(string, sizeof(string), "{4682B4}[MP]{D2D2FF}: De %s: %s.",NomeDoJogador(playerid), inputtext);
  566. SendClientMessage(Jogador[playerid], Amarelo, string);
  567. SendClientMessage(playerid, Verde, "{4682B4}[MP]{D2D2FF}: Sua mensagem foi enviada.");
  568. Jogador[playerid] = INVALID_PLAYER_ID;
  569. TogglePlayerControllable(playerid, 1);
  570. return 1;
  571. }
  572. if(dialogid == 11)
  573. {
  574. SetPlayerInterior(playerid, 0);
  575. if(response == 0)
  576. {
  577. ShowPlayerDialog(playerid, 11, DIALOG_STYLE_LIST, "{FFFF00}Escolha sua organização", "{00D900}Grove Street Families\n{FFC801}Los Santos Vagos\n{D900D3}Front Yard Ballas\n{2641FE}Los Varrios Aztecas\n{7491F6}San Fierro Department\n{FF5B5B}Comando Vermelho", "Escolher", "");
  578. SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Por favor, escolha uma organização");
  579. return 1;
  580. }
  581. if(response >= 1)
  582. {
  583. if(listitem == 0)
  584. {
  585. format(string, sizeof(string), "Quer mesmo essa organização ?", playerid);
  586. ShowPlayerDialog(playerid, GROVE, DIALOG_STYLE_MSGBOX, "{00D900}Grove Street Families", string, "Sim", "Não");
  587. SetPlayerCameraPos(playerid, -2722.8696,-264.4958,49.9464);
  588. SetPlayerCameraLookAt(playerid, -2720.9878,-317.3027,7.8438);
  589. SetPlayerPos(playerid, -2721.9783,-314.7625,-6.7114);
  590. AtualizarJogador(playerid);
  591. }
  592. if(listitem == 1)
  593. {
  594. format(string, sizeof(string), "Quer mesmo essa organização ?", playerid);
  595. ShowPlayerDialog(playerid, VAGOS, DIALOG_STYLE_MSGBOX, "{FFC801}Los Santos Vagos", string, "Sim", "Não");
  596. SetPlayerCameraPos(playerid, -2494.5615,1219.6486,50.4219);
  597. SetPlayerCameraLookAt(playerid, -2523.7625,1216.6310,37.4283);
  598. SetPlayerPos(playerid, -2523.7625,1216.6310,11.4283);
  599. AtualizarJogador(playerid);
  600. }
  601. if(listitem == 2)
  602. {
  603. format(string, sizeof(string), "Quer mesmo essa organização ?", playerid);
  604. ShowPlayerDialog(playerid, BALLAS, DIALOG_STYLE_MSGBOX, "{D900D3}Front Yard Ballas", string, "Sim", "Não");
  605. SetPlayerCameraPos(playerid, -2707.0474,376.2740,44.8676);
  606. SetPlayerCameraLookAt(playerid, -2764.3687,375.4056,6.3410);
  607. SetPlayerPos(playerid, -2771.6191,375.9189,5.2578);
  608. AtualizarJogador(playerid);
  609. }
  610. if(listitem == 3)
  611. {
  612. format(string, sizeof(string), "Quer mesmo essa organização ?", playerid);
  613. ShowPlayerDialog(playerid, AZTECAS, DIALOG_STYLE_MSGBOX, "{2641FE}Varrios Los Aztecas", string, "Sim", "Não");
  614. SetPlayerCameraPos(playerid, -1778.6860,509.5456,41.0881);
  615. SetPlayerCameraLookAt(playerid, -1782.7085,573.8691,35.1641);
  616. SetPlayerPos(playerid, -1781.9248,572.5924,24.8475);
  617. AtualizarJogador(playerid);
  618. }
  619. if(listitem == 4)
  620. {
  621. format(string, sizeof(string), "Quer mesmo essa organização ?", playerid);
  622. ShowPlayerDialog(playerid, SFPD, DIALOG_STYLE_MSGBOX, "{7491F6}San Fierro Polica Department", string, "Sim", "Não");
  623. SetPlayerCameraPos(playerid, 1527.5671,-1756.6531,33.4297);
  624. SetPlayerCameraLookAt(playerid, -1632.0774,675.1766,6.7572);
  625. SetPlayerPos(playerid, -1632.0774,675.1766,5.7572);
  626. AtualizarJogador(playerid);
  627. }
  628. if(listitem == 5)
  629. {
  630. format(string, sizeof(string), "Quer mesmo essa organização ?", playerid);
  631. ShowPlayerDialog(playerid, CV, DIALOG_STYLE_MSGBOX, "{FF5B5B}Comando Vermelho", string, "Sim", "Não");
  632. SetPlayerCameraPos(playerid, -2381.3301,992.0063,60.2953);
  633. SetPlayerCameraLookAt(playerid, -2356.6265,1007.8727,50.8984);
  634. SetPlayerPos(playerid, -2356.6265,1007.8727,30.8984);
  635. AtualizarJogador(playerid);
  636. }
  637. }
  638. return 1;
  639. }
  640. if(dialogid == GROVE)
  641. {
  642. if(response == 0)
  643. {
  644. ShowPlayerDialog(playerid, 11, DIALOG_STYLE_LIST, "{FFFF00}Escolha sua organização", "{00D900}Grove Street Families\n{FFC801}Los Santos Vagos\n{D900D3}Front Yard Ballas\n{2641FE}Los Varrios Aztecas\n{7491F6}San Fierro Department\n{FF5B5B}Comando Vermelho", "Escolher", "Sair");
  645. return 1;
  646. }
  647. if(response == 1)
  648. {
  649. ShowPlayerDialog(playerid, SKINGROVE,DIALOG_STYLE_LIST, "{FFFF00}Escolha sua skin", "105\n106\n107", "Escolher", "Desistir");
  650. }
  651. return 1;
  652. }
  653. if(dialogid == VAGOS)
  654. {
  655. if(response == 0)
  656. {
  657. ShowPlayerDialog(playerid, 11, DIALOG_STYLE_LIST, "{FFFF00}Escolha sua organização", "{00D900}Grove Street Families\n{FFC801}Los Santos Vagos\n{D900D3}Front Yard Ballas\n{2641FE}Los Varrios Aztecas\n{7491F6}San Fierro Department\n{FF5B5B}Comando Vermelho", "Escolher", "Sair");
  658. return 1;
  659. }
  660. if(response == 1)
  661. {
  662. ShowPlayerDialog(playerid, SKINVAGOS,DIALOG_STYLE_LIST, "{FFFF00}Escolha sua skin", "108\n109\n110", "Escolher", "Desistir");
  663. }
  664. return 1;
  665. }
  666. if(dialogid == BALLAS)
  667. {
  668. if(response == 0)
  669. {
  670. ShowPlayerDialog(playerid, 11, DIALOG_STYLE_LIST, "{FFFF00}Escolha sua organização", "{00D900}Grove Street Families\n{FFC801}Los Santos Vagos\n{D900D3}Front Yard Ballas\n{2641FE}Los Varrios Aztecas\n{7491F6}San Fierro Department\n{FF5B5B}Comando Vermelho", "Escolher", "Sair");
  671. return 1;
  672. }
  673. if(response == 1)
  674. {
  675. ShowPlayerDialog(playerid, SKINBALLAS,DIALOG_STYLE_LIST, "{FFFF00}Escolha sua skin", "102\n103\n104", "Escolher", "Desistir");
  676. }
  677. return 1;
  678. }
  679. if(dialogid == AZTECAS)
  680. {
  681. if(response == 0)
  682. {
  683. ShowPlayerDialog(playerid, 11, DIALOG_STYLE_LIST, "{FFFF00}Escolha sua organização", "{00D900}Grove Street Families\n{FFC801}Los Santos Vagos\n{D900D3}Front Yard Ballas\n{2641FE}Los Varrios Aztecas\n{7491F6}San Fierro Department\n{FF5B5B}Comando Vermelho", "Escolher", "Sair");
  684. return 1;
  685. }
  686. if(response == 1)
  687. {
  688. ShowPlayerDialog(playerid, SKINAZTECAS,DIALOG_STYLE_LIST, "{FFFF00}Escolha sua skin", "114\n115\n116", "Escolher", "Desistir");
  689. }
  690. return 1;
  691. }
  692. if(dialogid == SFPD)
  693. {
  694. if(response == 0)
  695. {
  696. ShowPlayerDialog(playerid, 11, DIALOG_STYLE_LIST, "{FFFF00}Escolha sua organização", "{00D900}Grove Street Families\n{FFC801}Los Santos Vagos\n{D900D3}Front Yard Ballas\n{2641FE}Los Varrios Aztecas\n{7491F6}San Fierro Department\n{FF5B5B}Comando Vermelho", "Escolher", "Sair");
  697. return 1;
  698. }
  699. if(response == 1)
  700. {
  701. ShowPlayerDialog(playerid, SKINSFPD,DIALOG_STYLE_LIST, "{FFFF00}Escolha sua skin", "280\n281\n284", "Escolher", "Desistir");
  702. }
  703. return 1;
  704. }
  705. if(dialogid == CV)
  706. {
  707. if(response == 0)
  708. {
  709. ShowPlayerDialog(playerid, 11, DIALOG_STYLE_LIST, "{FFFF00}Escolha sua organização", "{00D900}Grove Street Families\n{FFC801}Los Santos Vagos\n{D900D3}Front Yard Ballas\n{2641FE}Los Varrios Aztecas\n{7491F6}San Fierro Department\n{FF5B5B}Comando Vermelho", "Escolher", "Sair");
  710. return 1;
  711. }
  712. if(response == 1)
  713. {
  714. ShowPlayerDialog(playerid, SKINCV,DIALOG_STYLE_LIST, "{FFFF00}Escolha sua skin", "19\n22\n170", "Escolher", "Desistir");
  715. }
  716. return 1;
  717. }
  718. if(dialogid == SKINGROVE)
  719. {
  720. if(response == 0)
  721. {
  722. ShowPlayerDialog(playerid, 11, DIALOG_STYLE_LIST, "{FFFF00}Escolha sua organização", "{00D900}Grove Street Families\n{FFC801}Los Santos Vagos\n{D900D3}Front Yard Ballas\n{2641FE}Los Varrios Aztecas\n{7491F6}San Fierro Department\n{FF5B5B}Comando Vermelho", "Escolher", "Sair");
  723. return 1;
  724. }
  725. if(response >= 1)
  726. {
  727. TogglePlayerControllable(playerid, 1);
  728. if(listitem == 0)
  729. {
  730. PlayerInfo[playerid][pSkin] = 105;
  731. SetPlayerSkin(playerid, 105);
  732. GivePlayerWeapon(playerid, 22, 120);
  733. GivePlayerWeapon(playerid, 5, 1);
  734. PlayerInfo[playerid][pORG] = 1;
  735. AtualizarJogador(playerid);
  736. SpawnPlayer(playerid)
  737. }
  738. if(listitem == 1)
  739. {
  740. PlayerInfo[playerid][pSkin] = 106;
  741. SetPlayerSkin(playerid, 106);
  742. PlayerInfo[playerid][pORG] = 1;
  743. AtualizarJogador(playerid);
  744. SpawnPlayer(playerid);
  745. GivePlayerWeapon(playerid, 22, 120);
  746. GivePlayerWeapon(playerid, 5, 1)
  747. }
  748. if(listitem == 2)
  749. {
  750. PlayerInfo[playerid][pSkin] = 107;
  751. SetPlayerSkin(playerid, 107);
  752. GivePlayerWeapon(playerid, 22, 120);
  753. GivePlayerWeapon(playerid, 5, 1);
  754. PlayerInfo[playerid][pORG] = 1;
  755. AtualizarJogador(playerid);
  756. SpawnPlayer(playerid)
  757. }
  758. }
  759. return 1;
  760. }
  761. if(dialogid == SKINVAGOS)
  762. {
  763. if(response == 0)
  764. {
  765. ShowPlayerDialog(playerid, 11, DIALOG_STYLE_LIST, "{FFFF00}Escolha sua organização", "{00D900}Grove Street Families\n{FFC801}Los Santos Vagos\n{D900D3}Front Yard Ballas\n{2641FE}Los Varrios Aztecas\n{7491F6}San Fierro Department\n{FF5B5B}Comando Vermelho", "Escolher", "Sair");
  766. return 1;
  767. }
  768. if(response >= 1)
  769. {
  770. TogglePlayerControllable(playerid, 1);
  771. if(listitem == 0)
  772. {
  773. PlayerInfo[playerid][pSkin] = 108;
  774. SetPlayerSkin(playerid, 108);
  775. GivePlayerWeapon(playerid, 22, 120);
  776. GivePlayerWeapon(playerid, 5, 1);
  777. PlayerInfo[playerid][pORG] = 3;
  778. AtualizarJogador(playerid);
  779. SpawnPlayer(playerid)
  780. }
  781. if(listitem == 1)
  782. {
  783. PlayerInfo[playerid][pSkin] = 109;
  784. SetPlayerSkin(playerid, 109);
  785. GivePlayerWeapon(playerid, 22, 120);
  786. GivePlayerWeapon(playerid, 5, 1);
  787. PlayerInfo[playerid][pORG] = 3;
  788. AtualizarJogador(playerid);
  789. SpawnPlayer(playerid)
  790. }
  791. if(listitem == 2)
  792. {
  793. PlayerInfo[playerid][pSkin] = 110;
  794. SetPlayerSkin(playerid, 110);
  795. GivePlayerWeapon(playerid, 22, 120);
  796. GivePlayerWeapon(playerid, 5, 1);
  797. PlayerInfo[playerid][pORG] = 3;
  798. AtualizarJogador(playerid);
  799. SpawnPlayer(playerid)
  800. }
  801. }
  802. return 1;
  803. }
  804. if(dialogid == SKINBALLAS)
  805. {
  806. if(response == 0)
  807. {
  808. ShowPlayerDialog(playerid, 11, DIALOG_STYLE_LIST, "{FFFF00}Escolha sua organização", "{00D900}Grove Street Families\n{FFC801}Los Santos Vagos\n{D900D3}Front Yard Ballas\n{2641FE}Los Varrios Aztecas\n{7491F6}San Fierro Department\n{FF5B5B}Comando Vermelho", "Escolher", "Sair");
  809. return 1;
  810. }
  811. if(response >= 1)
  812. {
  813. TogglePlayerControllable(playerid, 1);
  814. if(listitem == 0)
  815. {
  816. PlayerInfo[playerid][pSkin] = 102;
  817. SetPlayerSkin(playerid, 102);
  818. GivePlayerWeapon(playerid, 22, 120);
  819. GivePlayerWeapon(playerid, 5, 1);
  820. PlayerInfo[playerid][pORG] = 2;
  821. AtualizarJogador(playerid);
  822. SpawnPlayer(playerid)
  823. }
  824. if(listitem == 1)
  825. {
  826. PlayerInfo[playerid][pSkin] = 103;
  827. SetPlayerSkin(playerid, 103);
  828. GivePlayerWeapon(playerid, 22, 120);
  829. GivePlayerWeapon(playerid, 5, 1);
  830. PlayerInfo[playerid][pORG] = 2;
  831. AtualizarJogador(playerid);
  832. SpawnPlayer(playerid)
  833. }
  834. if(listitem == 2)
  835. {
  836. PlayerInfo[playerid][pSkin] = 104;
  837. SetPlayerSkin(playerid, 104);
  838. GivePlayerWeapon(playerid, 22, 120);
  839. GivePlayerWeapon(playerid, 5, 1);
  840. PlayerInfo[playerid][pORG] = 2;
  841. AtualizarJogador(playerid);
  842. SpawnPlayer(playerid)
  843. }
  844. }
  845. return 1;
  846. }
  847. if(dialogid == SKINAZTECAS)
  848. {
  849. if(response == 0)
  850. {
  851. ShowPlayerDialog(playerid, 11, DIALOG_STYLE_LIST, "{FFFF00}Escolha sua organização", "{00D900}Grove Street Families\n{FFC801}Los Santos Vagos\n{D900D3}Front Yard Ballas\n{2641FE}Los Varrios Aztecas\n{7491F6}San Fierro Department\n{FF5B5B}Comando Vermelho", "Escolher", "Sair");
  852. return 1;
  853. }
  854. if(response >= 1)
  855. {
  856. TogglePlayerControllable(playerid, 1);
  857. if(listitem == 0)
  858. {
  859. PlayerInfo[playerid][pSkin] = 114;
  860. SetPlayerSkin(playerid, 114);
  861. GivePlayerWeapon(playerid, 22, 120);
  862. GivePlayerWeapon(playerid, 5, 1);
  863. PlayerInfo[playerid][pORG] = 4;
  864. AtualizarJogador(playerid);
  865. SpawnPlayer(playerid)
  866. }
  867. if(listitem == 1)
  868. {
  869. PlayerInfo[playerid][pSkin] = 115;
  870. SetPlayerSkin(playerid, 115);
  871. GivePlayerWeapon(playerid, 22, 120);
  872. GivePlayerWeapon(playerid, 5, 1);
  873. PlayerInfo[playerid][pORG] = 4;
  874. AtualizarJogador(playerid);
  875. SpawnPlayer(playerid)
  876. }
  877. if(listitem == 2)
  878. {
  879. PlayerInfo[playerid][pSkin] = 166;
  880. SetPlayerSkin(playerid, 116);
  881. GivePlayerWeapon(playerid, 22, 120);
  882. GivePlayerWeapon(playerid, 5, 1);
  883. PlayerInfo[playerid][pORG] = 4;
  884. AtualizarJogador(playerid);
  885. SpawnPlayer(playerid)
  886. }
  887. }
  888. return 1;
  889. }
  890. if(dialogid == SKINSFPD)
  891. {
  892. if(response == 0)
  893. {
  894. ShowPlayerDialog(playerid, 11, DIALOG_STYLE_LIST, "{FFFF00}Escolha sua organização", "{00D900}Grove Street Families\n{FFC801}Los Santos Vagos\n{D900D3}Front Yard Ballas\n{2641FE}Los Varrios Aztecas\n{7491F6}San Fierro Department\n{FF5B5B}Comando Vermelho", "Escolher", "Sair");
  895. return 1;
  896. }
  897. if(response >= 1)
  898. {
  899. TogglePlayerControllable(playerid, 1);
  900. if(listitem == 0)
  901. {
  902. PlayerInfo[playerid][pSkin] = 280;
  903. SetPlayerSkin(playerid, 280);
  904. PlayerInfo[playerid][pORG] = 5;
  905. AtualizarJogador(playerid);
  906. SpawnPlayer(playerid)
  907. }
  908. if(listitem == 1)
  909. {
  910. PlayerInfo[playerid][pSkin] = 281;
  911. SetPlayerSkin(playerid, 281);
  912. PlayerInfo[playerid][pORG] = 5;
  913. AtualizarJogador(playerid);
  914. SpawnPlayer(playerid)
  915. }
  916. if(listitem == 2)
  917. {
  918. PlayerInfo[playerid][pSkin] = 284;
  919. SetPlayerSkin(playerid, 284);
  920. PlayerInfo[playerid][pORG] = 5;
  921. AtualizarJogador(playerid);
  922. SpawnPlayer(playerid)
  923. }
  924. }
  925. return 1;
  926. }
  927. if(dialogid == SKINCV)
  928. {
  929. if(response == 0)
  930. {
  931. ShowPlayerDialog(playerid, 11, DIALOG_STYLE_LIST, "{FFFF00}Escolha sua organização", "{00D900}Grove Street Families\n{FFC801}Los Santos Vagos\n{D900D3}Front Yard Ballas\n{2641FE}Los Varrios Aztecas\n{7491F6}San Fierro Department\n{FF5B5B}Comando Vermelho", "Escolher", "Sair");
  932. return 1;
  933. }
  934. if(response >= 1)
  935. {
  936. TogglePlayerControllable(playerid, 1);
  937. if(listitem == 0)
  938. {
  939. PlayerInfo[playerid][pSkin] = 19;
  940. SetPlayerSkin(playerid, 19);
  941. GivePlayerWeapon(playerid, 22, 120);
  942. GivePlayerWeapon(playerid, 5, 1);
  943. PlayerInfo[playerid][pORG] = 6;
  944. AtualizarJogador(playerid);
  945. SpawnPlayer(playerid)
  946. }
  947. if(listitem == 1)
  948. {
  949. PlayerInfo[playerid][pSkin] = 22;
  950. SetPlayerSkin(playerid, 22);
  951. GivePlayerWeapon(playerid, 22, 120);
  952. GivePlayerWeapon(playerid, 5, 1);
  953. PlayerInfo[playerid][pORG] = 6;
  954. AtualizarJogador(playerid);
  955. SpawnPlayer(playerid)
  956. }
  957. if(listitem == 2)
  958. {
  959. SetPlayerSkin(playerid, 170);
  960. PlayerInfo[playerid][pSkin] = 170;
  961. GivePlayerWeapon(playerid, 22, 120);
  962. GivePlayerWeapon(playerid, 5, 1);
  963. PlayerInfo[playerid][pORG] = 6;
  964. AtualizarJogador(playerid);
  965. SpawnPlayer(playerid)
  966. }
  967. }
  968. return 1;
  969. }
  970. if(dialogid == 18)
  971. {
  972. if(response == 0)
  973. {
  974. TogglePlayerControllable(playerid, 1);
  975. return 1;
  976. }
  977. if(response >= 1)
  978. {
  979. TogglePlayerControllable(playerid, 1);
  980. if(listitem == 0)
  981. {
  982. SetPlayerPos(playerid,-2724.1653,-313.6700,7.1872);
  983. format(string, sizeof(string), "{33CCFF}[ADMIN]{D2D2FF}: %s foi para HQ {2AFC00}Grove", NomeDoJogador(playerid));
  984. SendClientMessageToAll(COR_INFO, string);
  985. return 1;
  986. }
  987. if(listitem == 1)
  988. {
  989. SetPlayerPos(playerid,-2756.5557,375.2302,4.3358);
  990. format(string, sizeof(string), "{33CCFF}[ADMIN]{D2D2FF}: %s foi para HQ {4300FC}Ballas", NomeDoJogador(playerid));
  991. SendClientMessageToAll(COR_INFO, string);
  992. return 1;
  993. }
  994. if(listitem == 2)
  995. {
  996. SetPlayerPos(playerid,-2523.7625,1216.6310,37.4283);
  997. format(string, sizeof(string), "{33CCFF}[ADMIN]{D2D2FF}: %s foi para HQ{FCFC00} Vagos", NomeDoJogador(playerid));
  998. SendClientMessageToAll(COR_INFO, string);
  999. return 1;
  1000. }
  1001. if(listitem == 3)
  1002. {
  1003. SetPlayerPos(playerid,-1791.7559,567.2145,35.1641);
  1004. format(string, sizeof(string), "{33CCFF}[ADMIN]{D2D2FF}: %s foi para HQ {3F00FC}Azteca", NomeDoJogador(playerid));
  1005. SendClientMessageToAll(COR_INFO, string);
  1006. return 1;
  1007. }
  1008. if(listitem == 4)
  1009. {
  1010. SetPlayerPos(playerid,-1638.5295,661.6255,7.1875);
  1011. format(string, sizeof(string), "{33CCFF}[ADMIN]{D2D2FF}: %s foi para HQ {7491F6}SF:PD", NomeDoJogador(playerid));
  1012. SendClientMessageToAll(COR_INFO, string);
  1013. return 1;
  1014. }
  1015. if(listitem == 5)
  1016. {
  1017. SetPlayerPos(playerid,-2355.7173,998.4549,50.8984);
  1018. format(string, sizeof(string), "{33CCFF}[ADMIN]{D2D2FF}: %s foi para HQ {7491F6}Comando Vermelho", NomeDoJogador(playerid));
  1019. SendClientMessageToAll(COR_INFO, string);
  1020. return 1;
  1021. }
  1022. }
  1023. return 1;
  1024. }
  1025. if(dialogid == 19)
  1026. {
  1027. if(response == 0)
  1028. {
  1029. TogglePlayerControllable(playerid, 1);
  1030. return 1;
  1031. }
  1032. if(response == 1)
  1033. {
  1034. TogglePlayerControllable(playerid, 1);
  1035. if(listitem == 0)
  1036. {
  1037. SetPlayerPos(playerid, -2070.2171, 242.9599, 35.3125);
  1038. format(string, sizeof(string), "{33CCFF}[ADMIN]{D2D2FF}: %s foi para a Construção(Território).", NomeDoJogador(playerid));
  1039. SendClientMessageToAll(COR_INFO, string);
  1040. return 1;
  1041. }
  1042. }
  1043. return 1;
  1044. }
  1045. //falta por eventos, caso tenha.
  1046. if(dialogid == 21)
  1047. {
  1048. if(response == 0)
  1049. {
  1050. TogglePlayerControllable(playerid, 1);
  1051. return 1;
  1052. }
  1053. if(response == 1)
  1054. {
  1055. TogglePlayerControllable(playerid, 1);
  1056. if(listitem == 0)
  1057. {
  1058. SetPlayerPos(playerid,-2272.6733,43.8462,35.3125);
  1059. format(string, sizeof(string), "{33CCFF}[ADMIN]{D2D2FF}: %s foi para a Loja de armas", NomeDoJogador(playerid));
  1060. SendClientMessageToAll(COR_INFO, string);
  1061. return 1;
  1062. }
  1063. }
  1064. return 1;
  1065. }
  1066. return 0;
  1067. }
  1068. //========== [ OnPlayerConnect ] ==================
  1069. public OnPlayerConnect(playerid)
  1070. {
  1071. //--------------- Player entrou ---------------------
  1072. new string[256];
  1073. format(string, sizeof(string), "~w~FusioN TDM: ~g~Seja bem-vindo ~r~~n~%s",NomeDoJogador(playerid));
  1074. GameTextForPlayer(playerid,string,5000,1);
  1075. TextDrawShowForPlayer(playerid, textdraw);
  1076. TextDrawShowForPlayer(playerid, Textdraw1)
  1077. DisableInteriorEnterExits();
  1078. Jogador[playerid] = INVALID_PLAYER_ID;
  1079. UsePlayerPedAnims();
  1080. TextDrawShowForPlayer(playerid, Textdrawdebaixodoradar);
  1081. if(PlayerInfo[playerid][pAdmin] == 0)
  1082. {
  1083. Online++;
  1084. SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: USE: {8470FF}/ajuda");
  1085. format(string,sizeof(string),"{90EE90}[FusioN TDM]{D2D2FF}: [{006400}+{D2D2FF}] O jogador %s entrou no servidor, %d/%d jogadores online.",NomeDoJogador(playerid),Online,GetMaxPlayers());
  1086. SendClientMessageToAll(COR_INFO, string);
  1087. }
  1088. //---------------------------------------------------
  1089. else if(PlayerInfo[playerid][pAdmin] >= 1)
  1090. {
  1091. Online++;
  1092. AdminsOnline++;
  1093. SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: USE: {8470FF}/ajuda");
  1094. format(string,sizeof(string),"{90EE90}[FusioN TDM]{D2D2FF}: [{006400}+{D2D2FF}] O Administrador %s entrou no servidor, %d/%d jogadores online.",NomeDoJogador(playerid),Online,GetMaxPlayers());
  1095. SendClientMessageToAll(COR_INFO, string);
  1096. }
  1097. //=============== [ VISITANTES ] =================
  1098. Visitantes ++;
  1099. format(string, sizeof(string), "{90EE90}[FusioN TDM]{D2D2FF}: Esse servidor teve %d visitantes desde o momento em que foi ligado.", Visitantes);
  1100. SendClientMessage(playerid, COR_INFO, string);
  1101. //=========== [ Sistema de registro ] ===============
  1102. MostrarIconesMapa[playerid] = 0;
  1103. PlayerInfo[playerid][pUltimoLoginAno] = 0;
  1104. PlayerInfo[playerid][pUltimoLoginMes] = 0;
  1105. PlayerInfo[playerid][pUltimoLoginDia] = 0;
  1106. PlayerInfo[playerid][pUltimoLoginHora] = 0;
  1107. PlayerInfo[playerid][pUltimoLoginMinuto] = 0;
  1108. PlayerInfo[playerid][pUltimoLoginSegundo] = 0;
  1109. PlayerInfo[playerid][pLugar] = 0;
  1110. PlayerInfo[playerid][pLevel] = 0;
  1111. PlayerInfo[playerid][pMoney] = 0;
  1112. PlayerInfo[playerid][pMortes] = 0;
  1113. PlayerInfo[playerid][pKills] = 0;
  1114. PlayerInfo[playerid][pSkin] = 1;
  1115. PlayerInfo[playerid][pAdmin] = 0;
  1116. PlayerInfo[playerid][pLogado] = 0;
  1117. PlayerInfo[playerid][pORG] = 0;
  1118. gPlayerConta[playerid] = 0;
  1119. new string2[64];
  1120. format(string2, sizeof(string2), "Contas/%s.ini", NomeDoJogador(playerid));
  1121. SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Aguarde alguns segundos...");
  1122. //================ [ICONES HQ'S] ====================
  1123. SetPlayerMapIcon(playerid, 1, -2719.8328,-318.2808,7.8438, 62, 0xE6E6E6E6);// GROVE STREET
  1124. SetPlayerMapIcon(playerid, 2, -2765.0029,375.4214,6.3431, 59, 0xE6E6E6E6);// BALLAS
  1125. SetPlayerMapIcon(playerid, 3, -2523.7625,1216.6310,37.4283, 60, 0xE6E6E6E6);// VAGOS
  1126. SetPlayerMapIcon(playerid, 4, -1783.8490,572.2196,35.1641, 58, 0xE6E6E6E6); // AZTECAS
  1127. SetPlayerMapIcon(playerid, 5, -1606.2655,673.0223,-5.2422, 30, 0xE6E6E6E6); // SF PD
  1128. SetPlayerMapIcon(playerid, 6, -2343.6538,1006.3931,55.9150, 13, 0xE6E6E6E6); // COMANDO VERMELHO
  1129. SetPlayerMapIcon(playerid, 7, -2272.9070,40.5258,35.3125, 6, 0xE6E6E6E6); // Ammunation
  1130. SetPlayerMapIcon(playerid, 8, -2070.2171, 242.9599, 35.3125, 19,0xE6E6E6E6); // Construção
  1131.  
  1132. //===================================================
  1133. /*TextDrawShowForPlayer(playerid, topoescuro); ~> DESABILITADO
  1134. TextDrawShowForPlayer(playerid, embaixoescuro);*/ // ~> DESABILITADO
  1135. //================= [ Dono GZ ] =====================
  1136. //---- Construcao
  1137. if(donodaconstrucao == 0)
  1138. {
  1139. GangZoneShowForPlayer(playerid, GZConstrucao, COR_GZ);
  1140. }
  1141. if(donodaconstrucao == 1)
  1142. {
  1143. GangZoneShowForPlayer(playerid, GZConstrucao, COR_GROVE);
  1144. }
  1145. if(donodaconstrucao == 2)
  1146. {
  1147. GangZoneShowForPlayer(playerid, GZConstrucao, COR_BALLAS);
  1148. }
  1149. if(donodaconstrucao == 3)
  1150. {
  1151. GangZoneShowForPlayer(playerid, GZConstrucao, COR_VAGOS);
  1152. }
  1153. if(donodaconstrucao == 4)
  1154. {
  1155. GangZoneShowForPlayer(playerid, GZConstrucao, COR_AZTECAS);
  1156. }
  1157. if(donodaconstrucao == 5)
  1158. {
  1159. GangZoneShowForPlayer(playerid, GZConstrucao, COR_SFPD);
  1160. }
  1161. if(donodaconstrucao == 6)
  1162. {
  1163. GangZoneShowForPlayer(playerid, GZConstrucao, COR_CV);
  1164. }
  1165. if(donodoputeiro == 0)
  1166. {
  1167. GangZoneShowForPlayer(playerid, GZPuteiro, COR_GZ);
  1168. }
  1169. if(donodoputeiro == 1)
  1170. {
  1171. GangZoneShowForPlayer(playerid, GZPuteiro, COR_GROVE);
  1172. }
  1173. if(donodoputeiro == 2)
  1174. {
  1175. GangZoneShowForPlayer(playerid, GZPuteiro, COR_BALLAS);
  1176. }
  1177. if(donodoputeiro == 3)
  1178. {
  1179. GangZoneShowForPlayer(playerid, GZPuteiro, COR_VAGOS);
  1180. }
  1181. if(donodoputeiro == 4)
  1182. {
  1183. GangZoneShowForPlayer(playerid, GZPuteiro, COR_AZTECAS);
  1184. }
  1185. if(donodoputeiro == 5)
  1186. {
  1187. GangZoneShowForPlayer(playerid, GZPuteiro, COR_SFPD);
  1188. }
  1189. if(donodoputeiro == 6)
  1190. {
  1191. GangZoneShowForPlayer(playerid, GZPuteiro, COR_CV);
  1192. }
  1193. if(fexist(string2))
  1194. {
  1195. gPlayerConta[playerid] = 1;
  1196. }
  1197. else
  1198. {
  1199. gPlayerConta[playerid] = 0;
  1200. }
  1201. return 1;
  1202. }
  1203.  
  1204. //====================[OnPlayer Spawn]===================
  1205. public OnPlayerSpawn(playerid)
  1206. {
  1207. if(PlayerInfo[playerid][pORG] == 0)
  1208. {
  1209. TogglePlayerControllable(playerid, 0);
  1210. Registrado[playerid] = 1;
  1211. LimparChat(playerid, 125);
  1212. SetPlayerVirtualWorld(playerid,playerid+1);
  1213. ShowPlayerDialog(playerid, 11, DIALOG_STYLE_LIST, "{FFFF00}Escolha sua organização", "{00D900}Grove Street Families\n{FFC801}Los Santos Vagos\n{D900D3}Front Yard Ballas\n{2641FE}Los Varrios Aztecas\n{7491F6}San Fierro Department\n{FF5B5B}Comando Vermelho", "Escolher", "");
  1214. }
  1215. if(PlayerInfo[playerid][pORG] == 1)
  1216. {
  1217. new skin = PlayerInfo[playerid][pSkin];
  1218. SetPlayerSkin(playerid, skin);
  1219. SetPlayerColor(playerid,COR_GROVE);
  1220. SetPlayerPos(playerid, -2719.8328,-318.2808,7.8438);
  1221. SetPlayerVirtualWorld(playerid, 0);
  1222. }
  1223. else if(PlayerInfo[playerid][pORG] == 2)
  1224. {
  1225. new skin = PlayerInfo[playerid][pSkin];
  1226. SetPlayerSkin(playerid, skin);
  1227. SetPlayerColor(playerid,COR_BALLAS);
  1228. SetPlayerPos(playerid, -2765.0029,375.4214,6.3431);
  1229. SetPlayerVirtualWorld(playerid, 0);
  1230. }
  1231. else if(PlayerInfo[playerid][pORG] == 3)
  1232. {
  1233. new skin = PlayerInfo[playerid][pSkin];
  1234. SetPlayerSkin(playerid, skin);
  1235. SetPlayerColor(playerid,COR_VAGOS);
  1236. SetPlayerPos(playerid, -2523.7625,1216.6310,37.4283);
  1237. SetPlayerVirtualWorld(playerid, 0);
  1238. }
  1239. else if(PlayerInfo[playerid][pORG] == 4)
  1240. {
  1241. new skin = PlayerInfo[playerid][pSkin];
  1242. SetPlayerSkin(playerid, skin);
  1243. SetPlayerColor(playerid,COR_AZTECAS);
  1244. SetPlayerPos(playerid, -1783.8490,572.2196,35.1641);
  1245. SetPlayerVirtualWorld(playerid, 0);
  1246. }
  1247. else if(PlayerInfo[playerid][pORG] == 5)
  1248. {
  1249. new skin = PlayerInfo[playerid][pSkin];
  1250. SetPlayerSkin(playerid, skin);
  1251. SetPlayerColor(playerid,COR_SFPD);
  1252. SetPlayerPos(playerid, -1606.2655,673.0223,-5.2422);
  1253. SetPlayerVirtualWorld(playerid, 0);
  1254. }
  1255. else if(PlayerInfo[playerid][pORG] == 6)
  1256. {
  1257. new skin = PlayerInfo[playerid][pSkin];
  1258. SetPlayerSkin(playerid, skin);
  1259. SetPlayerColor(playerid,COR_CV);
  1260. SetPlayerPos(playerid, -2357.7964,1008.2492,50.8984);
  1261. SetPlayerVirtualWorld(playerid, 0);
  1262. }
  1263. PlayerPlaySound(playerid, 1069, 0.0, 0.0, 0.0);
  1264. return 1;
  1265. }
  1266.  
  1267. //=============== [ OnPlayerDisconnect ] ================
  1268. public OnPlayerDisconnect(playerid, reason)
  1269. {
  1270. //new string[128];
  1271. /*if(TaNoX1[playerid] == 1) ~> DESABILITADO
  1272. {
  1273. Limitex12 -= 1;
  1274. } */
  1275. PlayerInfo[playerid][pLogado] = 0;
  1276. TextDrawHideForPlayer(playerid, textdraw);
  1277. DestroyVehicle(veiculonovo);
  1278. Online --;
  1279. switch(reason)
  1280. {
  1281. case 0: format(gstring, sizeof(gstring), "{90EE90}[FusioN TDM]{D2D2FF}: [{FF0000}-{D2D2FF}] O jogador '%s' saiu do server por erro de conexão ou crash, %d/%d jogadores online.", NomeDoJogador(playerid),Online,GetMaxPlayers());
  1282. case 1: format(gstring, sizeof(gstring), "{90EE90}[FusioN TDM]{D2D2FF}: [{FF0000}-{D2D2FF}] O jogador '%s' saiu por vontade propria, %d/%d jogadores online.", NomeDoJogador(playerid),Online,GetMaxPlayers());
  1283. case 2: format(gstring, sizeof(gstring), "{90EE90}[FusioN TDM]{D2D2FF}: [{FF0000}-{D2D2FF}] O jogador '%s' Saiu do servidor kickado ou banido, %d/%d jogadores online.", NomeDoJogador(playerid),Online,GetMaxPlayers());
  1284. }
  1285. SendClientMessageToAll(COR_INFO, gstring);
  1286. if(PlayerInfo[playerid][pAdmin] >= 1)
  1287. {
  1288. if(IsPlayerConnected(playerid))
  1289. {
  1290. AdminsOnline--;
  1291. format(gstring,sizeof(gstring),"{90EE90}[FusioN TDM]{D2D2FF}: [{FF0000}-{D2D2FF}] O Administrador %s saiu do servidor, %d/%d jogadores online.",NomeDoJogador(playerid),Online,GetMaxPlayers());
  1292. SendClientMessageToAll(COR_INFO, gstring);
  1293. }
  1294. }
  1295. if(ProvocouConstrucao[playerid] == 1)
  1296. {
  1297. GangZoneStopFlashForAll(GZConstrucao);
  1298. GangZoneShowForAll(GZConstrucao, COR_GZ);
  1299. GuerranaConstrucao = 0;
  1300. ProvocouConstrucao[playerid] = 0;
  1301. donodaconstrucao = 0;
  1302. Dominando[playerid] = 0;
  1303. KillTimer(TempoDeGuerraNaConstrucao);
  1304. }
  1305. if(ProvocouPuteiro[playerid] == 1)
  1306. {
  1307. GangZoneStopFlashForAll(GZPuteiro);
  1308. GangZoneShowForAll(GZPuteiro, COR_GZ);
  1309. GuerranoPuteiro = 0;
  1310. ProvocouPuteiro[playerid] = 0;
  1311. donodoputeiro = 0;
  1312. Dominando[playerid] = 0;
  1313. KillTimer(TempoDeGuerraNoPuteiro);
  1314. }
  1315. }
  1316. //===============[ OnPlayerRequestClass ] ===============
  1317. public OnPlayerRequestClass(playerid,classid)
  1318. {
  1319. new arquivodini[256];
  1320. format(arquivodini, 64, "Contas/%s.ini", NomeDoJogador(playerid));
  1321. if(dini_Exists(arquivodini))
  1322. {
  1323. TogglePlayerControllable(playerid, 0);
  1324. SetPlayerCameraPos(playerid, -2974.0347,455.1507,7.9141);
  1325. SetPlayerCameraLookAt(playerid,-2948.5391,395.5059,2.6122);
  1326. SetPlayerPos(playerid, -2948.5391,395.5059,-5.6122);
  1327. SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Seu nick está registrado, logue.");
  1328. ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "{90EE90}FusioN TeamDeath Match", "Digite sua senha para logar-se", "Logar", "Esperar");
  1329. }
  1330. else
  1331. {
  1332. TogglePlayerControllable(playerid, 0);
  1333. SetPlayerCameraPos(playerid, -2974.0347,455.1507,7.9141);
  1334. SetPlayerCameraLookAt(playerid,-2948.5391,395.5059,2.6122);
  1335. SetPlayerPos(playerid, -2948.5391,395.5059,-5.6122);
  1336. SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Você não está registrado. Registre-se Para jogar");
  1337. ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "{90EE90}FusioN TeamDeath Match", "Crie sua senha para registrar-se", "Registrar", "Esperar");
  1338. }
  1339. return 1;
  1340. }
  1341.  
  1342. //================= [ OnGameModeInit ] ==================
  1343. public OnGameModeInit()
  1344. {
  1345. CreatePickup(1318, 1,-318.0935,7.8438,220.0164, -1);
  1346. SetGameModeText("FusioN ~ Team DeathMatch");
  1347. textdraw = TextDrawCreate(206,11,"~u~ ~r~www.-fusion-games.forumeiros.com ~u~");
  1348. TextDrawFont(textdraw,3);
  1349. TextDrawUseBox(textdraw,0);
  1350. SetTimer("NomeServer",1000,1);
  1351. SendRconCommand("mapname San Fierro");
  1352. //=================[ STUNT ] ========================
  1353. AddStaticVehicleEx(468,1902.36669922,-2233.57446289,13.30687523,180.00000000,1,-1,15); //Sanchez (stunt)
  1354. AddStaticVehicleEx(468,1903.61901855,-2233.62988281,13.30687523,180.00000000,1,-1,15); //Sanchez (stunt)
  1355. AddStaticVehicleEx(468,1904.71862793,-2233.65747070,13.30687523,180.00000000,1,-1,15); //Sanchez (stunt)
  1356. AddStaticVehicleEx(468,1905.88964844,-2233.73559570,13.30687523,180.00000000,1,-1,15); //Sanchez (stunt)
  1357. AddStaticVehicleEx(468,1907.23449707,-2233.85009766,13.30687523,180.00000000,1,-1,15); //Sanchez (stunt)
  1358. AddStaticVehicleEx(468,1908.38476562,-2233.87646484,13.30687523,180.00000000,1,-1,15); //Sanchez (stunt)
  1359. AddStaticVehicleEx(468,1909.53466797,-2233.95703125,13.30687523,180.00000000,1,-1,15); //Sanchez (stunt)
  1360. AddStaticVehicleEx(468,1910.63452148,-2233.92578125,13.30687523,180.00000000,1,-1,15); //Sanchez (stunt)
  1361. AddStaticVehicleEx(468,1911.78027344,-2233.84082031,13.30687523,180.00000000,1,-1,15); //Sanchez (stunt)
  1362. AddStaticVehicleEx(560,1914.63720703,-2233.93359375,13.35185051,180.00000000,6,1,15); //Sultan (stunt)
  1363. AddStaticVehicleEx(560,1918.00927734,-2234.00659180,13.35185051,180.00000000,6,1,15); //Sultan (stunt)
  1364. AddStaticVehicleEx(560,1921.49938965,-2234.04663086,13.35185051,180.00000000,6,1,15); //Sultan (stunt)
  1365. AddStaticVehicleEx(560,1924.90844727,-2233.97924805,13.35185051,180.00000000,6,1,15); //Sultan (stunt)
  1366. AddStaticVehicleEx(560,1928.20776367,-2234.11450195,13.35185051,180.00000000,6,1,15); //Sultan (stunt)
  1367. AddStaticVehicleEx(560,1931.50683594,-2234.19873047,13.35185051,180.00000000,6,1,15); //Sultan (stunt)
  1368. AddStaticVehicleEx(560,1935.15124512,-2234.24951172,13.35185051,180.00000000,6,1,15); //Sultan (stunt)
  1369. AddStaticVehicleEx(560,1935.15124512,-2234.24951172,13.35185051,180.00000000,6,1,15); //Sultan (stunt)(17 veículos)
  1370.  
  1371.  
  1372. CreateObject(3270,1921.74804688,-2299.01171875,11.77188683,0.00000000,0.00000000,33.99169922); //object(bonyrd_block2_) (1) (stunt)
  1373. CreateObject(3270,1972.17187500,-2335.70507812,11.72188759,0.00000000,0.00000000,139.99328613); //object(bonyrd_block2_) (1) (stunt)
  1374. CreateObject(12956,1840.17187500,-2438.99609375,15.93293381,0.00000000,0.00000000,15.99609375); //object(sw_trailerjump) (1) (stunt)
  1375. CreateObject(13590,2008.15917969,-2623.00976562,13.79773521,0.00000000,0.00000000,90.50000000); //object(kickbus04) (1) (stunt)
  1376. CreateObject(13641,1966.18164062,-2619.84960938,12.93423462,0.00000000,0.00000000,353.99597168); //object(kickramp04) (1) (stunt)
  1377. CreateObject(13592,1957.39843750,-2623.80957031,22.29250908,0.00000000,0.00000000,1.74621582); //object(loopbig) (1) (stunt)
  1378. CreateObject(13592,1858.38671875,-2417.88671875,22.34250832,0.00000000,0.00000000,26.24084473); //object(loopbig) (2) (stunt)
  1379. CreateObject(13592,1723.34179688,-2487.20141602,22.53225327,0.00000000,0.00000000,4.24621582); //object(loopbig) (3) (stunt)
  1380. CreateObject(13592,1708.88061523,-2495.04492188,22.53225327,0.00000000,0.00000000,4.24621582); //object(loopbig) (4) (stunt)
  1381. CreateObject(13592,1738.27026367,-2478.83422852,22.38225555,0.00000000,0.00000000,184.49621582); //object(loopbig) (4) (stunt)
  1382. CreateObject(13592,1750.78454590,-2471.00390625,22.33225632,0.00000000,0.00000000,184.49340820); //object(loopbig) (4) (stunt)
  1383. CreateObject(13638,1954.87194824,-2445.50390625,15.11154938,0.00000000,0.00000000,0.00000000); //object(stunt1) (1) (stunt)
  1384. CreateObject(5244,1747.46887207,-2593.84985352,15.01988602,0.00000000,0.00000000,0.00000000); //object(lasntrk1im03) (1) (stunt)
  1385. CreateObject(13636,1776.09985352,-2550.19067383,14.70226860,0.00000000,0.00000000,0.00000000); //object(logramps) (1) (stunt)
  1386. CreateObject(1634,1778.79418945,-2593.54321289,13.61919594,0.00000000,0.00000000,90.00000000); //object(landjump2) (1) (stunt)
  1387. CreateObject(1634,1704.45129395,-2593.70581055,13.61919594,0.00000000,0.00000000,272.00000000); //object(landjump2) (2) (stunt)
  1388. CreateObject(5244,1742.32971191,-2593.68188477,15.01988602,0.00000000,0.00000000,0.00000000); //object(lasntrk1im03) (2) (stunt)(17 objetos)
  1389. //==================[ TEXT DRAW ] ====================
  1390. fusion = TextDrawCreate(512.000000,99.000000,"~g ~g[FUSION TDM]~g"); // Mude para o nome que deseja
  1391. TextDrawFont(fusion,0);
  1392. TextDrawColor(fusion,16711935); // Cor da letra
  1393. TextDrawLetterSize(fusion,0.599999,1.000000);
  1394. TextDrawSetOutline(fusion,1);
  1395. TextDrawSetShadow(fusion,1);
  1396. TextDrawSetProportional(fusion,1);
  1397. TextDrawBackgroundColor(fusion,0x000000ff);
  1398. //==================[ ARENA TDM ] ===========
  1399. CreateObject(16771,3133.73266602,-1661.36303711,10.25000000,0.00000000,0.00000000,0.00000000); //arena x1 mar
  1400. CreateObject(9108,3125.31445312,-1565.62402344,-24.68946075,0.00000000,0.00000000,0.00000000); //arena x1 mar
  1401. CreateObject(987,3118.06079102,-1639.73901367,3.69531250,0.00000000,0.00000000,0.00000000); //arena x1 mar
  1402. CreateObject(987,3130.00927734,-1639.75256348,3.69531250,0.00000000,0.00000000,0.00000000); //arena x1 mar
  1403. CreateObject(987,3139.06811523,-1639.69921875,3.69531250,0.00000000,0.00000000,0.00000000); //arena x1 mar (5 objects)
  1404. //==================[ TEXT DRAW RADAR BY BLACK ] ==================
  1405. // CASO RODNEY QUEIRA MUDAR
  1406. Textdrawdebaixodoradar= TextDrawCreate(1.0, 433.0,"~b~ ~b~[FusioN] Team Death Match Brasil] Versao 1.0~b~");
  1407. TextDrawAlignment(Textdrawdebaixodoradar,0);
  1408. TextDrawBackgroundColor(Textdrawdebaixodoradar,0x000000ff);
  1409. TextDrawFont(Textdrawdebaixodoradar,2);//
  1410. TextDrawLetterSize(Textdrawdebaixodoradar,0.2999, 1.4);
  1411. TextDrawBoxColor(Textdrawdebaixodoradar,0x00000050);
  1412. TextDrawColor(Textdrawdebaixodoradar,0xffffffff);
  1413. TextDrawSetOutline(Textdrawdebaixodoradar,1);
  1414. TextDrawSetProportional(Textdrawdebaixodoradar,1);
  1415. TextDrawSetShadow(Textdrawdebaixodoradar,1);//
  1416. for(new i; i < MAX_PLAYERS; i ++)
  1417. {
  1418. if(IsPlayerConnected(i))
  1419. {
  1420. TextDrawShowForPlayer(i, Textdrawdebaixodoradar);
  1421. }
  1422. }
  1423.  
  1424. //---- gangzones
  1425. //-- Construcao
  1426. donodaconstrucao = 0;
  1427. GZConstrucao = GangZoneCreate(-2132.02, 136.4459, -2008.414, 325.8042);
  1428. //-- Puteiro
  1429. donodoputeiro = 0;
  1430. GZPuteiro = GangZoneCreate(-2645.757, 1343.605, -2545.327, 1442.229);
  1431.  
  1432.  
  1433. //-- pickups --
  1434. AddStaticPickup(1318, 1, -2272.9070,40.5258,35.3125, -1); // Entrada Ammunation
  1435. AddStaticPickup(1318, 1, 316.3856,-169.3918,999.6010, -1) // Saída Ammunation
  1436. //-- TEXTLABEL --
  1437. Create3DTextLabel("Ammunation\nPressione 'F' para entrar.",COR_TEXTO3D,-2272.9070,40.5258,35.3125,10.0,0); // Entrada Ammunation
  1438.  
  1439. //==================[ HQ ~ COMANDO VERMELHO ] ==================
  1440. AddStaticVehicleEx(603,-2320.95214844,986.93457031,50.69798660,0.00000000,3,3,15); // [ 1 ]
  1441. AddStaticVehicleEx(560,-2319.96289062,1032.06738281,50.50028610,90.00000000,3,1,15); // [ 2 ]
  1442. AddStaticVehicleEx(603,-2324.22778320,987.20489502,50.69798660,0.00000000,3,3,15); // [ 3 ]
  1443. AddStaticVehicleEx(541,-2319.57446289,1021.85137939,50.39531326,92.00000000,3,3,15); // [ 4 ]
  1444. AddStaticVehicleEx(415,-2319.50463867,1011.50189209,50.54483414,90.00000000,3,1,15); // [ 5 ]
  1445. AddStaticVehicleEx(415,-2319.68432617,1008.17047119,50.54483414,90.00000000,3,1,15); // [ 6 ]
  1446. AddStaticVehicleEx(415,-2319.61718750,1004.88183594,50.54483414,90.00000000,3,1,15); // [ 7 ]
  1447. AddStaticVehicleEx(522,-2319.03271484,1000.32855225,50.36326981,86.00000000,3,3,15); // [ 8 ]
  1448. AddStaticVehicleEx(522,-2319.15063477,999.08361816,50.36326981,85.99548340,3,3,15); // [ 9 ]
  1449. AddStaticVehicleEx(522,-2319.31542969,997.33984375,50.36326981,85.99548340,3,3,15); //[ 10 ]
  1450. //==================[ HQ ~ AZTECAS ] ===========================
  1451. AddStaticVehicleEx(576,-1794.80786133,589.08135986,34.73905182,151.99987793,103,1,15); // [ 11 ]
  1452. AddStaticVehicleEx(566,-1799.23657227,589.32037354,34.91405487,152.00000000,103,1,15); // [ 12 ]
  1453. AddStaticVehicleEx(480,-1803.36633301,589.87097168,35.01406097,156.00000000,103,1,15); // [ 13 ]
  1454. AddStaticVehicleEx(474,-1790.48449707,589.29730225,35.06406403,150.00000000,103,1,15); // [ 14 ]
  1455. AddStaticVehicleEx(581,-1789.15783691,582.23168945,34.86655426,126.00000000,103,1,15); // [ 15 ]
  1456. AddStaticVehicleEx(461,-1788.39062500,580.60449219,34.73722839,121.99768066,103,1,15); // [ 16 ]
  1457. AddStaticVehicleEx(581,-1787.23120117,578.93188477,34.86655426,125.99670410,103,1,15); // [ 17 ]
  1458.  
  1459.  
  1460. //caros
  1461.  
  1462. AddStaticVehicleEx(597,-1573.34704590,706.07995605,-5.37218761,90.00000000,-1,1,15); // [ 18 ]
  1463. AddStaticVehicleEx(597,-1573.33911133,710.23583984,-5.37218761,90.00000000,-1,1,15); // [ 19 ]
  1464. AddStaticVehicleEx(597,-1573.29125977,714.26330566,-5.37218761,90.00000000,-1,1,15); // [ 20 ]
  1465. AddStaticVehicleEx(597,-1573.33264160,718.26977539,-5.37218761,90.00000000,-1,1,15); // [ 21 ]
  1466. AddStaticVehicleEx(597,-1573.35119629,722.34051514,-5.37218761,90.00000000,-1,1,15); // [ 22 ]
  1467. AddStaticVehicleEx(523,-1573.11083984,726.75653076,-5.58181000,92.00000000,-1,-1,15); // [ 23 ]
  1468. AddStaticVehicleEx(523,-1573.10961914,730.85595703,-5.58181000,91.99951172,-1,-1,15); // [ 24 ]
  1469. AddStaticVehicleEx(523,-1573.18872070,734.73895264,-5.58181000,91.99951172,-1,-1,15); // [ 25 ]
  1470. AddStaticVehicleEx(523,-1572.97363281,738.75109863,-5.58181000,91.99951172,-1,-1,15); // [ 26 ]
  1471. AddStaticVehicleEx(523,-1573.14709473,742.95953369,-5.58181000,91.99951172,-1,-1,15); // [ 27 ]
  1472.  
  1473. //============ [ CV ] ===========
  1474. CreateObject(3749,-2364.57031250,965.27441406,50.36738586,0.00000000,0.00000000,0.00000000); //object(clubgate01_lax) (1)
  1475. CreateObject(3092,-2364.53637695,962.77508545,51.90036011,0.00000000,0.00000000,179.99993896); //object(dead_tied_cop) (1)
  1476. CreateObject(3092,-2363.81054688,962.77441406,51.95886230,0.00000000,0.00000000,179.99450684); //object(dead_tied_cop) (3)
  1477. CreateObject(980,-2433.41503906,497.28482056,31.70606232,0.00000000,0.00000000,22.00000000); //object(airportgate) (2)
  1478.  
  1479. //=================== [ ARENA X1 ] ====================== 18 objetos
  1480. CreateObject(987, 1491.1190185547, -1113.9378662109, 134.828125, 0, 0, 0); //arena x1
  1481. CreateObject(987, 1503.1105957031, -1113.9516601563, 134.828125, 0, 0, 0); //arena x1
  1482. CreateObject(987, 1515.0943603516, -1113.9479980469, 134.828125, 0, 0, 0); //arena x1
  1483. CreateObject(987, 1527.1196289063, -1113.9428710938, 134.828125, 0, 0, 0); //arena x1
  1484. CreateObject(987, 1539.0938720703, -1113.9443359375, 134.828125, 0, 0, 0); //arena x1
  1485. CreateObject(987, 1551.0864257813, -1114.0242919922, 134.828125, 0, 0, 270); //arena x1
  1486. CreateObject(987, 1551.0949707031, -1126.0083007813, 134.828125, 0, 0, 270); //arena x1
  1487. CreateObject(987, 1551.0816650391, -1137.9957275391, 134.828125, 0, 0, 270); //arena x1
  1488. CreateObject(987, 1551.0782470703, -1141.0017089844, 134.828125, 0, 0, 270); //arena x1
  1489. CreateObject(987, 1551.0194091797, -1151.6549072266, 134.828125, 0, 0, 180); //arena x1
  1490. CreateObject(987, 1539.0758056641, -1151.6381835938, 134.828125, 0, 0, 179.99450683594); //arena x1
  1491. CreateObject(987, 1527.142578125, -1151.6578369141, 134.828125, 0, 0, 179.99450683594); //arena x1
  1492. CreateObject(987, 1515.1802978516, -1151.66796875, 134.828125, 0, 0, 179.99450683594); //arena x1
  1493. CreateObject(987, 1503.1853027344, -1151.6451416016, 134.828125, 0, 0, 179.99450683594); //arena x1
  1494. CreateObject(987, 1491.6091308594, -1151.5003662109, 134.828125, 0, 0, 89.994506835938); //arena x1
  1495. CreateObject(987, 1491.6375732422, -1139.5330810547, 134.828125, 0, 0, 89.994506835938); //arena x1
  1496. CreateObject(987, 1491.6551513672, -1127.5769042969, 134.828125, 0, 0, 89.994506835938); //arena x1
  1497. CreateObject(987, 1491.64453125, -1124.5695800781, 134.828125, 0, 0, 89.994506835938); //arena x1
  1498.  
  1499.  
  1500. //================ [ GangZone ~ Puteiro ] ============== 6 objetos
  1501. CreateObject(18246,-2638.71411133,1346.57275391,9.09152603,0.00000000,0.00000000,0.00000000);
  1502. CreateObject(2890,-2604.63256836,1369.27990723,6.09966183,0.00000000,0.00000000,38.00000000);
  1503. CreateObject(12957,-2638.89038086,1356.62609863,7.01930809,0.00000000,0.00000000,310.00000000);
  1504. CreateObject(12957,-2625.32617188,1371.72070312,7.01930809,0.00000000,0.00000000,47.99572754);
  1505. CreateObject(13591,-2638.19311523,1371.89904785,9.29472828,0.00000000,0.00000000,284.00000000);
  1506. CreateObject(12957,-2645.56591797,1317.61914062,7.01930809,0.00000000,0.00000000,255.99572754);
  1507. //============== [ GangZone ~ Construção ] ============= 14 objetos
  1508. //---- objetos em volta - EXTRA -qq 6 objetos
  1509. CreateObject(3594, -2245.9370117188, 222.5230255127, 34.951488494873, 0, 0, 8); //Objetos em volta tr 001
  1510. CreateObject(3593, -2160.7009277344, -57.094345092773, 35.022686004639, 0, 0, 16); //Objetos em volta tr 001
  1511. CreateObject(3594, -2078.8850097656, 21.305450439453, 34.951488494873, 0, 0, 310); //Objetos em volta tr 001
  1512. CreateObject(3594, -2131.505859375, 496.63024902344, 34.803050994873, 0, 0, 306); //Objetos em volta tr 001
  1513. CreateObject(3594, -2021.6226806641, 557.35620117188, 34.795253753662, 0, 0, 252); //Objetos em volta tr 001
  1514. CreateObject(1358, -2235.8374023438, 517.00482177734, 35.375419616699, 0, 0, 28); //Objetos em volta tr 001
  1515. //----
  1516. CreateObject(2890, -2123.982421875, 216.05436706543, 34.305191040039, 0, 0, 270); //TR 001
  1517. CreateObject(12957, -2125.4948730469, 211.31047058105, 35.164348602295, 0, 0, 174); //TR 001
  1518. CreateObject(12957, -2126.2312011719, 206.04020690918, 35.164348602295, 0, 0, 357.99597167969); //TR 001
  1519. CreateObject(12957, -2135.4562988281, 200.49903869629, 35.164348602295, 0, 0, 179.99499511719); //TR 001
  1520. CreateObject(12957, -2135.9846191406, 206.48287963867, 35.164348602295, 0, 0, 359.99450683594); //TR 001
  1521. CreateObject(12957, -2135.1196289063, 211.57006835938, 35.164348602295, 0, 0, 179.98901367188); //TR 001
  1522. CreateObject(3461, -2125.8615722656, 203.87991333008, 34.606369018555, 0, 0, 0); //TR 001
  1523. CreateObject(3461, -2135.4636230469, 213.7407989502, 34.556365966797, 0, 0, 0); //TR 001
  1524. CreateObject(3573, -2075.8190917969, 201.4518737793, 37.354564666748, 0, 0, 308); //TR 001
  1525. CreateObject(3575, -2058.2839355469, 281.59628295898, 36.799289703369, 0, 0, 0); //TR 001
  1526. CreateObject(7317, -2051.07421875, 228.15628051758, 40.26473236084, 0, 0, 270); //TR 001
  1527. CreateObject(3575, -2111.8032226563, 251.64399719238, 37.524333953857, 0, 356, 16); //TR 001
  1528. CreateObject(3573, -2099.3676757813, 166.29258728027, 36.704524993896, 0, 0, 27.996215820313); //TR 001
  1529. CreateObject(3575, -2120.2541503906, 296.54943847656, 36.799289703369, 0, 0, 40); //TR 001
  1530. //---- ammunation ~ 10 objetos
  1531. CreateObject(944, 310.99899291992, -160.2159576416, 999.478515625, 0, 0, 0);
  1532. CreateObject(3014, 312.08880615234, -160.57638549805, 1000.2758178711, 0, 0, 0);
  1533. CreateObject(3014, 310.88705444336, -159.73852539063, 1000.2758178711, 0, 0, 0);
  1534. CreateObject(3014, 310.13067626953, -160.67391967773, 1000.2758178711, 0, 0, 0);
  1535. CreateObject(1224, 307.84002685547, -166.40014648438, 999.20867919922, 0, 0, 0);
  1536. CreateObject(1224, 308.38012695313, -165.67610168457, 1000.3283081055, 0, 0, 0);
  1537. CreateObject(1224, 308.94448852539, -164.72091674805, 999.20867919922, 0, 0, 0);
  1538. CreateObject(1230, 311.90603637695, -166.78846740723, 1000.0914306641, 0, 0, 0);
  1539. CreateObject(1230, 311.59396362305, -169.7569732666, 999.01776123047, 0, 0, 0);
  1540. CreateObject(1299, 316.83779907227, -164.7844543457, 999.05688476563, 0, 0, 0);
  1541. //----
  1542. return 1;
  1543. }
  1544.  
  1545. public GameModeInitExitFunc()
  1546. {
  1547. for(new i = 0; i < MAX_PLAYERS; i++)
  1548. {
  1549. if(IsPlayerConnected(i))
  1550. {
  1551. GameTextForPlayer(i, "> GMX <", 4000, 5);
  1552. TogglePlayerControllable(i, 0);
  1553. SetPlayerCameraPos(i, -2974.0347,455.1507,7.9141);
  1554. TextDrawHideForAll(Textdraw1);
  1555. TextDrawDestroy(Textdraw1);
  1556. SetPlayerCameraLookAt(i,-2948.5391,395.5059,2.6122);
  1557. SetPlayerPos(i, -2948.5391,395.5059,-5.6122);
  1558. PlayerInfo[i][pLogado] = 0;
  1559. }
  1560. }
  1561. KillTimer(TempoDeGuerraNaConstrucao);
  1562. KillTimer(TempoDeGuerraNoPuteiro);
  1563. SetTimer("GameModeExitFunc", 4000, 0);
  1564. return 1;
  1565. }
  1566.  
  1567. public GameModeExitFunc()
  1568. {
  1569. GameModeExit();
  1570. }
  1571. //================== [ OnPlayerDeath ] ==================
  1572. public OnPlayerDeath(playerid, killerid, reason)
  1573. {
  1574. new string[256];
  1575. SendDeathMessage(killerid,playerid,reason);
  1576. DropWeapons( playerid );
  1577. //================== [ Morte no x1 ] ==================== ~> DESABILITADO
  1578. /*if(TaNoX1[playerid] == 1)
  1579. {
  1580. new
  1581. string[50+MAX_PLAYER_NAME],
  1582. Nome[40][MAX_PLAYERS],
  1583. Nomi[40][MAX_PLAYERS]
  1584. ;
  1585. PlayerInfo[playerid][pMortes]++;
  1586. TaNoX1[playerid] = 0;
  1587. TaNoX1[killerid] = 0;
  1588.  
  1589. Limitex12 = 0;
  1590. format(string, sizeof(string),"{0000FF}[X1]{D2D2FF}: %s ganhou no x1 contra %s.",Nomi[killerid], Nome[killerid]);
  1591. SendClientMessageToAll(COR_BRANCA, string);
  1592. SpawnarJogador(killerid);
  1593. SpawnarJogador(playerid);
  1594. } */
  1595. if(ProvocouConstrucao[playerid] == 1)
  1596. {
  1597. AtualizarJogador(playerid);
  1598. AtualizarJogador(killerid);
  1599. GangZoneStopFlashForAll(GZConstrucao);
  1600. GangZoneShowForAll(GZConstrucao, COR_GZ);
  1601. GuerranaConstrucao = 0;
  1602. ProvocouConstrucao[playerid] = 0;
  1603. donodaconstrucao = 0;
  1604. Dominando[playerid] = 0;
  1605. KillTimer(TempoDeGuerraNaConstrucao);
  1606. }
  1607. if(ProvocouPuteiro[playerid] == 1)
  1608. {
  1609. AtualizarJogador(playerid);
  1610. AtualizarJogador(killerid);
  1611. GangZoneStopFlashForAll(GZPuteiro);
  1612. GangZoneShowForAll(GZPuteiro, COR_GZ);
  1613. GuerranoPuteiro = 0;
  1614. ProvocouPuteiro[playerid] = 0;
  1615. donodoputeiro = 0;
  1616. Dominando[playerid] = 0;
  1617. KillTimer(TempoDeGuerraNoPuteiro);
  1618. }
  1619. GetPlayerName(killerid, TKmatador, sizeof(TKmatador));
  1620. if(killerid == INVALID_PLAYER_ID)
  1621. {
  1622. SendDeathMessage(INVALID_PLAYER_ID,playerid,reason);
  1623. }
  1624. else if(PlayerInfo[killerid][pORG] == PlayerInfo[playerid][pORG])
  1625. {
  1626. format(string, sizeof(string),"{FFFF00}[INFO]{D2D2FF}: O jogador %s da sua organização, te matou", TKmatador);
  1627. SendClientMessage(killerid, COR_INFO,"{FFFF00}[INFO]{D2D2FF}: Você perdeu 1 ponto e 10000 R$ por ter cometido TK(Team-Kill).");
  1628. SendClientMessage(playerid, COR_INFO, string);
  1629. SetPlayerScore(killerid,GetPlayerScore(killerid) -1);
  1630. GivePlayerMoney(killerid, -10000);
  1631. PlayerInfo[killerid][pKills]++;
  1632. PlayerInfo[playerid][pMortes]++;
  1633. AtualizarJogador(playerid);
  1634. AtualizarJogador(killerid);
  1635. SetPlayerScore(killerid, GetPlayerScore(playerid) + 1);
  1636. SetPlayerScore(playerid, GetPlayerScore(playerid) - 1);
  1637. }
  1638. if(IsPlayerInAnyVehicle(killerid))
  1639. {
  1640. new NomeDoMatador[40][MAX_PLAYERS];
  1641. GetPlayerName(killerid, NomeDoMatador[killerid], 40);
  1642. format(string, sizeof(string), "{33CCFF}[ADMIN] %s cometeu Drive-by em %s e foi kickado automaticamente.",NomeDoMatador[killerid],NomeDoJogador(playerid));
  1643. SendClientMessageToAll(COR_INFO, string);
  1644. Kick(killerid);
  1645. AtualizarJogador(playerid);
  1646. AtualizarJogador(killerid);
  1647. }
  1648. return 1;
  1649. }
  1650. //================= [ OnPlayerCommand ] =================
  1651. public OnPlayerCommandText(playerid, cmdtext[])
  1652. {
  1653. new idx;
  1654. new string[256];
  1655. new cmd[256];
  1656. new tmp[256];
  1657. new giveplayerid;
  1658. cmd = strtok(cmdtext, idx);
  1659.  
  1660.  
  1661. //============= [ Ganhar admin(provisório) ] ==============
  1662. if(strcmp(NomeDoJogador(playerid),"KeneD_FusioN",true)==0)
  1663. {
  1664. AdminsOnline ++;
  1665. PlayerInfo[playerid][pAdmin] = 1;
  1666. }
  1667. if(strcmp(NomeDoJogador(playerid),"[rLz]Aleeemaao",true)==0)
  1668. {
  1669. AdminsOnline ++;
  1670. PlayerInfo[playerid][pAdmin] = 1;
  1671. }
  1672. if(strcmp(NomeDoJogador(playerid),"Black_Shift",true)==0)
  1673. {
  1674. AdminsOnline ++;
  1675. PlayerInfo[playerid][pAdmin] = 1;
  1676. }
  1677. //============== [ CHUCK ] ================================
  1678. if(strcmp(cmdtext, "/chuck", true) == 0)
  1679. {
  1680. GivePlayerWeapon(playerid, 4, 1);
  1681. GivePlayerWeapon(playerid, 24, 999);
  1682. GivePlayerWeapon(playerid, 25, 999);
  1683. GivePlayerWeapon(playerid, 31, 999);
  1684. GivePlayerWeapon(playerid, 29, 999);
  1685. GivePlayerWeapon(playerid, 34, 999);
  1686. SetPlayerArmour(playerid, 100);
  1687. SetPlayerHealth(playerid, 100);
  1688. format(string, sizeof(string), "Você virou Chuck Norris", playerid);
  1689. GameTextForPlayer(playerid, string, 5000, 3);
  1690. SetPlayerName(playerid, "Chuck_Norris");
  1691. return 1;
  1692. }
  1693. //============== [ Info Player ] ===============
  1694. if(strcmp(cmd,"/teleportes", true) == 0)
  1695. {
  1696. ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, "Info", "{FFFFFF}Recuperar Vida\n{FFFFFF}Reparar Carro\n{FFFFFF}Ban Automatico", "Escolher", " ");
  1697. return 1;
  1698. }
  1699. //============== [ Comandos do FusioN TDM ] ===============
  1700. if(strcmp(cmd,"/teleportes", true) == 0)
  1701. {
  1702. if(!(PlayerInfo[playerid][pAdmin] != 0)) return SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você não é administrador.");
  1703. ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "Escolha o tipo de lugar", "Head Quarters(HQ)\nTerritórios*{FFFF00}NOVO\nEventos*{FF0000}DESATIVADO\nOutros*{FFFF00}NOVO", "Escolher", "Cancelar");
  1704. return 1;
  1705. }
  1706. //================= [ INFO DB ] ========================
  1707. if (strcmp("/infodb", cmdtext, true, 10) == 0)
  1708. {
  1709. SendClientMessage(playerid, Amarelo,"INFORMAÇÕES SOBRE 'DRIVE-BY'");
  1710. SendClientMessage(playerid, Amarelo, "Drive-by é o ato de ficar atropelando e matando jogadores usando");
  1711. SendClientMessage(playerid, Amarelo, "veículos terrestres. Isso, implica em o jogador ser ejetado");
  1712. SendClientMessage(playerid, Amarelo, "do carro e na segunda vez ser 'kickado' do server. Se alguem está te ");
  1713. SendClientMessage(playerid, Amarelo,"atropelando, avise os Admins ( /reportar [mensagem] )");
  1714. SendClientMessage(playerid, Amarelo,"INFO: DB é atropelar com o veículo, NÃO É atirar de dentro do veículo!");
  1715. return 1;
  1716. }
  1717. //================ [ REGRAS ] ==========================
  1718. if(strcmp(cmdtext, "/regras", true) == 0 || strcmp(cmdtext, "/rules", true) == 0)
  1719. {
  1720. SendClientMessage(playerid,COR_VERDE,"••• REGRAS •••");
  1721. SendClientMessage(playerid,COR_AZULCLARO,"1ª Proibido o Racismo, seja ele de Cor, Raça ou Religião. (KICK)");
  1722. SendClientMessage(playerid,COR_AMARELA,"2ª Proibido xingar outros jogadores. E matá-los em areas de lazer (KICK) ");
  1723. SendClientMessage(playerid,COR_AZULCLARO,"3ª Proibido utilizar cheater, ou outros MODs que tragam vantagem sua sobre os outros. (BAN)");
  1724. SendClientMessage(playerid,COR_VERMELHA,"4ª Proibido fazer denúncias falsas. (KICK)");
  1725. SendClientMessage(playerid,COR_AZULCLARO,"5ª Proibido aproveitar-se de jogadores iniciantes. (KICK)");
  1726. SendClientMessage(playerid,COR_VERMELHA,"6ª Proibido divulgar outros servidores. (BAN)");
  1727. SendClientMessage(playerid,COR_AMARELA,"7ª Proibido fazer Drive-By (DB) e Flood. Se não sabe o que é leia ( /infodb ) (KICK)");
  1728. SendClientMessage(playerid,COR_AZULCLARO,"8ª Proibido teclar ESC em áreas de Ganhar Dinheiro. (KICK)");
  1729. SendClientMessage(playerid,COR_VERDE,"9ª Proibido bater e atirar dentro de Ammunation e Banco. (KICK)");
  1730. SendClientMessage(playerid,COR_AMARELA,"•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••");
  1731. return 1;
  1732. }
  1733. //================= [ HOT COFFE ] =========================
  1734. if(strcmp(cmd,"/hotcoffe", true) == 0)
  1735. {
  1736. SendClientMessage(playerid, COR_VERMELHA, "|__________ Comandos HOTCOFFE FUSION TDM |__________");
  1737. SendClientMessage(playerid, COR_VERMELHA, "Para ficar em posição de transar (para mulheres): /mulhersexo");
  1738. SendClientMessage(playerid, COR_VERMELHA, "Para comer a mulher: /comermulher");
  1739. SendClientMessage(playerid, COR_VERMELHA, "Para ficar de 4: /de4");
  1740. SendClientMessage(playerid, COR_VERMELHA, "Para rolar e deitar: /mulherfudida ");
  1741. SendClientMessage(playerid, COR_VERMELHA, "Para bater uma punheta: /punheta (NEGO PUNHETERO) ¬¬");
  1742. SendClientMessage(playerid, COR_VERMELHA, "••••••••••••••••••••••••••••••••••••••••••••");
  1743. return 1;
  1744. }
  1745. //================= [ PEGAR ARMAS ] =====================
  1746. if(strcmp(cmdtext, "/pegararma", true) == 0)
  1747. {
  1748. GivePlayerWeapon(playerid,30,200);
  1749. GivePlayerWeapon(playerid,24,150);
  1750. GivePlayerMoney(playerid,-500);
  1751. SendClientMessage(playerid, COR_VERMELHA, "Armas Compradas ");
  1752. SendClientMessage(playerid, COR_VERMELHA, "Se quiser armas melhores,vá até a loja de armas ");
  1753. return 1;
  1754. }
  1755. //================= [ Entrar e sair ] ====================
  1756. if (strcmp(cmdtext, "/open", true)==0)
  1757. {
  1758. if(PlayerToPoint(10, playerid, 1106.039794 , -1740.868041 , 11.745720))
  1759. {
  1760. SetPlayerInterior(playerid,6);
  1761. SetPlayerVirtualWorld(playerid, 0);
  1762. SetPlayerPos(playerid,316.2087,-166.7301,999.5938);
  1763. }
  1764.  
  1765. //================ [ GODMODE ] ==================
  1766. /*if(strcmp(cmdtext,"/god", true) == 0)
  1767. {
  1768. if(!(PlayerInfo[playerid][pAdmin] != 0)) return SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você não é administrador.");
  1769. SendClientMessage(playerid, COR_BRANCA, "Agora você esta em modo Deus!");
  1770. SetPlayerArmour(playerid, 99999);
  1771. SetPlayerHealth(playerid, 99999);
  1772. return 1;
  1773. } */
  1774. //===========[ Loja System 1.0 ] ==================
  1775. if(strcmp(cmdtext,"/loja", true) == 0)
  1776. {
  1777. if(!(PlayerInfo[playerid][pLugar] == 101)) return SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você não está na loja de armas");
  1778. ShowPlayerDialog(playerid, 4, DIALOG_STYLE_LIST, "{FFFF00}Escolha seu kit", "{FFFFFF}Kit básico (R$ {4169E1}3000{FFFFFF})\n{FFFFFF}Kit intermediário (R$ {4169E1}4000{FFFFFF})\n{FFFFFF}Kit avançado(R$ {4169E1}5000{FFFFFF})", "Ok", "Cancelar");
  1779. return 1;
  1780. }
  1781. //============= [ KIT DE ARMAS ] =========
  1782. /* if(strcmp(cmdtext, "/kits", true) == 0)
  1783. {
  1784. TextDrawAlignment(textdraw0,0);
  1785. TextDrawBackgroundColor(textdraw0,0x000000ff);
  1786. TextDrawFont(textdraw0,1);
  1787. TextDrawLetterSize(textdraw0,0.399999,1.600000);
  1788. TextDrawColor(textdraw0,white);
  1789. TextDrawSetOutline(textdraw0,1);
  1790. TextDrawSetProportional(textdraw0,1);
  1791. TextDrawSetShadow(textdraw0,1);
  1792. TextDrawShowForPlayer(playerid, textdraw0);
  1793.  
  1794. TextDrawAlignment(textdraw1,0);
  1795. TextDrawBackgroundColor(textdraw1,0x000000ff);
  1796. TextDrawFont(textdraw1,1);
  1797. TextDrawLetterSize(textdraw1,0.399999,1.600000);
  1798. TextDrawColor(textdraw1,white);
  1799. TextDrawSetOutline(textdraw1,1);
  1800. TextDrawSetProportional(textdraw1,1);
  1801. TextDrawSetShadow(textdraw1,1);
  1802. TextDrawShowForPlayer(playerid, textdraw1);
  1803.  
  1804. TextDrawAlignment(textdraw2,0);
  1805. TextDrawBackgroundColor(textdraw2,0x000000ff);
  1806. TextDrawFont(textdraw2,1);
  1807. TextDrawLetterSize(textdraw2,0.399999,1.600000);
  1808. TextDrawColor(textdraw2,white);
  1809. TextDrawSetOutline(textdraw2,1);
  1810. TextDrawSetProportional(textdraw2,1);
  1811. TextDrawSetShadow(textdraw2,1);
  1812. TextDrawShowForPlayer(playerid, textdraw2);
  1813.  
  1814. TextDrawAlignment(textdraw3,0);
  1815. TextDrawBackgroundColor(textdraw3,0x000000ff);
  1816. TextDrawFont(textdraw3,1);
  1817. TextDrawLetterSize(textdraw3,0.399999,1.600000);
  1818. TextDrawColor(textdraw3,white);
  1819. TextDrawSetOutline(textdraw3,1);
  1820. TextDrawSetProportional(textdraw3,1);
  1821. TextDrawSetShadow(textdraw3,1);
  1822. TextDrawShowForPlayer(playerid, textdraw3);
  1823.  
  1824. TextDrawAlignment(textdraw4,0);
  1825. TextDrawBackgroundColor(textdraw4,0x000000ff);
  1826. TextDrawFont(textdraw4,1);
  1827. TextDrawLetterSize(textdraw4,0.399999,1.600000);
  1828. TextDrawColor(textdraw4,white);
  1829. TextDrawSetOutline(textdraw4,1);
  1830. TextDrawSetProportional(textdraw4,1);
  1831. TextDrawSetShadow(textdraw4,1);
  1832. TextDrawShowForPlayer(playerid, textdraw4);
  1833.  
  1834. TextDrawAlignment(textdraw5,0);
  1835. TextDrawBackgroundColor(textdraw5,0x000000ff);
  1836. TextDrawFont(textdraw5,1);
  1837. TextDrawLetterSize(textdraw5,0.399999,1.600000);
  1838. TextDrawColor(textdraw5,white);
  1839. TextDrawSetOutline(textdraw5,1);
  1840. TextDrawSetProportional(textdraw5,1);
  1841. TextDrawSetShadow(textdraw5,1);
  1842. TextDrawShowForPlayer(playerid, textdraw5);
  1843.  
  1844. ShowMenuForPlayer(kits,playerid);
  1845.  
  1846. return 1;
  1847. }
  1848. return 1;
  1849. }
  1850. */
  1851.  
  1852. //================= [ Anti-Queda ~ MOTO ] =================
  1853. if(strcmp(cmd, "/setint", true) == 0)
  1854. {
  1855. if(IsPlayerConnected(playerid))
  1856. {
  1857. tmp = strtok(cmdtext, idx);
  1858. if(!strlen(tmp))
  1859. {
  1860. SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}:{8470FF} /setint {D2D2FF}[ID do interior]");
  1861. return 1;
  1862. }
  1863. new intid;
  1864. intid = strval(tmp);
  1865. SetPlayerInterior(playerid,intid);
  1866. format(string, sizeof(string), "{FFFF00}[INFO]{D2D2FF}: Interior setado para: %d.", intid);
  1867. SendClientMessage(playerid, COR_INFO, string);
  1868. }
  1869. return 1;
  1870. }
  1871. if(strcmp("/antiqueda", cmdtext, true) == 0 || strcmp(cmd, "/aq", true) == 0)
  1872. {
  1873. if(ModoAntiQueda[playerid] > 0)
  1874. {
  1875. ModoAntiQueda[playerid] = 0;
  1876. GameTextForPlayer(playerid, "~w~Modo Anti-queda ~r~desligado", 5000, 5);
  1877. return 1;
  1878. }
  1879. else
  1880. {
  1881. ModoAntiQueda[playerid] = 1;
  1882. GameTextForPlayer(playerid, "~w~Modo Anti-queda ~g~ligado", 5000, 5);
  1883. return 1;
  1884. }
  1885. }
  1886. //=================== [ ANUNCIAR ] ================
  1887. if(strcmp(cmd,"/avisar",true)==0 || strcmp(cmd, "/av", true)==0)
  1888. {
  1889. if(!(IsPlayerConnected(playerid))) return SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Logue primeiro, para poder usar o comando.");
  1890. if(!(PlayerInfo[playerid][pAdmin] != 0)) return SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você não é administrador.");
  1891. new length = strlen(cmdtext);
  1892. while ((idx < length) && (cmdtext[idx] <= ' '))
  1893. {
  1894. idx++;
  1895. }
  1896. new offset = idx;
  1897. new result[64];
  1898. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  1899. {
  1900. result[idx - offset] = cmdtext[idx];
  1901. idx++;
  1902. }
  1903. result[idx - offset] = EOS;
  1904. if(!strlen(result))
  1905. {
  1906. SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: USE: {8470FF}(/av)isar {D2D2FF}[AVISO]");
  1907. return 1;
  1908. }
  1909. format(string, sizeof(string), "{FFFF00}[INFO{D2D2FF}/{33CCFF}ADMIN]{D2D2FF} %s: {33CCFF}%s", NomeDoJogador(playerid), result);
  1910. SendClientMessageToAll(COR_INFO, string);
  1911. return 1;
  1912. }
  1913. //=================== [ Desvirar carro ] ==================
  1914. if(strcmp(cmdtext, "/flip", true) == 0)
  1915. {
  1916. if(!(IsPlayerInAnyVehicle(playerid))) return SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você não está em um veículo.");
  1917. new Float:angulo;
  1918. GetPlayerVehicleID(playerid);
  1919. GetVehicleZAngle(GetPlayerVehicleID(playerid), angulo);
  1920. SetVehicleZAngle(GetPlayerVehicleID(playerid), angulo);
  1921. SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Veículo desvirado.");
  1922. return 1;
  1923. }
  1924. //=================== [ Reparar Carro ] ===================
  1925. if(strcmp(cmdtext, "/reparar", true) == 0)
  1926. {
  1927. if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você não está em um veículo.");
  1928. new veiculoid = GetPlayerVehicleID(playerid);
  1929. RepairVehicle(veiculoid);
  1930. SetVehicleHealth(veiculoid,1000);
  1931. SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Seu veículo foi reparado.");
  1932. return 1;
  1933. }
  1934. //==================== [ DM ] ============================
  1935. if(strcmp(cmd, "/dm1", true) == 0 || strcmp(cmd, "/arenadm1", true) == 0)
  1936. {
  1937. format(string, sizeof(string), "~r~ARENA ~g~DM", playerid);
  1938. GameTextForPlayer(playerid, string, 8000, 3);
  1939. format(string, sizeof(string), "[INFO] %s foi para a arena dm1 (/dm1)", NomeDoJogador(playerid));
  1940. SendClientMessageToAll(COR_INFO, string);
  1941. SetPlayerArmour(playerid, 100);
  1942. SetPlayerHealth(playerid, 100);
  1943. ResetPlayerWeapons(playerid);
  1944. GivePlayerWeapon(playerid, 24, 999);
  1945. GivePlayerWeapon(playerid, 29, 999);
  1946. GivePlayerWeapon(playerid, 30, 999);
  1947. GivePlayerWeapon(playerid, 34, 999);
  1948. SetPlayerPos(playerid, 3132.1828613281,-1662.2854003906,4.6953125);
  1949. return 1;
  1950. }
  1951. //==================== [ DM ] ============================
  1952. if(strcmp(cmd, "/stunt", true) == 0 || strcmp(cmd, "/stunt1", true) == 0)
  1953. {
  1954. format(string, sizeof(string), "~r~BEM VINDO AO ~g~STUNT", playerid);
  1955. GameTextForPlayer(playerid, string, 8000, 3);
  1956. format(string, sizeof(string), "[INFO] %s foi para arena stunt (/stunt)", NomeDoJogador(playerid));
  1957. SendClientMessageToAll(COR_INFO, string);
  1958. SetPlayerArmour(playerid, 100);
  1959. SetPlayerHealth(playerid, 100);
  1960. ResetPlayerWeapons(playerid);
  1961. SetPlayerPos(playerid, 1916.4108886719,-2248.2448730469,13.546875);
  1962. return 1;
  1963. }
  1964. //==================== [ Arena X1 ] ===================== ~> DESABILITADO
  1965. /*if(strcmp(cmdtext, "/x1", true) == 0)
  1966. {
  1967. if(AFK[playerid] == 1) return SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você está ausente, digite {8470FF}/afk{D2D2FF} para ficar online.");
  1968. if(TaNoX1[playerid] == 1) return SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você já está na arena x1.");
  1969. if(PlayerInfo[playerid][pLogado] == 1)
  1970. {
  1971. if(Limitex12 == 2) return SendClientMessage(playerid, COR_INFO,"{FF0000}[ERRO]{D2D2FF}: A arena x1 está cheia, aguarde um dos players morrerem/desistirem.");
  1972. if(Limitex12 == 0)
  1973. {
  1974. GetPlayerName(playerid, Desafiador, sizeof(Desafiador));
  1975. format(string,sizeof(string),"{0000FF}[X1]{D2D2FF}: %s está desafiando alguém na arena x1. {8470FF}(/x1){D2D2FF}.",Desafiador);
  1976. SendClientMessageToAll(COR_INFO,string);
  1977. SetPlayerPos(playerid,1496.9868,-1134.0276,135.8281);
  1978. TogglePlayerControllable(playerid,0);
  1979. SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Aguarde até que outro jogador aceite o desafio.");
  1980. Limitex12 = 1;
  1981. SetPlayerFacingAngle(playerid,270);
  1982. SetCameraBehindPlayer(playerid);
  1983. TaNoX1[playerid] = 1;
  1984. }
  1985. else if(Limitex12 == 1)
  1986. {
  1987. for(new i = 0; i < MAX_PLAYERS; i++)
  1988. {
  1989. if(TaNoX1[i] == 1)
  1990. {
  1991. TogglePlayerControllable(playerid,0);
  1992. format(string, sizeof(string), "{0000FF}[X1]{D2D2FF}: %s aceitou o desafio de %s na arena x1. {8470FF}(/x1){D2D2FF}.", NomeDoJogador(playerid), Desafiador);
  1993. SendClientMessageToAll(COR_INFO,string);
  1994. SetPlayerPos(playerid,1545.8910,-1133.5770,135.8281);
  1995. Limitex12 = 2;
  1996. SetPlayerFacingAngle(playerid,90);
  1997. SetCameraBehindPlayer(playerid);
  1998. contagemx1 = SetTimer("IniciarContagem",1000,true);
  1999. TaNoX1[i] = 1;
  2000. }
  2001. }
  2002. }
  2003. }
  2004. return 1;
  2005. } */
  2006. //================== [ /sair do evento ] ================ ~> DESABILITADO
  2007. /*if(strcmp(cmdtext, "/sair", true) == 0)
  2008. {
  2009. if(PlayerInfo[playerid][pLogado] == 1)
  2010. {
  2011. if(TaNoX1[playerid] == 1)
  2012. {
  2013. if(Limitex12 == 2)
  2014. {
  2015. Limitex12 = 1;
  2016. TaNoX1[playerid] = 0;
  2017. SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Você desistiu do desafio na arena x1.");
  2018. format(string, sizeof(string), "{0000FF}[X1]{D2D2FF}: %s desistiu do duelo de x1. {8470FF}(/sair){D2D2FF}.",NomeDoJogador(playerid));
  2019. SendClientMessageToAll(COR_INFO,string);
  2020. SpawnarJogador(playerid);
  2021. }
  2022. else if(Limitex12 == 1)
  2023. {
  2024. Limitex12 = 0;
  2025. TaNoX1[playerid] = 0;
  2026. SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Você saiu da arena x1.");
  2027. format(string, sizeof(string), "{0000FF}[X1]{D2D2FF}: %s não quis mais aguardar nenhum jogador e saiu da arena. {8470FF}(/sair){D2D2FF}.",NomeDoJogador(playerid));
  2028. SendClientMessageToAll(COR_INFO,string);
  2029. SpawnarJogador(playerid);
  2030. }
  2031. TogglePlayerControllable(playerid,1);
  2032. }
  2033. }
  2034. return 1;
  2035. } */
  2036. //====================== [ AFK ] ========================
  2037. if(strcmp(cmdtext,"/afk",true)==0)
  2038. {
  2039. //if(TaNoX1[playerid] != 0) return SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você está na arena x1 e não pode ficar ausente."); ~> DESABILITADO
  2040. if(AFK[playerid] == 0)
  2041. {
  2042. AFK[playerid] = 1;
  2043. SendClientMessage(playerid,COR_INFO,"{FFFF00}[INFO]{D2D2FF}: Você está ausente, digite {8470FF}/afk {D2D2FF}novamente para ficar online.");
  2044. format(string,sizeof(string),"{FFFF00}[INFO]{D2D2FF}: O jogador %s está {FFA500}ausente{D2D2FF}.",NomeDoJogador(playerid));
  2045. SendClientMessageToAll(COR_INFO,string);
  2046. TogglePlayerControllable(playerid,0);
  2047. }
  2048. else
  2049. {
  2050. AFK[playerid] = 0;
  2051. SendClientMessage(playerid,COR_INFO,"{FFFF00}[INFO]{D2D2FF}: Você está online, digite {8470FF}/afk {D2D2FF}novamente para ficar ausente.");
  2052. format(string,sizeof(string),"{FFFF00}[INFO]{D2D2FF}: O jogador %s está {00FF00}online{D2D2FF}.",NomeDoJogador(playerid));
  2053. SendClientMessageToAll(COR_INFO,string);
  2054. TogglePlayerControllable(playerid,1);
  2055. return 1;
  2056. }
  2057. }
  2058. //===================== [ Suicídio ] ====================
  2059. if(strcmp(cmdtext, "/kill", true) == 0)
  2060. {
  2061. //if(TaNoX1[playerid] != 0) return SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você está na arena x1 e não pode se matar."); ~> DESABILITADO
  2062. SetPlayerHealth(playerid,0);
  2063. SendClientMessage(playerid,COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Você se matou.");
  2064. return 1;
  2065. }
  2066. //================ [ Comandos do player ] =================
  2067. //=================== [ GangsZone ] =======================
  2068. if(strcmp(cmd, "/dominar", true) == 0 || strcmp(cmd, "/do", true) == 0)
  2069. {
  2070. if(!(Dominando[playerid] == 0)) return SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você já está dominando um território");
  2071. if(PlayerInfo[playerid][pORG] == 1)
  2072. {
  2073. if(JogadorNaConstrucao(playerid))
  2074. {
  2075. if(!(GuerranaConstrucao == 0)) return SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Já está tendo guerra na construção");
  2076. format(string, sizeof(string), "{0000FF}[GANGZONE]{D2D2FF}: %s e a {00D900}Grove Street{D2D2FF} estão dominando a Construção.",NomeDoJogador(playerid));
  2077. SendClientMessageToAll(COR_INFO, string);
  2078. SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Aguarde até que sua organização tenha total controle sobre a Construção.");
  2079. GangZoneFlashForAll(GZConstrucao,0xFF0000AA);
  2080. Dominando[playerid] = 1;
  2081. ProvocouConstrucao[playerid] = 1;
  2082. GuerranaConstrucao = 1;
  2083. TempoDeGuerraNaConstrucao = SetTimerEx("GuerraConstrucao", 50000, 0, "i", playerid);
  2084. return 1;
  2085. }
  2086. else
  2087. {
  2088. SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você não está em nenhum território.");
  2089. }
  2090. return 1;
  2091. }
  2092. if(PlayerInfo[playerid][pORG] == 2)
  2093. {
  2094. if(JogadorNaConstrucao(playerid))
  2095. {
  2096. if(!(GuerranaConstrucao == 0)) return SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Já está tendo guerra na construção");
  2097. format(string, sizeof(string), "{0000FF}[GANGZONE]{D2D2FF}: %s e os {D900D3}Ballas{D2D2FF} estão dominando a Construção.",NomeDoJogador(playerid));
  2098. SendClientMessageToAll(COR_INFO, string);
  2099. SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Aguarde até que sua organização tenha total controle sobre a Construção.");
  2100. GangZoneFlashForAll(GZConstrucao,0xFF0000AA);
  2101. Dominando[playerid] = 1;
  2102. ProvocouConstrucao[playerid] = 1;
  2103. GuerranaConstrucao = 1;
  2104. TempoDeGuerraNaConstrucao = SetTimerEx("GuerraConstrucao", 50000, 0, "i", playerid);
  2105. return 1;
  2106. }
  2107. else
  2108. {
  2109. SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você não está em nenhum território.");
  2110. }
  2111. return 1;
  2112. }
  2113. if(PlayerInfo[playerid][pORG] == 3)
  2114. {
  2115. if(JogadorNaConstrucao(playerid))
  2116. {
  2117. if(!(GuerranaConstrucao == 0)) return SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Já está tendo guerra na construção");
  2118. format(string, sizeof(string), "{0000FF}[GANGZONE]{D2D2FF}: %s e o {FFC801}Los Vagos{D2D2FF} estão dominando a Construção.",NomeDoJogador(playerid));
  2119. SendClientMessageToAll(COR_INFO, string);
  2120. SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Aguarde até que sua organização tenha total controle sobre a Construção.");
  2121. GangZoneFlashForAll(GZConstrucao,0xFF0000AA);
  2122. Dominando[playerid] = 1;
  2123. ProvocouConstrucao[playerid] = 1;
  2124. GuerranaConstrucao = 1;
  2125. TempoDeGuerraNaConstrucao = SetTimerEx("GuerraConstrucao", 50000, 0, "i", playerid);
  2126. return 1;
  2127. }
  2128. else
  2129. {
  2130. SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você não está em nenhum território.");
  2131. }
  2132. return 1;
  2133. }
  2134. if(PlayerInfo[playerid][pORG] == 4)
  2135. {
  2136. if(JogadorNaConstrucao(playerid))
  2137. {
  2138. if(!(GuerranaConstrucao == 0)) return SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Já está tendo guerra na construção");
  2139. format(string, sizeof(string), "{0000FF}[GANGZONE]{D2D2FF}: %s e o {2641FE}Los Aztecas{D2D2FF} estão dominando a Construção.",NomeDoJogador(playerid));
  2140. SendClientMessageToAll(COR_INFO, string);
  2141. SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Aguarde até que sua organização tenha total controle sobre a Construção.");
  2142. GangZoneFlashForAll(GZConstrucao,0xFF0000AA);
  2143. Dominando[playerid] = 1;
  2144. ProvocouConstrucao[playerid] = 1;
  2145. GuerranaConstrucao = 1;
  2146. TempoDeGuerraNaConstrucao = SetTimerEx("GuerraConstrucao", 50000, 0, "i", playerid);
  2147. return 1;
  2148. }
  2149. else
  2150. {
  2151. SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você não está em nenhum território.");
  2152. }
  2153. return 1;
  2154. }
  2155. if(PlayerInfo[playerid][pORG] == 5)
  2156. {
  2157. if(JogadorNaConstrucao(playerid))
  2158. {
  2159. if(!(GuerranaConstrucao == 0)) return SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Já está tendo guerra na construção");
  2160. format(string, sizeof(string), "{0000FF}[GANGZONE]{D2D2FF}: %s e a {7491F6}San Fierro PD{D2D2FF} estão controlando a Construção.",NomeDoJogador(playerid));
  2161. SendClientMessageToAll(COR_INFO, string);
  2162. SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Aguarde até que sua organização tenha total controle sobre a Construção.");
  2163. GangZoneFlashForAll(GZConstrucao,0xFF0000AA);
  2164. Dominando[playerid] = 1;
  2165. ProvocouConstrucao[playerid] = 1;
  2166. GuerranaConstrucao = 1;
  2167. TempoDeGuerraNaConstrucao = SetTimerEx("GuerraConstrucao", 50000, 0, "i", playerid);
  2168. return 1;
  2169. }
  2170. else
  2171. {
  2172. SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você não está em nenhum território.");
  2173. }
  2174. return 1;
  2175. }
  2176. if(PlayerInfo[playerid][pORG] == 6)
  2177. {
  2178. if(JogadorNaConstrucao(playerid))
  2179. {
  2180. if(!(GuerranaConstrucao == 0)) return SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Já está tendo guerra na construção");
  2181. format(string, sizeof(string), "{0000FF}[GANGZONE]{D2D2FF}: %s e o {FF5B5B}Comando Vermelho{D2D2FF} estão dominando a Construção.",NomeDoJogador(playerid));
  2182. SendClientMessageToAll(COR_INFO, string);
  2183. SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Aguarde até que sua organização tenha total controle sobre a Construção.");
  2184. GangZoneFlashForAll(GZConstrucao,0xFF0000AA);
  2185. Dominando[playerid] = 1;
  2186. ProvocouConstrucao[playerid] = 1;
  2187. GuerranaConstrucao = 1;
  2188. TempoDeGuerraNaConstrucao = SetTimerEx("GuerraConstrucao", 50000, 0, "i", playerid);
  2189. return 1;
  2190. }
  2191. else
  2192. {
  2193. SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você não está em nenhum território.");
  2194. }
  2195. return 1;
  2196. }
  2197. if(PlayerInfo[playerid][pORG] == 1)
  2198. {
  2199. if(JogadorNoPuteiro(playerid))
  2200. {
  2201. if(!(GuerranoPuteiro == 0)) return SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Já está tendo guerra na Puteiro");
  2202. format(string, sizeof(string), "{0000FF}[GANGZONE]{D2D2FF}: %s e a {00D900}Grove Street{D2D2FF} estão dominando o Puteiro.",NomeDoJogador(playerid));
  2203. SendClientMessageToAll(COR_INFO, string);
  2204. SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Aguarde até que sua organização tenha total controle sobre o Puteiro.");
  2205. GangZoneFlashForAll(GZPuteiro,0xFF0000AA);
  2206. Dominando[playerid] = 1;
  2207. ProvocouPuteiro[playerid] = 1;
  2208. GuerranoPuteiro = 1;
  2209. TempoDeGuerraNoPuteiro = SetTimerEx("GuerraPuteiro", 50000, 0, "i", playerid);
  2210. return 1;
  2211. }
  2212. else
  2213. {
  2214. SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você não está em nenhum território.");
  2215. }
  2216. return 1;
  2217. }
  2218. if(PlayerInfo[playerid][pORG] == 2)
  2219. {
  2220. if(JogadorNoPuteiro(playerid))
  2221. {
  2222. if(!(GuerranoPuteiro == 0)) return SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Já está tendo guerra no Puteiro");
  2223. format(string, sizeof(string), "{0000FF}[GANGZONE]{D2D2FF}: %s e os {D900D3}Ballas{D2D2FF} estão dominando o Puteiro.",NomeDoJogador(playerid));
  2224. SendClientMessageToAll(COR_INFO, string);
  2225. SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Aguarde até que sua organização tenha total controle sobre o Puteiro.");
  2226. GangZoneFlashForAll(GZPuteiro,0xFF0000AA);
  2227. Dominando[playerid] = 1;
  2228. ProvocouPuteiro[playerid] = 1;
  2229. GuerranoPuteiro = 1;
  2230. TempoDeGuerraNoPuteiro = SetTimerEx("GuerraPuteiro", 50000, 0, "i", playerid);
  2231. return 1;
  2232. }
  2233. else
  2234. {
  2235. SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você não está em nenhum território.");
  2236. }
  2237. return 1;
  2238. }
  2239. if(PlayerInfo[playerid][pORG] == 3)
  2240. {
  2241. if(JogadorNoPuteiro(playerid))
  2242. {
  2243. if(!(GuerranoPuteiro == 0)) return SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Já está tendo guerra no Puteiro");
  2244. format(string, sizeof(string), "{0000FF}[GANGZONE]{D2D2FF}: %s e o {FFC801}Los Vagos{D2D2FF} estão dominando o Puteiro.",NomeDoJogador(playerid));
  2245. SendClientMessageToAll(COR_INFO, string);
  2246. SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Aguarde até que sua organização tenha total controle sobre o Puteiro.");
  2247. GangZoneFlashForAll(GZPuteiro,0xFF0000AA);
  2248. Dominando[playerid] = 1;
  2249. ProvocouPuteiro[playerid] = 1;
  2250. GuerranoPuteiro = 1;
  2251. TempoDeGuerraNoPuteiro = SetTimerEx("GuerraPuteiro", 50000, 0, "i", playerid);
  2252. return 1;
  2253. }
  2254. else
  2255. {
  2256. SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você não está em nenhum território.");
  2257. }
  2258. return 1;
  2259. }
  2260. if(PlayerInfo[playerid][pORG] == 4)
  2261. {
  2262. if(JogadorNoPuteiro(playerid))
  2263. {
  2264. if(!(GuerranoPuteiro == 0)) return SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Já está tendo guerra no Puteiro");
  2265. format(string, sizeof(string), "{0000FF}[GANGZONE]{D2D2FF}: %s e o {2641FE}Los Aztecas{D2D2FF} estão dominando o Puteiro.",NomeDoJogador(playerid));
  2266. SendClientMessageToAll(COR_INFO, string);
  2267. SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Aguarde até que sua organização tenha total controle sobre o Puteiro.");
  2268. GangZoneFlashForAll(GZPuteiro,0xFF0000AA);
  2269. Dominando[playerid] = 1;
  2270. ProvocouPuteiro[playerid] = 1;
  2271. GuerranoPuteiro = 1;
  2272. TempoDeGuerraNoPuteiro = SetTimerEx("GuerraPuteiro", 50000, 0, "i", playerid);
  2273. return 1;
  2274. }
  2275. else
  2276. {
  2277. SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você não está em nenhum território.");
  2278. }
  2279. return 1;
  2280. }
  2281. if(PlayerInfo[playerid][pORG] == 5)
  2282. {
  2283. if(JogadorNoPuteiro(playerid))
  2284. {
  2285. if(!(GuerranoPuteiro == 0)) return SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Já está tendo guerra no Puteiro");
  2286. format(string, sizeof(string), "{0000FF}[GANGZONE]{D2D2FF}: %s e a {7491F6}San Fierro PD{D2D2FF} estão controlando o Puteiro.",NomeDoJogador(playerid));
  2287. SendClientMessageToAll(COR_INFO, string);
  2288. SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Aguarde até que sua organização tenha total controle sobre o Puteiro.");
  2289. GangZoneFlashForAll(GZPuteiro,0xFF0000AA);
  2290. Dominando[playerid] = 1;
  2291. ProvocouPuteiro[playerid] = 1;
  2292. GuerranoPuteiro = 1;
  2293. TempoDeGuerraNoPuteiro = SetTimerEx("GuerraPuteiro", 50000, 0, "i", playerid);
  2294. return 1;
  2295. }
  2296. else
  2297. {
  2298. SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você não está em nenhum território.");
  2299. }
  2300. return 1;
  2301. }
  2302. if(PlayerInfo[playerid][pORG] == 6)
  2303. {
  2304. if(JogadorNoPuteiro(playerid))
  2305. {
  2306. if(!(GuerranoPuteiro == 0)) return SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Já está tendo guerra no Puteiro");
  2307. format(string, sizeof(string), "{0000FF}[GANGZONE]{D2D2FF}: %s e o {FF5B5B}Comando Vermelho{D2D2FF} estão dominando o Puteiro.",NomeDoJogador(playerid));
  2308. SendClientMessageToAll(COR_INFO, string);
  2309. SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Aguarde até que sua organização tenha total controle sobre o Puteiro.");
  2310. GangZoneFlashForAll(GZPuteiro,0xFF0000AA);
  2311. Dominando[playerid] = 1;
  2312. ProvocouPuteiro[playerid] = 1;
  2313. GuerranoPuteiro = 1;
  2314. TempoDeGuerraNoPuteiro = SetTimerEx("GuerraPuteiro", 50000, 0, "i", playerid);
  2315. return 1;
  2316. }
  2317. else
  2318. {
  2319. SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você não está em nenhum território.");
  2320. }
  2321. return 1;
  2322. }
  2323. return 1;
  2324. }
  2325. //====================== [ Status ] =======================
  2326. if(strcmp(cmd, "/stats", true) == 0)
  2327. {
  2328. new stringkills[256];
  2329. new stringmortes[256];
  2330. SendClientMessage(playerid,COR_INFO," * ~ {FFFF00} = Status = {D2D2FF} ~ *");
  2331. format(string, sizeof(string),"Jogador: %s", NomeDoJogador(playerid));
  2332. format(stringkills,sizeof(stringkills),"Assassinatos: %d", PlayerInfo[playerid][pKills]);
  2333. SendClientMessage(playerid,COR_INFO, stringkills);
  2334. format(stringmortes,sizeof(stringmortes),"Mortes: %d", PlayerInfo[playerid][pMortes]);
  2335. SendClientMessage(playerid, COR_INFO, stringmortes);
  2336. SendClientMessage(playerid,COR_INFO," * ~ {FFFF00} ========= {D2D2FF} ~ *");
  2337. return 1;
  2338. }
  2339. //================== [ Trocar gang ] ====================
  2340. if(strcmp(cmd, "/trocargang", true) == 0)
  2341. {
  2342. format(string, sizeof(string), "{0000FF}[GANG]{D2D2FF}: O jogador %s requisitou a troca de organização {8470FF}( /trocargang )", NomeDoJogador(playerid));
  2343. SendClientMessageToAll(COR_INFO, string);
  2344. ShowPlayerDialog(playerid, 11,DIALOG_STYLE_LIST,"Escolha sua organização","{00D900}Grove Street Families\n{FFC801}Los Santos Vagos\n{D900D3}Front Yard Ballas\n{2641FE}Varrios Los Aztecas\n{7491F6}San Fierro Police Department\n{FF5B5B}Comando Vermelho","Selecionar","");
  2345. return 1;
  2346. }
  2347. //================== [ Info server ] ====================
  2348. //===================== [ AJUDA ] =======================
  2349. if(strcmp(cmd, "/ajuda", true) == 0 || strcmp(cmd, "/comandos", true) == 0)
  2350. {
  2351. if(PlayerInfo[playerid][pLogado] == 1)
  2352. {
  2353. SendClientMessage(playerid, COR_INFO," * ~ {FFFF00} = Ajuda/Comandos = {D2D2FF} ~ *");
  2354. SendClientMessage(playerid, COR_INFO,"{FFFF00}[INFO]{D2D2FF}: Digite o comando desejado para mais informações.");
  2355. SendClientMessage(playerid, COR_INFO,"{90EE90}[FusioN TDM]{D2D2FF}: ~ Comandos [Info Server] ~");
  2356. SendClientMessage(playerid, COR_INFO,"{90EE90}[FusioN TDM]{D2D2FF}: {8470FF}/creditos /forum /orgs /ts3");
  2357. SendClientMessage(playerid, COR_INFO,"{90EE90}[FusioN TDM]{D2D2FF}: ~ Comandos [Organização] ~");
  2358. SendClientMessage(playerid, COR_INFO,"{90EE90}[FusioN TDM]{D2D2FF}: {8470FF}/radio /trocargang");
  2359. SendClientMessage(playerid, COR_INFO,"{90EE90}[FusioN TDM]{D2D2FF}: ~ Comandos [Servidor] ~");
  2360. SendClientMessage(playerid, COR_INFO,"{90EE90}[FusioN TDM]{D2D2FF}: {8470FF}/x1 /logar /registrar /kill /afk /setint");
  2361. SendClientMessage(playerid, COR_INFO,"{90EE90}[FusioN TDM]{D2D2FF}: {8470FF}/sair /reparar /flip /(a)nti(q)ueda /stats");
  2362. SendClientMessage(playerid, COR_INFO,"{90EE90}[FusioN TDM]{D2D2FF}: ~ Comandos [Administrador] ~");
  2363. SendClientMessage(playerid, COR_INFO,"{90EE90}[FusioN TDM]{D2D2FF}: {8470FF}/lc /dararmasall /setpos /teleportes");
  2364. SendClientMessage(playerid, COR_INFO,"{90EE90}[FusioN TDM]{D2D2FF}: {8470FF}/(v)eiculo /avisar /kitadm");
  2365. SendClientMessage(playerid, COR_INFO,"{90EE90}[FusioN TDM]{D2D2FF}: {8470FF} /infodb /regras");
  2366. SendClientMessage(playerid, COR_INFO," * ~ {FFFF00} ================== {D2D2FF} ~ *");
  2367. return 1;
  2368. }
  2369. }
  2370. //================== [ Organizaçoes ] ===================
  2371. if(strcmp(cmdtext, "/orgs", true) == 0)
  2372. {
  2373. SendClientMessage(playerid, COR_INFO, " * ~ {FFFF00} = Organizações = {D2D2FF} ~ *");
  2374. SendClientMessage(playerid, COR_INFO, " * ~ Gangues: {00D900}Grove Street{D2D2FF}, {D900D3}Ballas{D2D2FF}.");
  2375. SendClientMessage(playerid, COR_INFO, " * ~ Gangues: {FFC801}Los Vagos{D2D2FF}, {2641FE}Los Aztecas{D2D2FF}.");
  2376. SendClientMessage(playerid, COR_INFO, " * ~ Gangues: {FF5B5B}Comando Vermelho{D2D2FF}.");
  2377. SendClientMessage(playerid, COR_INFO, " * ~ Governo: {7491F6}San Fierro Police Department{D2D2FF}.");
  2378. return 1;
  2379. }
  2380. //===================== [ /admins ] =====================
  2381. if(strcmp(cmdtext, "/admins", true) == 0)
  2382. {
  2383. if(AdminsOnline == 0) return SendClientMessage(playerid, COR_INFO, "{33CCFF}[FusioN TDM]{D2D2FF}: Nenhum administrador online.");
  2384. SendClientMessage(playerid, COR_INFO, " * ~ {33CCFF} = Administração online = {D2D2FF} ~ *");
  2385. for(new i = 0; i <= MAX_PLAYERS; i++)
  2386. {
  2387. if(IsPlayerConnected(i) == 1 && PlayerInfo[i][pAdmin] > 0)
  2388. {
  2389. format(string, sizeof(string), "{FFFF00}Nome{D2D2FF}: {33CCFF}%s", NomeDoJogador(i));
  2390. SendClientMessage(playerid, COR_INFO, string);
  2391. }
  2392. }
  2393. return 1;
  2394. }
  2395. //===================== [ EVENTO ] ======================
  2396. if(strcmp(cmdtext,"/1", true) == 0)
  2397. {
  2398. format(string, sizeof(string), "~w~1");
  2399. GameTextForAll(string, 1000, 5);
  2400. }
  2401. if(strcmp(cmdtext,"/2", true) == 0)
  2402. {
  2403.  
  2404. format(string, sizeof(string), "~w~2");
  2405. GameTextForAll(string, 1000, 5);
  2406. }
  2407. if(strcmp(cmdtext,"/3", true) == 0)
  2408. {
  2409.  
  2410. format(string, sizeof(string), "~w~3");
  2411. GameTextForAll(string, 1000, 5);
  2412. }
  2413. if(strcmp(cmdtext,"/go", true) == 0)
  2414. {
  2415. format(string, sizeof(string), "~r~GO, GO, GO!");
  2416. GameTextForAll(string, 1000, 5);
  2417. }
  2418. //==================== [ Creditos ] =====================
  2419. if(strcmp(cmdtext, "/creditos", true) == 0)
  2420. {
  2421. if(PlayerInfo[playerid][pLogado] == 1)
  2422. {
  2423. SendClientMessage(playerid, COR_INFO," * ~ {FFFF00} = Créditos = {D2D2FF} ~ *");
  2424. SendClientMessage(playerid, COR_INFO," * ~ Scripters: {FFFF00}Black_Shift {D2D2FF}| {FFFF00}Rodney Francalim {D2D2FF}| {FFFF00}KeneD_RuleZ");
  2425. SendClientMessage(playerid, COR_INFO," * ~ Mappers: {FFFF00}Aleeemao");
  2426. SendClientMessage(playerid, COR_INFO," * ~ GameMode exclusivo: {33CCFF}FusioN Games");
  2427. SendClientMessage(playerid, COR_INFO," * ~ {FFFF00} =========== {D2D2FF} ~ *");
  2428. return 1;
  2429. }
  2430. else
  2431. {
  2432. SendClientMessage(playerid, COR_INFO,"{FF0000}[ERRO]{D2D2FF}: Você não escolheu qual a sua equipe");
  2433. return 1;
  2434. }
  2435. }
  2436. //===================== [ FORUM ] =======================
  2437. if(strcmp(cmdtext, "/forum", true) == 0)
  2438. {
  2439. if(PlayerInfo[playerid][pLogado] == 1)
  2440. {
  2441. SendClientMessage(playerid, COR_INFO," * ~ {FFFF00} = FÓRUM = {D2D2FF} ~ *");
  2442. SendClientMessage(playerid, COR_VERMELHA,"{90EE90}[FusioN TDM]: {D2D2FF}www.{33CCFF}fusionsamp{D2D2FF}.com");
  2443. SendClientMessage(playerid, COR_INFO," * ~ {FFFF00} ========= {D2D2FF} ~ *");
  2444. return 1;
  2445. }
  2446. }
  2447. //====================== [ TS3 ] ========================
  2448. if(strcmp(cmdtext, "/ts3", true) == 0)
  2449. {
  2450. if(PlayerInfo[playerid][pLogado] == 1)
  2451. {
  2452. SendClientMessage(playerid, COR_INFO," * ~ {FFFF00} = TeamSpeak 3 = {D2D2FF} ~ *");
  2453. SendClientMessage(playerid, COR_VERMELHA,"{FFFF00}[INFO]: {D2D2FF}IP: {4169E1}187.45.233.13 {D2D2FF}PORTA: {4169E1}9994");
  2454. SendClientMessage(playerid, COR_INFO," * ~ {FFFF00} =============== {D2D2FF} ~ *");
  2455. return 1;
  2456. }
  2457. }
  2458. //================= [ Comandos de admin ] ===============
  2459. //================= [ GMX ] =============
  2460. if(strcmp(cmd, "/gmx", true) == 0)
  2461. {
  2462. if(IsPlayerConnected(playerid))
  2463. {
  2464. format(string, sizeof(string), "{0000FF}[INFO]{D2D2FF}: %s deu GMX!.",NomeDoJogador(playerid));
  2465. SendClientMessageToAll(COR_INFO,string);
  2466. GameModeExit();
  2467. }
  2468. return 1;
  2469. }
  2470. //===================== [ banimento ] ===================
  2471. if(strcmp(cmd, "/ban", true) == 0)
  2472. {
  2473. if(IsPlayerConnected(playerid))
  2474. {
  2475. tmp = strtok(cmdtext, idx);
  2476. if(!strlen(tmp))
  2477. {
  2478. SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: USE: {8470FF}/ban {D2D2FF}[ID] [MOTIVO]");
  2479. return 1;
  2480. }
  2481. giveplayerid = ReturnUser(tmp);
  2482. if (PlayerInfo[playerid][pAdmin] >= 1)
  2483. {
  2484. if(IsPlayerConnected(giveplayerid))
  2485. {
  2486. if(giveplayerid != INVALID_PLAYER_ID)
  2487. {
  2488. if((strcmp(NomeDoJogador(playerid), "Rodney_Francalim", true ) == 0 || strcmp(NomeDoJogador(playerid), "Black_FusioN", true ) == 0))
  2489. {
  2490. SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você não pode banir um FusioN Admin.");
  2491. format(string, sizeof(string),"{FFFF00}[INFO]{D2D2FF}: O administrador %s[%d] tentou te banir", NomeDoJogador(playerid), playerid);
  2492. SendClientMessage(giveplayerid, COR_INFO, string);
  2493. return 1;
  2494. }
  2495. new length = strlen(cmdtext);
  2496. while ((idx < length) && (cmdtext[idx] <= ' '))
  2497. {
  2498. idx++;
  2499. }
  2500. new offset = idx;
  2501. new result[64];
  2502. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  2503. {
  2504. result[idx - offset] = cmdtext[idx];
  2505. idx++;
  2506. }
  2507. result[idx - offset] = EOS;
  2508. if(!strlen(result))
  2509. {
  2510. SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: USE: {8470FF}/ban {D2D2FF}[ID] [MOTIVO]");
  2511. return 1;
  2512. }
  2513. getdate(ano, mes, dia);
  2514. format(string, sizeof(string), "{3CCFF}[ADMIN{D2D2FF}/{FF0000}LOG]{D2D2FF}: %s foi banido por %s, Motivo: %s (%d-%d-%d)", NomeDoJogador(giveplayerid), NomeDoJogador(playerid), (result),dia,mes,ano);
  2515. BanLog(string);
  2516. format(string, sizeof(string), "AdmCmd: %s foi banido por %s, Motivo: %s", NomeDoJogador(giveplayerid), NomeDoJogador(playerid), (result));
  2517. SendClientMessageToAll(COR_INFO, string);
  2518. SendClientMessage(giveplayerid, COR_INFO, "|________________ Instruções para revisão de Ban ________________|");
  2519. SendClientMessage(giveplayerid, COR_INFO, "Tire uma SS da tela apertando F8 imediatamente após ser banido");
  2520. SendClientMessage(giveplayerid, COR_INFO, "E acesse o nosso forum: www.brasilhardcity.forumeiros.com");
  2521. SendClientMessage(giveplayerid, COR_INFO, "Atenção: Você só será desbanido caso for inocente");
  2522. Ban(giveplayerid);
  2523. return 1;
  2524. }
  2525. }//not connected
  2526. }
  2527. else
  2528. {
  2529. SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Esse não está online.");
  2530. }
  2531. }
  2532. return 1;
  2533. }
  2534. //=================== [ Setar posição ] =================
  2535. if(strcmp(cmd,"/setpos",true)==0)
  2536. {
  2537. if(PlayerInfo[playerid][pAdmin] >= 1)
  2538. {
  2539. new plid,Float:setpos[3];
  2540. tmp = strtok(cmdtext,idx);
  2541. if(!strlen(tmp)) return SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}:{8470FF} /setpos [id] [X] [Y] [Z]");
  2542. plid = strval(tmp);
  2543. for(new x=0;x<3;x++)
  2544. {
  2545. tmp = strtok(cmdtext,idx);
  2546. if(!strlen(tmp)) return SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}:{8470FF} /setpos [id] [X] [Y] [Z]");
  2547. setpos[x] = floatstr(tmp);
  2548. }
  2549. SetPlayerPos(plid,setpos[0],setpos[1],setpos[2]);
  2550. SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Posição setada.");
  2551. return 1;
  2552. }
  2553. else
  2554. {
  2555. SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você não é administrador.");
  2556. return 1;
  2557. }
  2558. }
  2559. //================[KITADMDONO]===============
  2560. if(strcmp(cmdtext,"/kitdono", true) == 0)
  2561. {
  2562. if(strcmp(NomeDoJogador(playerid),"KeneD_FusioN",true)==0 || strcmp(NomeDoJogador(playerid),"Black_Shift",true)==0)
  2563. {
  2564. SendClientMessage(playerid, COR_BRANCA, "|| •Você pegou seu KIT DONO• ||");
  2565. GivePlayerWeapon(playerid, 4, 1);
  2566. GivePlayerWeapon(playerid, 24, 999);
  2567. GivePlayerWeapon(playerid, 25, 999);
  2568. GivePlayerWeapon(playerid, 31, 999);
  2569. GivePlayerWeapon(playerid, 29, 999);
  2570. GivePlayerWeapon(playerid, 34, 999);
  2571. GivePlayerWeapon(playerid, 35, 10);
  2572. SetPlayerArmour(playerid, 100);
  2573. SetPlayerHealth(playerid, 100);
  2574. }
  2575. return 1;
  2576. }
  2577.  
  2578. //=============== [KIT ADM] ==========
  2579. if(strcmp(cmd, "/kitadm", true) == 0)
  2580. {
  2581. if (PlayerInfo[playerid][pAdmin] >= 1)
  2582. {
  2583. GivePlayerWeapon(playerid, 46, 1);
  2584. GivePlayerWeapon(playerid, 24, 750);
  2585. GivePlayerWeapon(playerid, 31, 1500);
  2586. GivePlayerWeapon(playerid, 29, 1000);
  2587. GivePlayerWeapon(playerid, 25, 250);
  2588. GivePlayerWeapon(playerid, 4, 1);
  2589. GivePlayerWeapon(playerid, 1, 1);
  2590. GivePlayerWeapon(playerid, 34, 250);
  2591. SetPlayerArmour(playerid, 100);
  2592. SetPlayerHealth(playerid, 100);
  2593. SendClientMessage(playerid,COR_INFO,"{33CCFF}[ADMIN]{D2D2FF}: Voce pegou o seu KitAdmin.");
  2594. }
  2595. return 1;
  2596. }
  2597. //================ [ Limpar Chat Simples ] ==============
  2598. if(strcmp(cmd, "/lc", true) == 0)
  2599. {
  2600. if(PlayerInfo[playerid][pAdmin] >= 1)
  2601. {
  2602. LimparChat(playerid, 125);
  2603. format(string, sizeof(string), "{33CCFF}[ADMIN]{D2D2FF}: O administrador %s, limpou o chat.", NomeDoJogador(playerid));
  2604. SendClientMessageToAll(COR_INFO,string);
  2605. }
  2606. else
  2607. {
  2608. SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você não é administrador.");
  2609. return 1;
  2610. }
  2611. }
  2612. //=================== [ Criar veículo ] =================
  2613. if(strcmp(cmd, "/veiculo", true) == 0 || strcmp(cmd, "/v", true) == 0)
  2614. {
  2615. if(IsPlayerConnected(playerid))
  2616. {
  2617. if(!(PlayerInfo[playerid][pAdmin] >= 1)) return SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você não é administrador.");
  2618. if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
  2619. {
  2620. SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você já está em um veículo.");
  2621. return 1;
  2622. }
  2623. tmp = strtok(cmdtext, idx);
  2624. if(!strlen(tmp))
  2625. {
  2626. SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}:{8470FF} /veiculo [ID do veículo] [COR 1] [COR 2]");
  2627. return 1;
  2628. }
  2629. new carrocriado;
  2630. carrocriado = strval(tmp);
  2631. if(carrocriado < 400 || carrocriado > 611)
  2632. {
  2633. SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: O ID do veículo não pode ser menor que {00FFFF}400 {D2D2FF}ou maior que {00FFFF}611{D2D2FF}.");
  2634. return 1;
  2635. }
  2636. tmp = strtok(cmdtext, idx);
  2637. if(!strlen(tmp))
  2638. {
  2639. SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}:{8470FF} /veiculo [ID do veículo] [COR 1] [COR 2]");
  2640. return 1;
  2641. }
  2642. new cor1;
  2643. cor1 = strval(tmp);
  2644. if(cor1 < 0 || cor1 > 126) { SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: O ID da cor {8470FF}1 {D2D2FF}não pode ser menor que {8470FF}0 {D2D2FF}ou maior que {8470FF}126{D2D2FF}."); return 1; }
  2645. tmp = strtok(cmdtext, idx);
  2646. if(!strlen(tmp))
  2647. {
  2648. SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}:{8470FF} /veiculo [ID do veículo] [COR 1] [COR 2]]");
  2649. return 1;
  2650. }
  2651. new cor2;
  2652. cor2 = strval(tmp);
  2653. if(cor2 < 0 || cor2 > 126) { SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: O ID da cor {8470FF}1 {D2D2FF}não pode ser menor que {8470FF}0 {D2D2FF}ou maior que {8470FF}126{D2D2FF}."); return 1; }
  2654. new Float:X,Float:Y,Float:Z;
  2655. SetTimerEx("CarroGod", 1, 1, "i", playerid);
  2656. GetPlayerPos(playerid, X,Y,Z);
  2657. veiculonovo = CreateVehicle(carrocriado, X,Y,Z, 0.0, cor1, cor2, 60000);
  2658. PutPlayerInVehicle(playerid, veiculonovo, 0);
  2659. SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Veículo criado.");
  2660. }
  2661. return 1;
  2662. }
  2663. //================ [ Dar armas pra todos ] ==============
  2664. if(strcmp(cmdtext, "/dararmasall", true) == 0)
  2665. {
  2666. if(PlayerInfo[playerid][pAdmin] >= 1)
  2667. {
  2668. for(new i = 0; i < MAX_PLAYERS; i++)
  2669. {
  2670. GivePlayerWeapon(i, 24, 999);
  2671. GivePlayerWeapon(i, 25, 999);
  2672. GivePlayerWeapon(i, 30, 999);
  2673. GivePlayerWeapon(i, 34, 999);
  2674. GivePlayerWeapon(i, 10, 999);
  2675. GivePlayerWeapon(i, 4, 999);
  2676.  
  2677. SetPlayerArmour(i, 100);
  2678. SetPlayerHealth(i, 100);
  2679. }
  2680. format(string,sizeof(string),"{33CCFF}[ADMIN]{D2D2FF}: %s deu arma para todos os jogadores.",NomeDoJogador(playerid));
  2681. SendClientMessageToAll(COR_VERMELHA,string);
  2682. }
  2683. else
  2684. {
  2685. SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você não é administrador");
  2686. return 1;
  2687. }
  2688. return 1;
  2689. }
  2690. //================ [ Comandos das orgs ] ================
  2691. //================= [ Chat das ORG's ] ==================
  2692. if(strcmp(cmd, "/radio", true) == 0 || strcmp(cmd, "/r", true) == 0)
  2693. {
  2694. if(PlayerInfo[playerid][pLogado] == 1)
  2695. {
  2696. if(IsPlayerConnected(playerid))
  2697. {
  2698. new length = strlen(cmdtext);
  2699. while ((idx < length) && (cmdtext[idx] <= ' '))
  2700. {
  2701. idx++;
  2702. }
  2703. new offset = idx;
  2704. new result[64];
  2705. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  2706. {
  2707. result[idx - offset] = cmdtext[idx];
  2708. idx++;
  2709. }
  2710. result[idx - offset] = EOS;
  2711. if(!strlen(result))
  2712. {
  2713. SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: USE: {8470FF}(/r)adio {D2D2FF}[ORG CHAT]");
  2714. return 1;
  2715. }
  2716. if(PlayerInfo[playerid][pORG] > 0)
  2717. {
  2718. format(string,sizeof(string),"{FF6347}[RADIO]{D2D2FF}: %s disse: %s",NomeDoJogador(playerid),result);
  2719. new org = PlayerInfo[playerid][pORG];
  2720. for(new i=0; i < MAX_PLAYERS; i++)
  2721. {
  2722. if(org == 1)
  2723. {
  2724. if(PlayerInfo[i][pORG] == 1)
  2725. {
  2726. SendClientMessage(i,COR_INFO,string);
  2727. }
  2728. }
  2729. if(org == 2)
  2730. {
  2731. if(PlayerInfo[i][pORG] == 2)
  2732. {
  2733. SendClientMessage(i,COR_INFO,string);
  2734. }
  2735. }
  2736. if(org == 3)
  2737. {
  2738. if(PlayerInfo[i][pORG] == 3)
  2739. {
  2740. SendClientMessage(i,COR_INFO,string);
  2741. }
  2742. }
  2743. if(org == 4)
  2744. {
  2745. if(PlayerInfo[i][pORG] == 4)
  2746. {
  2747. SendClientMessage(i,COR_INFO,string);
  2748. }
  2749. }
  2750. if(org == 5)
  2751. {
  2752. if(PlayerInfo[i][pORG] == 5)
  2753. {
  2754. SendClientMessage(i,COR_INFO,string);
  2755. }
  2756. }
  2757. if(PlayerInfo[i][pORG] == 6)
  2758. {
  2759. SendClientMessage(i,COR_INFO,string);
  2760. }
  2761. }
  2762. }
  2763. }
  2764. }
  2765. }
  2766. return 1;
  2767. }
  2768. //=======================================================
  2769. //return 1;
  2770. //}
  2771. //================== [ NomeServer ] =====================
  2772. public NomeServer()
  2773. {
  2774. contagem++;
  2775. if(contagem > 4)contagem = 0;
  2776. new string[128];
  2777. format(string, sizeof(string), "hostname %s", ServidorNome[contagem]);
  2778. SendRconCommand(string);
  2779. return 1;
  2780. }
  2781. //============[ OnGameModeExit ] ========================
  2782. public OnGameModeExit()
  2783. {
  2784. TextDrawHideForAll(Textdrawdebaixodoradar);
  2785. TextDrawDestroy(Textdrawdebaixodoradar);
  2786. return 1;
  2787. }
  2788. //=============== [ OnPlayerExitVehicle ] ===============
  2789. public OnPlayerExitVehicle(playerid, vehicleid)
  2790. {
  2791. veiculonovo = GetPlayerVehicleID(playerid);
  2792. DestroyVehicle(veiculonovo);
  2793. return 1;
  2794. }
  2795. //============== [ OnPlayerStateChange ] ================
  2796. public OnPlayerStateChange(playerid, newstate, oldstate)
  2797. {
  2798. if(ModoAntiQueda[playerid] == 1)
  2799. {
  2800. if(oldstate == PLAYER_STATE_DRIVER)
  2801. {
  2802. if(newstate == PLAYER_STATE_ONFOOT)
  2803. {
  2804. if(JogadorNoVeiculo[playerid] == 1)
  2805. {
  2806. PutPlayerInVehicle(playerid, QualCarro[playerid], Motorista);
  2807. }
  2808. }
  2809. }
  2810. if(oldstate == PLAYER_STATE_PASSENGER)
  2811. {
  2812. if(newstate == PLAYER_STATE_ONFOOT)
  2813. {
  2814. if(JogadorNoVeiculo[playerid] == 1)
  2815. {
  2816. PutPlayerInVehicle(playerid, QualCarro[playerid], Passageiro);
  2817. }
  2818. }
  2819. }
  2820. if(oldstate == PLAYER_STATE_ONFOOT)
  2821. {
  2822. if(newstate == PLAYER_STATE_DRIVER || PLAYER_STATE_PASSENGER)
  2823. {
  2824. JogadorNoVeiculo[playerid] = 1;
  2825. QualCarro[playerid] = GetPlayerVehicleID(playerid);
  2826. }
  2827. }
  2828. }
  2829. return 1;
  2830. }
  2831. //=========== [ SetupPlayerForClassSelection ] ==========
  2832. public SetupPlayerForClassSelection(playerid)
  2833. {
  2834. SetPlayerInterior(playerid,0);
  2835. SetPlayerPos(playerid,-1484.5535,692.9634,7.1782);
  2836. SetPlayerFacingAngle(playerid, 42.2945);
  2837. SetPlayerCameraPos(playerid,-1489.1276,698.4785,7.1805);
  2838. SetPlayerCameraLookAt(playerid,-1484.5535,692.9634,7.1782);
  2839. PlayerPlaySound(playerid, 1185, 0.0, 0.0, 0.0);
  2840. return 1;
  2841. }
  2842. //=================== [ GangZones ] =====================
  2843. public GuerraConstrucao(playerid)
  2844. {
  2845. new string[128];
  2846. if(PlayerInfo[playerid][pORG] == 1)
  2847. {
  2848. if(ProvocouConstrucao[playerid] == 1)
  2849. {
  2850. if(JogadorNaConstrucao(playerid))
  2851. {
  2852. format(string, sizeof(string), "{0000FF}[GANGZONE]{D2D2FF}: %s e a Grove Street dominaram a Construção.",NomeDoJogador(playerid));
  2853. SendClientMessageToAll(COR_INFO, string);
  2854. SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Você dominou a Construção.");
  2855. GangZoneStopFlashForAll(GZConstrucao);
  2856. GangZoneShowForAll(GZConstrucao,COR_GROVE);
  2857. Dominando[playerid] = 0;
  2858. ProvocouConstrucao[playerid] = 0;
  2859. GuerranaConstrucao = 0;
  2860. donodaconstrucao = 1;
  2861. KillTimer(TempoDeGuerraNaConstrucao);
  2862. return 1;
  2863. }
  2864. else
  2865. {
  2866. SendClientMessage(playerid, COR_INFO, "{0000FF}[GANGZONE]{D2D2FF}: Você não está na Construção.");
  2867. Dominando[playerid] = 0;
  2868. GangZoneStopFlashForAll(GZConstrucao);
  2869. GangZoneShowForAll(GZConstrucao, COR_GZ);
  2870. ProvocouConstrucao[playerid] = 0;
  2871. GuerranaConstrucao = 0;
  2872. donodaconstrucao = 0;
  2873. KillTimer(TempoDeGuerraNaConstrucao);
  2874. return 1;
  2875. }
  2876. }
  2877. return 1;
  2878. }
  2879. if(PlayerInfo[playerid][pORG] == 2)
  2880. {
  2881. if(ProvocouConstrucao[playerid] == 1)
  2882. {
  2883. if(JogadorNaConstrucao(playerid))
  2884. {
  2885. format(string, sizeof(string), "{0000FF}[GANGZONE]{D2D2FF}: %s e os Ballas dominaram a Construção.",NomeDoJogador(playerid));
  2886. SendClientMessageToAll(COR_INFO, string);
  2887. SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Você dominou a Construção.");
  2888. GangZoneStopFlashForAll(GZConstrucao);
  2889. GangZoneShowForAll(GZConstrucao,COR_BALLAS);
  2890. Dominando[playerid] = 0;
  2891. ProvocouConstrucao[playerid] = 0;
  2892. GuerranaConstrucao = 0;
  2893. donodaconstrucao = 2;
  2894. KillTimer(TempoDeGuerraNaConstrucao);
  2895. return 1;
  2896. }
  2897. else
  2898. {
  2899. SendClientMessage(playerid, COR_INFO, "{0000FF}[GANGZONE]{D2D2FF}: Você não está na Construção.");
  2900. Dominando[playerid] = 0;
  2901. GangZoneStopFlashForAll(GZConstrucao);
  2902. GangZoneShowForAll(GZConstrucao, COR_GZ);
  2903. ProvocouConstrucao[playerid] = 0;
  2904. GuerranaConstrucao = 0;
  2905. donodaconstrucao = 0;
  2906. KillTimer(TempoDeGuerraNaConstrucao);
  2907. return 1;
  2908. }
  2909. }
  2910. return 1;
  2911. }
  2912. if(PlayerInfo[playerid][pORG] == 3)
  2913. {
  2914. if(ProvocouConstrucao[playerid] == 1)
  2915. {
  2916. if(JogadorNaConstrucao(playerid))
  2917. {
  2918. format(string, sizeof(string), "{0000FF}[GANGZONE]{D2D2FF}: %s e o Los Vagos dominaram a Construção.",NomeDoJogador(playerid));
  2919. SendClientMessageToAll(COR_INFO, string);
  2920. SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Você dominou a Construção.");
  2921. GangZoneStopFlashForAll(GZConstrucao);
  2922. GangZoneShowForAll(GZConstrucao,COR_VAGOS);
  2923. Dominando[playerid] = 0;
  2924. ProvocouConstrucao[playerid] = 0;
  2925. GuerranaConstrucao = 0;
  2926. donodaconstrucao = 3;
  2927. KillTimer(TempoDeGuerraNaConstrucao);
  2928. return 1;
  2929. }
  2930. else
  2931. {
  2932. SendClientMessage(playerid, COR_INFO, "{0000FF}[GANGZONE]{D2D2FF}: Você não está na Construção.");
  2933. Dominando[playerid] = 0;
  2934. GangZoneStopFlashForAll(GZConstrucao);
  2935. GangZoneShowForAll(GZConstrucao, COR_GZ);
  2936. ProvocouConstrucao[playerid] = 0;
  2937. GuerranaConstrucao = 0;
  2938. donodaconstrucao = 0;
  2939. KillTimer(TempoDeGuerraNaConstrucao);
  2940. return 1;
  2941. }
  2942. }
  2943. return 1;
  2944. }
  2945. if(PlayerInfo[playerid][pORG] == 4)
  2946. {
  2947. if(ProvocouConstrucao[playerid] == 1)
  2948. {
  2949. if(JogadorNaConstrucao(playerid))
  2950. {
  2951. format(string, sizeof(string), "{0000FF}[GANGZONE]{D2D2FF}: %s e o Los Aztecas dominaram a Construção.",NomeDoJogador(playerid));
  2952. SendClientMessageToAll(COR_INFO, string);
  2953. SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Você dominou a Construção.");
  2954. GangZoneStopFlashForAll(GZConstrucao);
  2955. GangZoneShowForAll(GZConstrucao,COR_AZTECAS);
  2956. Dominando[playerid] = 0;
  2957. ProvocouConstrucao[playerid] = 0;
  2958. GuerranaConstrucao = 0;
  2959. donodaconstrucao = 4;
  2960. KillTimer(TempoDeGuerraNaConstrucao);
  2961. return 1;
  2962. }
  2963. else
  2964. {
  2965. SendClientMessage(playerid, COR_INFO, "{0000FF}[GANGZONE]{D2D2FF}: Você não está na Construção.");
  2966. Dominando[playerid] = 0;
  2967. GangZoneStopFlashForAll(GZConstrucao);
  2968. GangZoneShowForAll(GZConstrucao, COR_GZ);
  2969. ProvocouConstrucao[playerid] = 0;
  2970. GuerranaConstrucao = 0;
  2971. donodaconstrucao = 0;
  2972. KillTimer(TempoDeGuerraNaConstrucao);
  2973. return 1;
  2974. }
  2975. }
  2976. return 1;
  2977. }
  2978. if(PlayerInfo[playerid][pORG] == 5)
  2979. {
  2980. if(ProvocouConstrucao[playerid] == 1)
  2981. {
  2982. if(JogadorNaConstrucao(playerid))
  2983. {
  2984. format(string, sizeof(string), "{0000FF}[GANGZONE]{D2D2FF}: %s e a San Fierro PD controlaram a Construção.",NomeDoJogador(playerid));
  2985. SendClientMessageToAll(COR_INFO, string);
  2986. SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Você controlou a Construção.");
  2987. GangZoneStopFlashForAll(GZConstrucao);
  2988. GangZoneShowForAll(GZConstrucao,COR_SFPD);
  2989. Dominando[playerid] = 0;
  2990. ProvocouConstrucao[playerid] = 0;
  2991. GuerranaConstrucao = 0;
  2992. donodaconstrucao = 5;
  2993. KillTimer(TempoDeGuerraNaConstrucao);
  2994. return 1;
  2995. }
  2996. else
  2997. {
  2998. SendClientMessage(playerid, COR_INFO, "{0000FF}[GANGZONE]{D2D2FF}: Você não está na Construção.");
  2999. Dominando[playerid] = 0;
  3000. GangZoneStopFlashForAll(GZConstrucao);
  3001. GangZoneShowForAll(GZConstrucao, COR_GZ);
  3002. ProvocouConstrucao[playerid] = 0;
  3003. GuerranaConstrucao = 0;
  3004. donodaconstrucao = 0;
  3005. KillTimer(TempoDeGuerraNaConstrucao);
  3006. return 1;
  3007. }
  3008. }
  3009. return 1;
  3010. }
  3011. if(PlayerInfo[playerid][pORG] == 6)
  3012. {
  3013. if(ProvocouConstrucao[playerid] == 1)
  3014. {
  3015. if(JogadorNaConstrucao(playerid))
  3016. {
  3017. format(string, sizeof(string), "{0000FF}[GANGZONE]{D2D2FF}: %s e o Comando Vermelho dominaram a Construção.",NomeDoJogador(playerid));
  3018. SendClientMessageToAll(COR_INFO, string);
  3019. SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Você dominou a Construção.");
  3020. GangZoneStopFlashForAll(GZConstrucao);
  3021. GangZoneShowForAll(GZConstrucao,COR_CV);
  3022. Dominando[playerid] = 0;
  3023. ProvocouConstrucao[playerid] = 0;
  3024. GuerranaConstrucao = 0;
  3025. donodaconstrucao = 6;
  3026. KillTimer(TempoDeGuerraNaConstrucao);
  3027. return 1;
  3028. }
  3029. else
  3030. {
  3031. SendClientMessage(playerid, COR_INFO, "{0000FF}[GANGZONE]{D2D2FF}: Você não está na Construção.");
  3032. Dominando[playerid] = 0;
  3033. GangZoneStopFlashForAll(GZConstrucao);
  3034. GangZoneShowForAll(GZConstrucao, COR_GZ);
  3035. ProvocouConstrucao[playerid] = 0;
  3036. GuerranaConstrucao = 0;
  3037. donodaconstrucao = 0;
  3038. KillTimer(TempoDeGuerraNaConstrucao);
  3039. return 1;
  3040. }
  3041. }
  3042. return 1;
  3043. }
  3044. return 1;
  3045. }
  3046. public GuerraPuteiro(playerid)
  3047. {
  3048. new string[128];
  3049. if(PlayerInfo[playerid][pORG] == 1)
  3050. {
  3051. if(ProvocouPuteiro[playerid] == 1)
  3052. {
  3053. if(JogadorNoPuteiro(playerid))
  3054. {
  3055. format(string, sizeof(string), "{0000FF}[GANGZONE]{D2D2FF}: %s e a Grove Street dominaram o Puteiro.",NomeDoJogador(playerid));
  3056. SendClientMessageToAll(COR_INFO, string);
  3057. SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Você dominou o Puteiro.");
  3058. GangZoneStopFlashForAll(GZPuteiro);
  3059. GangZoneShowForAll(GZPuteiro,COR_GROVE);
  3060. Dominando[playerid] = 0;
  3061. ProvocouPuteiro[playerid] = 0;
  3062. GuerranoPuteiro= 0;
  3063. donodoputeiro= 1;
  3064. KillTimer(TempoDeGuerraNoPuteiro);
  3065. return 1;
  3066. }
  3067. else
  3068. {
  3069. SendClientMessage(playerid, COR_INFO, "{0000FF}[GANGZONE]{D2D2FF}: Você não está no Puteiro.");
  3070. Dominando[playerid] = 0;
  3071. GangZoneStopFlashForAll(GZPuteiro);
  3072. GangZoneShowForAll(GZPuteiro, COR_GZ);
  3073. ProvocouPuteiro[playerid] = 0;
  3074. GuerranoPuteiro= 0;
  3075. donodoputeiro = 0;
  3076. KillTimer(TempoDeGuerraNoPuteiro);
  3077. return 1;
  3078. }
  3079. }
  3080. return 1;
  3081. }
  3082. if(PlayerInfo[playerid][pORG] == 2)
  3083. {
  3084. if(ProvocouPuteiro[playerid] == 1)
  3085. {
  3086. if(JogadorNoPuteiro(playerid))
  3087. {
  3088. format(string, sizeof(string), "{0000FF}[GANGZONE]{D2D2FF}: %s e os Ballas dominaram o Puteiro.",NomeDoJogador(playerid));
  3089. SendClientMessageToAll(COR_INFO, string);
  3090. SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Você dominou o Puteiro.");
  3091. GangZoneStopFlashForAll(GZPuteiro);
  3092. GangZoneShowForAll(GZPuteiro,COR_BALLAS);
  3093. Dominando[playerid] = 0;
  3094. ProvocouPuteiro[playerid] = 0;
  3095. GuerranoPuteiro= 0;
  3096. donodoputeiro = 2;
  3097. KillTimer(TempoDeGuerraNoPuteiro);
  3098. return 1;
  3099. }
  3100. else
  3101. {
  3102. SendClientMessage(playerid, COR_INFO, "{0000FF}[GANGZONE]{D2D2FF}: Você não está no Puteiro.");
  3103. Dominando[playerid] = 0;
  3104. GangZoneStopFlashForAll(GZPuteiro);
  3105. GangZoneShowForAll(GZPuteiro, COR_GZ);
  3106. ProvocouPuteiro[playerid] = 0;
  3107. GuerranoPuteiro= 0;
  3108. donodoputeiro = 0;
  3109. KillTimer(TempoDeGuerraNoPuteiro);
  3110. return 1;
  3111. }
  3112. }
  3113. return 1;
  3114. }
  3115. if(PlayerInfo[playerid][pORG] == 3)
  3116. {
  3117. if(ProvocouPuteiro[playerid] == 1)
  3118. {
  3119. if(JogadorNoPuteiro(playerid))
  3120. {
  3121. format(string, sizeof(string), "{0000FF}[GANGZONE]{D2D2FF}: %s e o Los Vagos dominaram o Puteiro.",NomeDoJogador(playerid));
  3122. SendClientMessageToAll(COR_INFO, string);
  3123. SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Você dominou o Puteiro.");
  3124. GangZoneStopFlashForAll(GZPuteiro);
  3125. GangZoneShowForAll(GZPuteiro,COR_VAGOS);
  3126. Dominando[playerid] = 0;
  3127. ProvocouPuteiro[playerid] = 0;
  3128. GuerranoPuteiro= 0;
  3129. donodoputeiro = 3;
  3130. KillTimer(TempoDeGuerraNoPuteiro);
  3131. return 1;
  3132. }
  3133. else
  3134. {
  3135. SendClientMessage(playerid, COR_INFO, "{0000FF}[GANGZONE]{D2D2FF}: Você não está no Puteiro.");
  3136. Dominando[playerid] = 0;
  3137. GangZoneStopFlashForAll(GZPuteiro);
  3138. GangZoneShowForAll(GZPuteiro, COR_GZ);
  3139. ProvocouPuteiro[playerid] = 0;
  3140. GuerranoPuteiro= 0;
  3141. donodoputeiro = 0;
  3142. KillTimer(TempoDeGuerraNoPuteiro);
  3143. return 1;
  3144. }
  3145. }
  3146. return 1;
  3147. }
  3148. if(PlayerInfo[playerid][pORG] == 4)
  3149. {
  3150. if(ProvocouPuteiro[playerid] == 1)
  3151. {
  3152. if(JogadorNoPuteiro(playerid))
  3153. {
  3154. format(string, sizeof(string), "{0000FF}[GANGZONE]{D2D2FF}: %s e o Los Aztecas dominaram o Puteiro.",NomeDoJogador(playerid));
  3155. SendClientMessageToAll(COR_INFO, string);
  3156. SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Você dominou o Puteiro.");
  3157. GangZoneStopFlashForAll(GZPuteiro);
  3158. GangZoneShowForAll(GZPuteiro,COR_AZTECAS);
  3159. Dominando[playerid] = 0;
  3160. ProvocouPuteiro[playerid] = 0;
  3161. GuerranoPuteiro= 0;
  3162. donodoputeiro = 4;
  3163. KillTimer(TempoDeGuerraNoPuteiro);
  3164. return 1;
  3165. }
  3166. else
  3167. {
  3168. SendClientMessage(playerid, COR_INFO, "{0000FF}[GANGZONE]{D2D2FF}: Você não está no Puteiro.");
  3169. Dominando[playerid] = 0;
  3170. GangZoneStopFlashForAll(GZPuteiro);
  3171. GangZoneShowForAll(GZPuteiro, COR_GZ);
  3172. ProvocouPuteiro[playerid] = 0;
  3173. GuerranoPuteiro= 0;
  3174. donodoputeiro = 0;
  3175. KillTimer(TempoDeGuerraNoPuteiro);
  3176. return 1;
  3177. }
  3178. }
  3179. return 1;
  3180. }
  3181. if(PlayerInfo[playerid][pORG] == 5)
  3182. {
  3183. if(ProvocouPuteiro[playerid] == 1)
  3184. {
  3185. if(JogadorNoPuteiro(playerid))
  3186. {
  3187. format(string, sizeof(string), "{0000FF}[GANGZONE]{D2D2FF}: %s e a San Fierro PD controlaram o Puteiro.",NomeDoJogador(playerid));
  3188. SendClientMessageToAll(COR_INFO, string);
  3189. SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Você controlou o Puteiro.");
  3190. GangZoneStopFlashForAll(GZPuteiro);
  3191. GangZoneShowForAll(GZPuteiro,COR_SFPD);
  3192. Dominando[playerid] = 0;
  3193. ProvocouPuteiro[playerid] = 0;
  3194. GuerranoPuteiro= 0;
  3195. donodoputeiro = 5;
  3196. KillTimer(TempoDeGuerraNoPuteiro);
  3197. return 1;
  3198. }
  3199. else
  3200. {
  3201. SendClientMessage(playerid, COR_INFO, "{0000FF}[GANGZONE]{D2D2FF}: Você não está no Puteiro.");
  3202. Dominando[playerid] = 0;
  3203. GangZoneStopFlashForAll(GZPuteiro);
  3204. GangZoneShowForAll(GZPuteiro, COR_GZ);
  3205. ProvocouPuteiro[playerid] = 0;
  3206. GuerranoPuteiro= 0;
  3207. donodoputeiro = 0;
  3208. KillTimer(TempoDeGuerraNoPuteiro);
  3209. return 1;
  3210. }
  3211. }
  3212. return 1;
  3213. }
  3214. if(PlayerInfo[playerid][pORG] == 6)
  3215. {
  3216. if(ProvocouPuteiro[playerid] == 1)
  3217. {
  3218. if(JogadorNoPuteiro(playerid))
  3219. {
  3220. format(string, sizeof(string), "{0000FF}[GANGZONE]{D2D2FF}: %s e o Comando Vermelho dominaram o Puteiro.",NomeDoJogador(playerid));
  3221. SendClientMessageToAll(COR_INFO, string);
  3222. SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Você dominou o Puteiro.");
  3223. GangZoneStopFlashForAll(GZPuteiro);
  3224. GangZoneShowForAll(GZPuteiro,COR_CV);
  3225. Dominando[playerid] = 0;
  3226. ProvocouPuteiro[playerid] = 0;
  3227. GuerranoPuteiro= 0;
  3228. donodoputeiro = 6;
  3229. KillTimer(TempoDeGuerraNoPuteiro);
  3230. return 1;
  3231. }
  3232. else
  3233. {
  3234. SendClientMessage(playerid, COR_INFO, "{0000FF}[GANGZONE]{D2D2FF}: Você não está no Puteiro.");
  3235. Dominando[playerid] = 0;
  3236. GangZoneStopFlashForAll(GZPuteiro);
  3237. GangZoneShowForAll(GZPuteiro, COR_GZ);
  3238. ProvocouPuteiro[playerid] = 0;
  3239. GuerranoPuteiro= 0;
  3240. donodoputeiro = 0;
  3241. KillTimer(TempoDeGuerraNoPuteiro);
  3242. return 1;
  3243. }
  3244. }
  3245. return 1;
  3246. }
  3247. return 1;
  3248. }
  3249. //=========== [ OnPlayerKeyStateChange ] ================
  3250. public OnPlayerKeyStateChange(playerid,newkeys,oldkeys)
  3251. {
  3252. if(newkeys == 16 && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
  3253. {
  3254. OnPlayerCommandText(playerid,"/entrar");
  3255. OnPlayerCommandText(playerid,"/sair");
  3256. }
  3257. }
  3258. //=============== [ SpawnarJogador ] ====================
  3259. public SpawnarJogador(playerid)
  3260. {
  3261. if(PlayerInfo[playerid][pORG] == 0)
  3262. {
  3263. TogglePlayerControllable(playerid, 0);
  3264. Registrado[playerid] = 1;
  3265. LimparChat(playerid, 125);
  3266. SetPlayerVirtualWorld(playerid,playerid+1);
  3267. SendClientMessage(playerid, COR_INFO, "{90EE90}[FusioN TDM]{D2D2FF}: Seja bem-vindo ao {90EE90}FusioN TDM{D2D2FF}.");
  3268. ShowPlayerDialog(playerid, 11,DIALOG_STYLE_LIST,"Escolha sua organização","{00D900}Grove Street Families\n{FFC801}Los Santos Vagos\n{D900D3}Front Yard Ballas\n{2641FE}Varrios Los Aztecas\n{7491F6}San Fierro Police Department\n{FF5B5B}Comando Vermelho","Selecionar","");
  3269. PlayerPlaySound(playerid, 1131, 0.0, 0.0, 0.0);
  3270. }
  3271. else if(PlayerInfo[playerid][pORG] == 1)
  3272. {
  3273. new skin = PlayerInfo[playerid][pSkin];
  3274. SetPlayerSkin(playerid, skin);
  3275. ResetPlayerWeapons(playerid);
  3276. SetPlayerPos(playerid, -2719.8328,-318.2808,7.8438);
  3277. }
  3278. else if(PlayerInfo[playerid][pORG] == 2)
  3279. {
  3280. new skin = PlayerInfo[playerid][pSkin];
  3281. SetPlayerSkin(playerid, skin);
  3282. ResetPlayerWeapons(playerid);
  3283. SetPlayerPos(playerid, -2765.0029,375.4214,6.3431);
  3284. }
  3285. else if(PlayerInfo[playerid][pORG] == 3)
  3286. {
  3287. new skin = PlayerInfo[playerid][pSkin];
  3288. SetPlayerSkin(playerid, skin);
  3289. ResetPlayerWeapons(playerid);
  3290. SetPlayerPos(playerid, -2446.1750,523.2524,30.1791);
  3291. }
  3292. else if(PlayerInfo[playerid][pORG] == 4)
  3293. {
  3294. new skin = PlayerInfo[playerid][pSkin];
  3295. SetPlayerSkin(playerid, skin);
  3296. ResetPlayerWeapons(playerid);
  3297. SetPlayerPos(playerid, -1783.8490,572.2196,35.1641);
  3298. }
  3299. else if(PlayerInfo[playerid][pORG] == 5)
  3300. {
  3301. new skin = PlayerInfo[playerid][pSkin];
  3302. SetPlayerSkin(playerid, skin);
  3303. ResetPlayerWeapons(playerid);
  3304. SetPlayerPos(playerid, -1606.2655,673.0223,-5.2422);
  3305. }
  3306. else if(PlayerInfo[playerid][pORG] == 6)
  3307. {
  3308. new skin = PlayerInfo[playerid][pSkin];
  3309. SetPlayerSkin(playerid, skin);
  3310. ResetPlayerWeapons(playerid);
  3311. SetPlayerPos(playerid, -2343.6538,1006.3931,55.9150);
  3312. }
  3313. return 1;
  3314. }
  3315.  
  3316.  
  3317. //=========== [ Contagem regressiva ~ x1 ] ============== ~> DESABILITADO
  3318. /*forward IniciarContagem(playerid);
  3319. public IniciarContagem(playerid)
  3320. {
  3321. contagem--;
  3322. switch(contagem)
  3323. {
  3324. case 0:
  3325. {
  3326. GameTextForAll("~g~GOGOGO", 1000, 3);
  3327. KillTimer(contagemx1);
  3328. PlayerPlaySound(playerid, 1057, 0,0,0);
  3329. for(new i = 0; i < MAX_PLAYERS; i++)
  3330. {
  3331. if(TaNoX1[i] == 1)
  3332. {
  3333. TogglePlayerControllable(i,1);
  3334. }
  3335. }
  3336. }
  3337. case 1:{ GameTextForAll("~b~1", 1000, 3);PlayerPlaySound(playerid, 1056, 0,0,0); }
  3338. case 2:{ GameTextForAll("~y~2", 1000, 3);PlayerPlaySound(playerid, 1056, 0,0,0); }
  3339. case 3:{ GameTextForAll("~r~3", 1000, 3);PlayerPlaySound(playerid, 1056, 0,0,0); }
  3340. }
  3341. return 1;
  3342. } */
  3343. //============ [ Mensagens para admin ] =================
  3344. stock SendAdminMessage(playerid, color, const message[])
  3345. {
  3346. new ret=0;
  3347. for (new i=0; i<MAX_PLAYERS; i++)
  3348. {
  3349. if (IsPlayerConnected(i) && i!=playerid && PlayerInfo[i][pAdmin] > 0)
  3350. {
  3351. SendClientMessage(i, color, message);
  3352. ret++;
  3353. }
  3354. }
  3355. return ret;
  3356. }
  3357. //=============== [ Carro blindado ] ====================
  3358. public CarroGod(playerid)
  3359. {
  3360. if(IsPlayerConnected(playerid))
  3361. {
  3362. SetVehicleHealth(veiculonovo,1000);
  3363. RepairVehicle(veiculonovo);
  3364. return 1;
  3365. }
  3366. return 1;
  3367. }
  3368. //============ [ Mensagens randômicas - public ] ========
  3369. public MensagensRandomicas()
  3370. {
  3371. new string[265];
  3372. new random1 = random(sizeof(Mensagens));
  3373. new random2 = random(sizeof(Cores));
  3374. format(string, sizeof(string), "%s", Mensagens[random1]);
  3375. SendClientMessageToAll(Cores[random2],string);
  3376. return 1;
  3377. }
  3378. //================== [ Limpar chat ] ====================
  3379. forward LimparChat(playerid, lines);
  3380. public LimparChat(playerid, lines)
  3381. {
  3382. if (IsPlayerConnected(playerid))
  3383. {
  3384. for(new i=0; i<lines; i++)
  3385. {
  3386. SendClientMessage(playerid, COR_INFO, " ");
  3387. }
  3388. }
  3389. return 1;
  3390. }
  3391.  
  3392. //=============== [ Sistema de registro/login ] =================
  3393. public RegistrarJogador(playerid, senha[])
  3394. {
  3395. if(IsPlayerConnected(playerid))
  3396. {
  3397. new string3[64];
  3398. format(string3,sizeof(string3),"Contas/%s.ini",NomeDoJogador(playerid));
  3399. dini_Create(string3);
  3400. dini_Set(string3,"Senha",senha);
  3401. dini_IntSet(string3,"Level", GetPlayerScore(playerid));
  3402. dini_IntSet(string3,"Dinheiro", GetPlayerMoney(playerid));
  3403. dini_IntSet(string3,"Admin", PlayerInfo[playerid][pAdmin]);
  3404. dini_IntSet(string3,"ORG", PlayerInfo[playerid][pORG]);
  3405. dini_IntSet(string3, "Skin",PlayerInfo[playerid][pSkin]);
  3406. dini_IntSet(string3,"Morreu", PlayerInfo[playerid][pMortes]);
  3407. dini_IntSet(string3,"Matou", PlayerInfo[playerid][pKills]);
  3408. new d,m,a;
  3409. getdate(a,m,d);
  3410. dini_IntSet(string3,"AnoRegistrado",a);
  3411. dini_IntSet(string3,"MesRegistrado",m);
  3412. dini_IntSet(string3,"DiaRegistrado",d);
  3413. SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Conta criada com sucesso.");
  3414. ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "{90EE90}FusioN TeamDeath Match", "Digite sua senha para logar-se", "Logar", "Esperar");
  3415. PlayerInfo[playerid][pReg] = 0;
  3416. }
  3417. return 1;
  3418. }
  3419.  
  3420. public CarregarJogador(playerid, senha[])
  3421. {
  3422. new string2[64];
  3423. new stringultimologin[256];
  3424. format(string2, sizeof(string2), "Contas/%s.ini", NomeDoJogador(playerid));
  3425. if(dini_Exists(string2))
  3426. {
  3427. if(!strcmp(dini_Get(string2, "Senha"), senha, false))
  3428. {
  3429. PlayerInfo[playerid][pLogado] = 1;
  3430. SetPlayerScore(playerid, dini_Int(string2,"Level"));
  3431. GivePlayerMoney(playerid, dini_Int(string2,"Dinheiro"));
  3432. PlayerInfo[playerid][pAdmin] = dini_Int(string2,"Admin");
  3433. PlayerInfo[playerid][pORG] = dini_Int(string2,"ORG");
  3434. PlayerInfo[playerid][pSkin] = dini_Int(string2,"Skin");
  3435. PlayerInfo[playerid][pMortes] = dini_Int(string2,"Morreu");
  3436. PlayerInfo[playerid][pKills] = dini_Int(string2,"Matou");
  3437. format(stringultimologin, sizeof(stringultimologin), "Seu último login foi em: %d/%d/%d às %d:%d:%d", PlayerInfo[playerid][pUltimoLoginAno], PlayerInfo[playerid][pUltimoLoginMes], PlayerInfo[playerid][pUltimoLoginDia], PlayerInfo[playerid][pUltimoLoginHora], PlayerInfo[playerid][pUltimoLoginMinuto], PlayerInfo[playerid][pUltimoLoginSegundo]);
  3438. SendClientMessage(playerid, COR_INFO, stringultimologin);
  3439. getdate(ano,mes,dia);
  3440. gettime(hora,minuto,segundo);
  3441. dini_IntSet(string2,"UltimoLoginAno",ano);
  3442. dini_IntSet(string2,"UltimoLoginMes",mes);
  3443. dini_IntSet(string2,"UltimoLoginDia",dia);
  3444. dini_IntSet(string2,"UltimoLoginHora",hora);
  3445. dini_IntSet(string2,"UltimoLoginMinuto",minuto);
  3446. dini_IntSet(string2,"UltimoLoginSegundo",segundo);
  3447. PlayerInfo[playerid][pUltimoLoginAno] = dini_Int(string2,"UltimoLoginAno");
  3448. PlayerInfo[playerid][pUltimoLoginMes] = dini_Int(string2,"UltimoLoginMes");
  3449. PlayerInfo[playerid][pUltimoLoginDia] = dini_Int(string2,"UltimoLoginDia");
  3450. PlayerInfo[playerid][pUltimoLoginHora] = dini_Int(string2,"UltimoLoginHora");
  3451. PlayerInfo[playerid][pUltimoLoginMinuto] = dini_Int(string2,"UltimoLoginMinuto");
  3452. PlayerInfo[playerid][pUltimoLoginSegundo] = dini_Int(string2,"UltimoLoginSegundo");
  3453. SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Você logou com sucesso.");
  3454. SpawnPlayer(playerid);
  3455. }
  3456. else
  3457. {
  3458. ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "{90EE90}FusioN TeamDeath Match", "Você digitou uma senha incorreta", "Logar", "Esperar");
  3459. SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Sua senha/nick não coincidem.");
  3460. return 1;
  3461. }
  3462. }
  3463. return 1;
  3464. }
  3465.  
  3466. public AtualizarJogador(playerid)
  3467. {
  3468. if(IsPlayerConnected(playerid))
  3469. {
  3470. if(PlayerInfo[playerid][pLogado] == 1)
  3471. {
  3472. new string3[256];
  3473. format(string3, sizeof(string3), "Contas/%s.ini", NomeDoJogador(playerid));
  3474.  
  3475. dini_IntSet(string3, "Level",PlayerInfo[playerid][pLevel]);
  3476. dini_IntSet(string3,"Dinheiro", GetPlayerMoney(playerid))
  3477. dini_IntSet(string3, "Admin",PlayerInfo[playerid][pAdmin]);
  3478. dini_IntSet(string3, "ORG",PlayerInfo[playerid][pORG]);
  3479. dini_IntSet(string3, "Skin",PlayerInfo[playerid][pSkin]);
  3480. dini_IntSet(string3, "Morreu",PlayerInfo[playerid][pMortes]);
  3481. dini_IntSet(string3, "Matou",PlayerInfo[playerid][pKills]);
  3482. }
  3483. }
  3484. return 1;
  3485. }
  3486.  
  3487. forward BanLog(string[]);
  3488. public BanLog(string[])
  3489. {
  3490. new entry[128];
  3491. format(entry, sizeof(entry), "%s\n",string);
  3492. new File:hFile;
  3493. hFile = fopen("Logs/ban.log", io_append);
  3494. fwrite(hFile, entry);
  3495. fclose(hFile);
  3496. }
  3497.  
  3498. public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
  3499. {
  3500. if(IsPlayerConnected(playerid))
  3501. {
  3502. new Float:oldposx, Float:oldposy, Float:oldposz;
  3503. new Float:tempposx, Float:tempposy, Float:tempposz;
  3504. GetPlayerPos(playerid, oldposx, oldposy, oldposz);
  3505. tempposx = (oldposx -x);
  3506. tempposy = (oldposy -y);
  3507. tempposz = (oldposz -z);
  3508. if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
  3509. {
  3510. return 1;
  3511. }
  3512. }
  3513. return 0;
  3514. }
  3515.  
  3516. IsNumeric(const string[])
  3517. {
  3518. for (new i = 0, j = strlen(string); i < j; i++)
  3519. {
  3520. if (string[i] > '9' || string[i] < '0') return 0;
  3521. }
  3522. return 1;
  3523. }
  3524.  
  3525. ReturnUser(text[], playerid = INVALID_PLAYER_ID)
  3526. {
  3527. new pos = 0;
  3528. while (text[pos] < 0x21) // Strip out leading spaces
  3529. {
  3530. if (text[pos] == 0) return INVALID_PLAYER_ID; // No passed text
  3531. pos++;
  3532. }
  3533. new userid = INVALID_PLAYER_ID;
  3534. if (IsNumeric(text[pos])) // Check whole passed string
  3535. {
  3536. // If they have a numeric name you have a problem (although names are checked on id failure)
  3537. userid = strval(text[pos]);
  3538. if (userid >=0 && userid < MAX_PLAYERS)
  3539. {
  3540. if(!IsPlayerConnected(userid))
  3541. {
  3542. /*if (playerid != INVALID_PLAYER_ID)
  3543. {
  3544. SendClientMessage(playerid, 0xFF0000AA, "User not connected");
  3545. }*/
  3546. userid = INVALID_PLAYER_ID;
  3547. }
  3548. else
  3549. {
  3550. return userid; // A player was found
  3551. }
  3552. }
  3553. /*else
  3554. {
  3555. if (playerid != INVALID_PLAYER_ID)
  3556. {
  3557. SendClientMessage(playerid, 0xFF0000AA, "Invalid user ID");
  3558. }
  3559. userid = INVALID_PLAYER_ID;
  3560. }
  3561. return userid;*/
  3562. // Removed for fallthrough code
  3563. }
  3564. // They entered [part of] a name or the id search failed (check names just incase)
  3565. new len = strlen(text[pos]);
  3566. new count = 0;
  3567. new name[MAX_PLAYER_NAME];
  3568. for (new i = 0; i < MAX_PLAYERS; i++)
  3569. {
  3570. if (IsPlayerConnected(i))
  3571. {
  3572. GetPlayerName(i, name, sizeof (name));
  3573. if (strcmp(name, text[pos], true, len) == 0) // Check segment of name
  3574. {
  3575. if (len == strlen(name)) // Exact match
  3576. {
  3577. return i; // Return the exact player on an exact match
  3578. // Otherwise if there are two players:
  3579. // Me and MeYou any time you entered Me it would find both
  3580. // And never be able to return just Me's id
  3581. }
  3582. else // Partial match
  3583. {
  3584. count++;
  3585. userid = i;
  3586. }
  3587. }
  3588. }
  3589. }
  3590. if (count != 1)
  3591. {
  3592. if (playerid != INVALID_PLAYER_ID)
  3593. {
  3594. if (count)
  3595. {
  3596. SendClientMessage(playerid, 0xFF0000AA, "Multiple users found, please narrow earch");
  3597. }
  3598. else
  3599. {
  3600. SendClientMessage(playerid, 0xFF0000AA, "No matching user found");
  3601. }
  3602. }
  3603. userid = INVALID_PLAYER_ID;
  3604. }
  3605. return userid;
  3606. }
  3607. DropWeapons( playerid )
  3608. {
  3609. new Float: px, Float: py, Float: pz;
  3610. new hour,minute,second;
  3611. new year, month,day;
  3612. gettime(hour, minute, second);
  3613. getdate(year, month, day);
  3614.  
  3615. GetPlayerPos( playerid, px, py, pz );
  3616.  
  3617. new weapon_slots[WEAPON_SLOTS + 1][2];
  3618. new used_weapon_slots;
  3619.  
  3620. for( new i = 0; i < WEAPON_SLOTS; i ++ )
  3621. {
  3622. GetPlayerWeaponData( playerid, i, weapon_slots[ i ][ 0 ], weapon_slots[ i ][ 1 ]);
  3623. if( i == 0 && weapon_slots[ i ][ 0 ] == 0 ) weapon_slots[ i ][ 1 ] = 0; // no fist...
  3624.  
  3625. if( weapon_slots[ i ][ 1 ] > 0 && weapon_slots[ i ][ 0 ] < sizeof( weapons ) && weapons[ weapon_slots[ i ][ 0 ] ] != -1 )
  3626. {
  3627. used_weapon_slots ++;
  3628. }
  3629. else
  3630. {
  3631. weapon_slots[ i ][ 0 ] = 0;
  3632. weapon_slots[ i ][ 1 ] = 0;
  3633. }
  3634. }
  3635. // Create the pickups
  3636. new used_weapon_slots2 = used_weapon_slots;
  3637. for( new i = 0; i < WEAPON_SLOTS; i ++ )
  3638. {
  3639. if( weapon_slots[ i ][ 1 ] > 0 )
  3640. {
  3641. new Float:angle = 360.0 - float(used_weapon_slots--) * ( 360.0 / float(used_weapon_slots2) );
  3642. // see... if there's a pickup we create by any chance
  3643.  
  3644. new p = CreatePickup( weapons[ weapon_slots[ i ][ 0 ] ], PICKUP_TYPE, px + floatsin(angle,degrees) * (used_weapon_slots2/2 + 1.0), py + floatcos(angle,degrees) * (used_weapon_slots2/2 + 1.0), pz );
  3645. if( p == INVALID_PICKUP )
  3646. {
  3647. new lowest_time;
  3648. new _id;
  3649. for( new j = 0; j < MAX_PICKUPS; j ++ )
  3650. {
  3651. if( pickups[ j ][ creation_time ] < lowest_time )
  3652. {
  3653. lowest_time = pickups[ j ][ creation_time ];
  3654. _id = j;
  3655. }
  3656. }
  3657.  
  3658. DestroyPickupEx( _id );
  3659. KillTimer( pickups[ _id ][ timer ] );
  3660.  
  3661. p = CreatePickup( weapons[ weapon_slots[ i ][ 0 ] ], PICKUP_TYPE, px + floatsin(angle,degrees) * (used_weapon_slots2/2 + 1.0), py + floatcos(angle,degrees) * (used_weapon_slots2/2 + 1.0), pz );
  3662. }
  3663. pickups[ p ][ creation_time ] = mktime(hour,minute,second,day,month,year);
  3664. pickups[ p ][ weapon ] = weapon_slots[ i ][ 0 ];
  3665. pickups[ p ][ ammo ] = weapon_slots[ i ][ 1 ];
  3666. #if MAX_DROP_AMOUNT != -1
  3667. if( pickups[ p ][ ammo ] > MAX_DROP_AMOUNT )
  3668. {
  3669. pickups[ p ][ ammo ] = MAX_DROP_AMOUNT;
  3670. }
  3671. #endif
  3672. pickups[ p ][ timer ] = SetTimerEx("DestroyPickupEx", MAX_DROP_LIFETIME * 1000, 0, "i", p);
  3673. }
  3674. }
  3675. }
  3676.  
  3677.  
  3678. // by mabako :D
  3679. time(hour,minute,second,day,month,year) {
  3680. new timestamp;
  3681. timestamp = second;
  3682. timestamp += minute * 60;
  3683. timestamp += hour * 3600;
  3684.  
  3685. new days_of_month[12];
  3686. if(((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0)) {
  3687. days_of_month = {31,29,31,30,31,30,31,31,30,31,30,31}; // Schaltjahr
  3688. } else {
  3689. days_of_month = {31,28,31,30,31,30,31,31,30,31,30,31}; // keins
  3690. }
  3691. new days_this_year = 0;
  3692. days_this_year = day;
  3693. if(month > 1) { // No January Calculation, because its always the 0 past months
  3694. for(new i=0; i<month-1;i++) {
  3695. days_this_year += days_of_month[i];
  3696. }
  3697. }
  3698. timestamp += days_this_year * 86400;
  3699.  
  3700. for(new j=1970;j<year;j++) {
  3701. timestamp += 31536000;
  3702. if(((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0)) timestamp += 86400; // Schaltjahr + 1 Tag
  3703. }
  3704. return timestamp;
  3705. }
  3706.  
  3707. public DestroyPickupEx( p )
  3708. {
  3709. DestroyPickup( p );
  3710. pickups[ p ][ creation_time ] = 0;
  3711. pickups[ p ][ weapon ] = 0;
  3712. pickups[ p ][ ammo ] = 0;
  3713. }
  3714.  
  3715.  
  3716.  
  3717.  
  3718. public OnPlayerPickUpPickup( playerid, pickupid )
  3719. {
  3720. if( pickups[ pickupid ][ creation_time ] != 0 )
  3721. {
  3722. GivePlayerWeapon( playerid, pickups[ pickupid ][ weapon ], pickups[ pickupid ][ ammo ] );
  3723. }
  3724. return 1;
  3725. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement