Advertisement
Guest User

Gamemode PlayFacil DM

a guest
Feb 20th, 2013
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 121.93 KB | None | 0 0
  1. #include <a_samp>
  2. #include <core>
  3. #include <float>
  4. #include <dini>
  5.  
  6. #pragma tabsize 0
  7.  
  8. #define COLOR_WHITE 0xFFFFFFAA
  9. #define COR_3DLABEL 0x00FF00FF
  10. #define COLOR_GRAD2 0xBFC0C2FF
  11. #define azulagua 0x0080FFAA
  12. #define BLANCO 0xEFEFF7AA
  13. #define DIALOG_REGISTRO 1
  14. #define DIALOG_LOGIN 2
  15. #define CONTAS "Contas/%s.ini"
  16. #define RESPAWN_TIME 3000000
  17. #define COR_AZTECAS 0x2641FEAA
  18. #define CORS 0x00FF00FF
  19. #define COLOR_DBLUE 0x0080FFAA
  20. #define TEAM_CYAN_COLOR 0xA92BF6F6
  21.  
  22. #define TXT_RLOGIN "{FFFFFF}Seja Bem Vindo Novamente\nStatus Da Conta {00FF00}Registrado\n{FFFFFF}Nick: %s \n"
  23. #define TXT_LOGIN "{FFFFFF}Seja Bem Vindo\nStatus Da Conta {00FF00}Registrado\n{FFFFFF}Nick: %s \n"
  24. #define TXT_NREGISTER "{FFFFFF}Olá, Você Não Esta {FF0000}Registrado\n{FFFFFF}Nick: %s \nDigite Uma Senha"
  25. #define TXT_RL "{FFFFFF}Pronto você esta {00FF00}registrado \n{FFFFFF}Agora digite Sua Senha Para Logar-Se"
  26. #define TXT_TUTO "{FFFFFF}As Regras Aqui são simples! {FF0000}NÃO {FFFFFF}use Xiter/Hacker/Cleo. Tenha um Jogo Limpo! Bom Jogo"
  27.  
  28. new Text:globC854;
  29. new Text:var3;
  30. new Text:players;
  31. new Text:Textdraw0;
  32. new Text:Textdraw1;
  33. new Text:Forum;
  34. new sendername[MAX_PLAYER_NAME];
  35. new strvinny[256];
  36. new Text:ImagemEntrada;
  37. new Text:Imortal;
  38. new Text:Comandos;
  39. new glob4C6C[200];
  40. new glob4C6A[200];
  41. new XiterCrashando[MAX_PLAYERS];
  42. new antifakekill[MAX_PLAYERS];
  43. new TotalMatou[MAX_PLAYERS];
  44. new TotalMorreu[MAX_PLAYERS];
  45. new TotalLogou[MAX_PLAYERS];
  46. new globDE40[200];
  47. new globD1C0[200];
  48. new CopCarros[135];
  49. new BallasCarros[13];
  50. new GrooveCar[11];
  51. new AztecasCar[12];
  52. new VagosCar[13];
  53. new CarrosHit[15];
  54. new Evento;
  55.  
  56. forward SalvarLevel(playerid);
  57. forward CarregarLevel(playerid);
  58. forward hora(playerid);
  59. forward AvisoAdmin(COLOR,const string[]);
  60. forward IsACopCar(carid);
  61. forward IsABallasCar(carid);
  62. forward IsAGrooveCar(carid);
  63. forward IsAAztecaCar(carid);
  64. forward IsAAzteca(playerid);
  65. forward IsAVagosCar(carid);
  66. forward IsAHitCar(carid);
  67.  
  68. new Cores[] =
  69. {
  70. 0xFFD700AA,
  71. 0x1E90FFAA,
  72. 0xFFB973AA,
  73. 0x5EFFBCAA,
  74. 0xFF80FFAA
  75. };
  76. new Mensagens[][128] = {
  77. "BPF SERVER:{FFFFFF} VISITE NOSSO FÓRUM: playfacildm.forumeiros.com",
  78. "BPF SERVER:{FFFFFF} TEM DUVIDAS? DIGITE /COMANDOS OU /TELEPORTES",
  79. "BPF SERVER:{FFFFFF} ESTAMOS TRABALHANDO PARA QUE SEU FUTURO AQUI SEJA MELHOR.",
  80. "BPF SERVER:{FFFFFF} CHAME SEUS AMIGOS PARA JOGAR AQUI, VOCÊ AJUDARÁ O SERVIDOR A CRESCER!",
  81. "BPF SERVER:{FFFFFF} NOSSOS ADMINS ESTAO TRABALHANDO PARA LHE ATENDER MELHOR.",
  82. "BPF SERVER:{FFFFFF} VOCÊ FOI MALTRATADO? PUNIDO INJUSTAMENTE? OFENDIDO? VÁ NO /FORUM E DENUNCIE!.",
  83. "BPF SERVER:{FFFFFF} SE CADASTRE EM NOSSO FÓRUM, E UMA DAS PARTES PRINCIPAIS DO SERVIDOR /FORUM!",
  84. "BPF SERVER:{FFFFFF} VISITE NOSSO Raidcall: ID: 5205266.",
  85. "BPF SERVER:{FFFFFF} CONFIRA NOSSO SISTEMA DE NITRO INFINITO.",
  86. "BPF SERVER:{FFFFFF} ACHOU O SERVIDOR NA INTERNET? ADICIONE NOSSO IP NOS FAVORITOS: 199.119.226.172:7792"
  87. };
  88. forward SendMensagens();
  89. public SendMensagens()
  90. {
  91. new gstring[128];
  92. new random1 = random(sizeof(Mensagens));
  93. new random2 = random(sizeof(Cores));
  94. format(gstring, sizeof(gstring), "%s", Mensagens[random1]);
  95. SendClientMessageToAll(Cores[random2],gstring);
  96. return 1;
  97. }
  98.  
  99. //======================[ Anti Money Hacker]====================================
  100. new NumGranaVinny[MAX_PLAYERS];
  101. stock GranaVinny(playerid, ammount)return NumGranaVinny[playerid] += ammount;
  102. stock GetGranaVinny(playerid)return NumGranaVinny[playerid];
  103. stock ResetGranaVinny(playerid)return NumGranaVinny[playerid] = 0;
  104. forward CheckGranaVinny();
  105. public CheckGranaVinny() { for(new i;i<MAX_PLAYERS;i++) { ResetPlayerMoney( i); GivePlayerMoney(i, GetGranaVinny(i)); } }
  106. //=============================================================================
  107. stock PlayerName(playerid)
  108. {
  109. new Name[MAX_PLAYER_NAME];
  110. GetPlayerName(playerid, Name, MAX_PLAYER_NAME);
  111. return Name;
  112. }
  113. main()
  114. {
  115. print("\n----------------------------------");
  116. print(" Bare Script\n");
  117. print("----------------------------------\n");
  118. }
  119.  
  120. public OnPlayerConnect(playerid)
  121. {
  122. new gstring[128];
  123. format(gstring,sizeof(gstring),"{FFFF00}[Atenção] {00FFFF}%s [ID:%d] {FFFF00}entrou no Servidor {FF0000}Players Online [ {00FFFF}%d {FF0000}]", PlayerName(playerid),playerid,ContarJogadores());
  124. SendClientMessageToAll(0xFF8080AA,gstring);
  125. var3 = TextDrawCreate(0.0, 435.0, " ~y~Brasil ~r~PlayFacil ~b~DM");
  126. TextDrawUseBox(var3, true);
  127. TextDrawFont(var3, 2);
  128. TextDrawBoxColor(var3, 0x0000007E);
  129. TextDrawBackgroundColor(var3, 0x0000007E);
  130. TextDrawUseBox(var3, true);
  131. TextDrawShowForPlayer(playerid, var3);
  132. TextDrawShowForPlayer(playerid, globC854);
  133.  
  134. Forum = TextDrawCreate(0.0, 435.0, " www.playfacildm.forumeiros.com");
  135. TextDrawFont(Forum, 2);
  136. TextDrawLetterSize(Forum, 0.5000, 1.0000);
  137. TextDrawBackgroundColor(var3, 0x0000007E);
  138. TextDrawShowForPlayer(playerid, Forum);
  139. TextDrawShowForPlayer(playerid, globC854);
  140.  
  141. Comandos = TextDrawCreate(0.0, 418.0, " ~y~/comandos /teleportes /kit /kit01 /colete /vida /jetpack");
  142. TextDrawFont(Comandos, 3);
  143. TextDrawBackgroundColor(Comandos, 0x0000007E);
  144. TextDrawShowForPlayer(playerid, Comandos);
  145. TextDrawShowForPlayer(playerid, globC854);
  146.  
  147. new strings[15];
  148. format(strings, 15, "%d/50",GetOnLinePlayers());
  149. TextDrawSetString(players, strings);
  150. TextDrawShowForPlayer(playerid, players);
  151.  
  152. TextDrawShowForPlayer(playerid, Textdraw0);//nome da draw no caso a que definimos la emcima
  153. TextDrawShowForPlayer(playerid, Textdraw1);
  154. GranaVinny(playerid, 50000);
  155.  
  156. new Nome[MAX_PLAYER_NAME];
  157. GetPlayerName(playerid, Nome, sizeof(Nome));
  158. new String[100];
  159. format(String, sizeof(String), CONTAS, Nome);
  160. if(!dini_Exists(String))
  161. {
  162. format(String, sizeof(String), TXT_NREGISTER, Nome);
  163. ShowPlayerDialog(playerid, DIALOG_REGISTRO, 3, "Registro", String, "Registrar", "Cancelar");
  164. }
  165. else
  166. {
  167. format(String, sizeof(String),TXT_LOGIN, Nome);
  168. ShowPlayerDialog(playerid, DIALOG_LOGIN, 3, "Registro Com Sucesso", String, "Logar", "Cancelar");
  169. }
  170. return 1;
  171. }
  172. public OnPlayerCommandText(playerid, cmdtext[])
  173. {
  174. new idx;
  175. new cmd[256];
  176. new gstring[128];
  177.  
  178. cmd = strtok(cmdtext, idx);
  179.  
  180. if(strcmp(cmd, "/online", true) == 0) {
  181. if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Você não tem Autorização Para Usar Esse Comando");
  182. format(gstring, sizeof(gstring), "{FFFFFF}Mata Mata Info: {FF0000}Players Online:{80E3FF} [{80FF80} %d {80E3FF}]", ContarJogadores());
  183. SendClientMessageToAll(0xFF8080FF, gstring);
  184. return 1;
  185. }
  186. if(strcmp(cmd, "/ahelp", true) == 0 || strcmp(cmd, "/aa", true) == 0 || strcmp(cmd, "/adminajuda", true) == 0)
  187. {
  188. if(IsPlayerConnected(playerid))
  189. {
  190. SendClientMessage(playerid, COLOR_WHITE, "|______________ Ajuda Admin ______________|");
  191. if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Você não tem Autorização Para Usar Esse Comando");
  192. {
  193.  
  194. SendClientMessage(playerid, TEAM_CYAN_COLOR, "*ADMIN *** /gmx /av /criarevento /parararevento /rcon kick /rcon ban");
  195. }
  196. }
  197. return 1;
  198. }
  199. if(strcmp(cmd, "/m", true) == 0) {
  200. if(globDE40[playerid] == 2 || globDE40[playerid] == 3 || globDE40[playerid] == 4 || globDE40[playerid] == 5)
  201. {
  202. SendClientMessage(playerid, COLOR_WHITE, " Você não é um policial!");
  203. return 1;
  204. }
  205. new Nome[MAX_PLAYER_NAME];
  206. GetPlayerName(playerid, Nome, sizeof(Nome));
  207. new message[256];
  208. strmid(message, cmdtext, 3, strlen(cmdtext));
  209. GetPlayerName(playerid, Nome, sizeof(Nome));
  210. if(!strlen(message))
  211. {
  212. SendClientMessage(playerid, 0xFF0606FF, "|| Use /m [texto] ||");
  213. }
  214. else
  215. {
  216. new string[64];
  217. format(string, sizeof(string), "[MEGAFONE] %s(id:%d) {FFFF00}%s ",Nome,playerid,message);
  218. printf(string);
  219. SendClientMessageToAll(-1, string);
  220. GivePlayerMoney(playerid,0);
  221. }
  222. return 1;
  223. }
  224. if(strcmp(cmd, "/menu", true) == 0) {
  225. {
  226. ShowPlayerDialog(playerid,04041,DIALOG_STYLE_LIST,"{FF0000}Loja De armas -Humanos-","Desert Eagle ($5000)\nGranada ($5000)\nMP5 ($5000)\nM4 ($10000)\nAK-47 ($9000)\nSpas12 Shotgun ($10000)\nMolotov (10000)\nSniper ($12000)\nRPG ($12000)\nVida Extra ($5000)\nSkin Especial 1($5000)\nSkin Especial 2($5000)\nSkin Especial 3($5000)\nTeleporte Pref($5000)","Confirmar","Cancelar");
  227. }
  228. return 1;
  229. }
  230. if(strcmp(cmdtext,"/rc", true) == 0)
  231. {
  232. for(new x = 0; x < MAX_VEHICLES ; x++)
  233. {
  234. SetVehicleToRespawn(x);
  235. }
  236. return 1;
  237. }
  238. if(strcmp(cmd, "/kit", true) == 0) {
  239. if(GetPlayerMoney(playerid) < 2500) return SendClientMessage(playerid, COR_3DLABEL, "[LOJA] Dinheiro Insuficiente!");
  240. GivePlayerMoney(playerid, -2500);
  241. GivePlayerWeapon(playerid, 24, 500);
  242. GivePlayerWeapon(playerid, 25, 500);
  243. GivePlayerWeapon(playerid, 29, 500);
  244. GivePlayerWeapon(playerid, 31, 500);
  245. GivePlayerWeapon(playerid, 34, 500);
  246. GranaVinny(playerid, -5000);
  247. format(gstring, sizeof(gstring), "{00FFFF}%s {FFFF00}Comprou seu kit (/kit)", PlayerName(playerid));
  248. SendClientMessageToAll(0xFF8080FF, gstring);
  249. return 1;
  250. }
  251. if(strcmp(cmd, "/kitadmdono", true) == 0) {
  252. if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Você não tem Autorização Para Usar Esse Comando");
  253. GivePlayerWeapon(playerid, 24, 500);
  254. GivePlayerWeapon(playerid, 25, 500);
  255. GivePlayerWeapon(playerid, 29, 500);
  256. GivePlayerWeapon(playerid, 31, 500);
  257. GivePlayerWeapon(playerid, 34, 500);
  258. SetPlayerHealth(playerid, 100);
  259. SetPlayerArmour(playerid, 100);
  260. return 1;
  261. }
  262. if(strcmp(cmd, "/kit01", true) == 0) {
  263. if(GetPlayerMoney(playerid) < 2500) return SendClientMessage(playerid, COR_3DLABEL, "[LOJA] Dinheiro Insuficiente!");
  264. GivePlayerMoney(playerid, -2500);
  265. GivePlayerWeapon(playerid, 23, 500);
  266. GivePlayerWeapon(playerid, 26, 500);
  267. GivePlayerWeapon(playerid, 28, 500);
  268. GivePlayerWeapon(playerid, 30, 500);
  269. GivePlayerWeapon(playerid, 33, 500);
  270. format(gstring, sizeof(gstring), "{00FFFF}%s {FFFF00}Comprou seu kit 01 (/kit01)", PlayerName(playerid));
  271. SendClientMessageToAll(0xFF8080FF, gstring);
  272. return 1;
  273. }
  274. if (strcmp("/godc", cmdtext, true, 10) == 0)
  275. {
  276. if (IsPlayerInAnyVehicle(playerid)) {
  277. SetVehicleHealth(GetPlayerVehicleID(playerid),999999);
  278. SendClientMessage(playerid, COLOR_GRAD2, "Carro em God Mode");
  279. } else {
  280. SendClientMessage(playerid, COLOR_GRAD2,"Erro: Você não está em um veículo!");
  281. }
  282. return 1;
  283. }
  284. if(strcmp(cmd, "/kit02", true) == 0) {
  285. if(GetPlayerMoney(playerid) < 2500) return SendClientMessage(playerid, COR_3DLABEL, "[LOJA] Dinheiro Insuficiente!");
  286. GivePlayerMoney(playerid, -2500);
  287. GivePlayerWeapon(playerid, 22, 500);
  288. GivePlayerWeapon(playerid, 32, 500);
  289. GivePlayerWeapon(playerid, 27, 500);
  290. GivePlayerWeapon(playerid, 30, 500);
  291. GivePlayerWeapon(playerid, 34, 500);
  292. GivePlayerWeapon(playerid, 04, 500);
  293. SetPlayerArmour(playerid, 100);
  294. format(gstring, sizeof(gstring), "{00FFFF}%s {FFFF00}Comprou seu kit 02 (/kit02)", PlayerName(playerid));
  295. SendClientMessageToAll(0xFF8080FF, gstring);
  296. return 1;
  297. }
  298. if(strcmp(cmd, "/trabalhar", true) == 0) {
  299. if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Você não tem Autorização Para Usar Esse Comando");
  300. SetPlayerHealth(playerid, 9999);
  301. SetPlayerSkin(playerid, 217);
  302. SetPlayerColor(playerid, 0xFF80FF);
  303. format(gstring, sizeof(gstring), "{00FFFF}Admin: %s {FF1493}Entrou em Modo Trabalho! Caso Precise de Ajuda Use: /relatorio [Texto]", PlayerName(playerid));
  304. SendClientMessageToAll(0xFF8080FF, gstring);
  305. return 1;
  306. }
  307. if(strcmp(cmd, "/gmx", true) == 0) {
  308. if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Você não tem Autorização Para Usar Esse Comando");
  309. GetPlayerName(playerid,sendername,sizeof(sendername));
  310. new string[128];
  311. format(string,sizeof(string), "AdmCmd: %s Reiniciou o servidor (GMX), AGUARDE!.",sendername);
  312. SendClientMessageToAll(COR_3DLABEL, string);
  313. for( new i = 0; i < MAX_PLAYERS; i++ )
  314. ShowPlayerDialog(i, 156, DIALOG_STYLE_MSGBOX, "{FF8000}Servidor Reiniciando", "{00FF00}O servidor está sendo Reiniciado(GMX).\n\n{8080FF}Não saia do Servidor!!!\n\n{FFFF00}Por Favor Aguarde...\n\n{FF8000}Voltaremos em Segundos", "OK", "");
  315. GameModeExit();
  316. for( new i = 0; i < MAX_PLAYERS; i++ )
  317. SalvarPlayer(i);
  318. return 1;
  319. }
  320. if (strcmp(cmd, "/voar", true) == 0)
  321. {
  322. if(IsPlayerConnected(playerid))
  323. {
  324. if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Você não tem Autorização Para Usar Esse Comando");
  325. {
  326. new Float:px, Float:py, Float:pz, Float:pa;
  327. GetPlayerFacingAngle(playerid,pa);
  328. if(pa >= 0.0 && pa <= 22.5) //n1
  329. {
  330. GetPlayerPos(playerid, px, py, pz);
  331. SetPlayerPos(playerid, px, py+30, pz+5);
  332. }
  333. else if(pa >= 332.5 && pa < 0.0) //n2
  334. {
  335. GetPlayerPos(playerid, px, py, pz);
  336. SetPlayerPos(playerid, px, py+30, pz+5);
  337. }
  338. else if(pa >= 22.5 && pa <= 67.5) //nw
  339. {
  340. GetPlayerPos(playerid, px, py, pz);
  341. SetPlayerPos(playerid, px-15, py+15, pz+5);
  342. }
  343. else if(pa >= 67.5 && pa <= 112.5) //w
  344. {
  345. GetPlayerPos(playerid, px, py, pz);
  346. SetPlayerPos(playerid, px-30, py, pz+5);
  347. }
  348. else if(pa >= 112.5 && pa <= 157.5) //sw
  349. {
  350. GetPlayerPos(playerid, px, py, pz);
  351. SetPlayerPos(playerid, px-15, py-15, pz+5);
  352. }
  353. else if(pa >= 157.5 && pa <= 202.5) //s
  354. {
  355. GetPlayerPos(playerid, px, py, pz);
  356. SetPlayerPos(playerid, px, py-30, pz+5);
  357. }
  358. else if(pa >= 202.5 && pa <= 247.5)//se
  359. {
  360. GetPlayerPos(playerid, px, py, pz);
  361. SetPlayerPos(playerid, px+15, py-15, pz+5);
  362. }
  363. else if(pa >= 247.5 && pa <= 292.5)//e
  364. {
  365. GetPlayerPos(playerid, px, py, pz);
  366. SetPlayerPos(playerid, px+30, py, pz+5);
  367. }
  368. else if(pa >= 292.5 && pa <= 332.5)//e
  369. {
  370. GetPlayerPos(playerid, px, py, pz);
  371. SetPlayerPos(playerid, px+15, py+15, pz+5);
  372. }
  373. else
  374. {
  375. GetPlayerPos(playerid, px, py, pz);
  376. SetPlayerPos(playerid, px+15, py+15, pz+5);
  377. }
  378.  
  379. }
  380. }
  381. return 1;
  382. }
  383. if(strcmp(cmd, "/criarevento", true) == 0)
  384. {
  385. if(IsPlayerConnected(playerid))
  386. {
  387. if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Você não tem Autorização Para Usar Esse Comando");
  388. {
  389. if(Evento == 1)
  390. {
  391. SendClientMessage(playerid, CORS, "Já está decorrendo um evento use, /pararevento para abrir outro!");
  392. return 1;
  393. }
  394. if(Evento == 0)
  395. {
  396. SendClientMessage(playerid, CORS, "Você está criando um evento e pedindo a todos os players para ir.");
  397. for(new i = 0; i < MAX_PLAYERS; i++)
  398. {
  399. if(IsPlayerConnected(i))
  400. {
  401. Evento = 1;
  402. new string[100];
  403. GetPlayerName(playerid, sendername, sizeof(sendername));
  404. format(string,sizeof(string),"BWS Evento: O Admin %s está chamando todos para um Evento\nClique em IR para ir ao Evento\nClique em Não ir para não ir ao evento!",sendername);
  405. ShowPlayerDialog(i, 11, DIALOG_STYLE_MSGBOX, "EVENTO INICIADO", string, "Ir", "Não ir");
  406. new Float:vc,Float:vy,Float:vz;
  407. GetPlayerPos(playerid,vc,vy,vz);
  408. }
  409. }
  410. }
  411. }
  412. return 1;
  413. }
  414. }
  415. if(strcmp(cmd, "/pararevento", true) == 0)
  416. {
  417. if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Você não tem Autorização Para Usar Esse Comando");
  418. {
  419. if(Evento == 0)
  420. {
  421. SendClientMessage(playerid, COLOR_DBLUE, "Não está ativo um evento atualmente, use /criarevento para criar um!");
  422. return 1;
  423. }
  424. if(Evento == 1)
  425. {
  426. Evento = 0;
  427. GetPlayerName(playerid, sendername, sizeof(sendername));
  428. new string[100];
  429. format(string, sizeof(string), "[Evento BWS]: O Admin %s parou um evento que esta-va decorrendo.", sendername);
  430. SendClientMessageToAll(0xFF6262AA,string);
  431. }
  432. }
  433. return 1;
  434. }
  435. if(strcmp(cmd, "/av", true) == 0) {
  436. if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Você não tem Autorização Para Usar Esse Comando");
  437. GetPlayerName(playerid, sendername, sizeof(sendername));
  438. new length = strlen(cmdtext);
  439. while ((idx < length) && (cmdtext[idx] <= ' '))
  440. {
  441. idx++;
  442. }
  443. new offset = idx;
  444. new result[100];
  445. while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  446. {
  447. result[idx - offset] = cmdtext[idx];
  448. idx++;
  449. }
  450. result[idx - offset] = EOS;
  451. if(!strlen(result))
  452. {
  453. SendClientMessage(playerid, COLOR_GRAD2, "USE: (/av)isar [texto]");
  454. return 1;
  455. }
  456. SendClientMessageToAll(0x95FFDFAA,"**~~*~*~*~*~*~*~*|{00FF00}B{FFD700}.P.{1E90FF}F{95FFDF}| Aviso Da Administração |{00FF00}B{FFD700}.P.{1E90FF}F{95FFDF}|*~*~*~*~*~*~*~~**");
  457. format(strvinny, sizeof(strvinny), "Admin {FF80FF}%s:{00FF00} %s", sendername, result);
  458. SendClientMessageToAll(0x80F0FFFF, strvinny);
  459. return 1;
  460. }
  461. if(strcmp(cmd, "/colete", true) == 0) {
  462. if(GetPlayerMoney(playerid) < 1000) return SendClientMessage(playerid, COR_3DLABEL, "[LOJA] Dinheiro Insuficiente!");
  463. GivePlayerMoney(playerid, -1000);
  464. SetPlayerArmour(playerid, 100.0);
  465. format(gstring, sizeof(gstring), "{00FFFF}%s {FFFF00}Comprou Colete (/colete)", PlayerName(playerid));
  466. SendClientMessageToAll(0xFF8080FF, gstring);
  467. return 1;
  468. }
  469. if(strcmp(cmd, "/jetpack", true) == 0) {
  470. if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, COR_3DLABEL, "[LOJA] Dinheiro Insuficiente!");
  471. GivePlayerMoney(playerid, -5000);
  472. SetPlayerSpecialAction(playerid, 2);
  473. format(gstring, sizeof(gstring), "{00FFFF}%s {FFFF00}Comprou um Jetpack (/jetpack)", PlayerName(playerid));
  474. SendClientMessageToAll(0xFF8080FF, gstring);
  475. return 1;
  476. }
  477. if(strcmp(cmd, "/morro", true) == 0) {
  478. SetPlayerPos(playerid, 2166.5967,-997.5211,62.9637);
  479. format(gstring, sizeof(gstring), "{00FFFF}%s {FFFF00}Foi para o Morro (/morro)", PlayerName(playerid));
  480. SendClientMessageToAll(0xFF8080FF, gstring);
  481. return 1;
  482. }
  483. if(strcmp(cmd, "/igreja", true) == 0) {
  484. SetPlayerPos(playerid, 2229.3865,-1333.9766,23.9817);
  485. format(gstring, sizeof(gstring), "{00FFFF}%s {FFFF00}Foi para a Igreja (/igreja)", PlayerName(playerid));
  486. SendClientMessageToAll(0xFF8080FF, gstring);
  487. return 1;
  488. }
  489. if(strcmp(cmd, "/pista", true) == 0) {
  490. SetPlayerPos(playerid, 1923.2849,-1404.8607,13.5703);
  491. format(gstring, sizeof(gstring), "{00FFFF}%s {FFFF00}Foi para a Pista de Skate (/pista)", PlayerName(playerid));
  492. SendClientMessageToAll(0xFF8080FF, gstring);
  493. return 1;
  494. }
  495. if(strcmp(cmd, "/rampa", true) == 0) {
  496. SetPlayerPos(playerid, 599.2275,561.4962,276.3844);
  497. format(gstring, sizeof(gstring), "{00FFFF}%s {FFFF00}Foi para a Mega Rampa (/rampa)", PlayerName(playerid));
  498. SendClientMessageToAll(0xFF8080FF, gstring);
  499. return 1;
  500. }
  501. if(strcmp(cmd, "/pref", true) == 0) {
  502. SetPlayerPos(playerid, 1479.6299,-1742.6183,13.5469);
  503. format(gstring, sizeof(gstring), "{00FFFF}%s {FFFF00}Foi para a Prefeitura (/pref)", PlayerName(playerid));
  504. SendClientMessageToAll(0xFF8080FF, gstring);
  505. return 1;
  506. }
  507. if(strcmp(cmd, "/corrida", true) == 0) {
  508. SetPlayerPos(playerid, 2959.0925,-2346.7673,5.3511);
  509. format(gstring, sizeof(gstring), "{00FFFF}%s {FFFF00}Foi para a Corrida Maluca (/corrida)", PlayerName(playerid));
  510. SendClientMessageToAll(0xFF8080FF, gstring);
  511. return 1;
  512. }
  513. if(strcmp(cmd, "/drop", true) == 0) {
  514. SetPlayerPos(playerid, -3751.1413,1910.2363,968.2881);
  515. format(gstring, sizeof(gstring), "{00FFFF}%s {FFFF00}Foi para o Drop (/drop)", PlayerName(playerid));
  516. SendClientMessageToAll(0xFF8080FF, gstring);
  517. return 1;
  518. }
  519. if(strcmp(cmd, "/drop2", true) == 0) {
  520. SetPlayerPos(playerid, 2901.4392,1231.8923,622.7344);
  521. format(gstring, sizeof(gstring), "{00FFFF}%s {FFFF00}Foi para o Drop (/drop2)", PlayerName(playerid));
  522. SendClientMessageToAll(0xFF8080FF, gstring);
  523. return 1;
  524. }
  525. if(strcmp(cmd, "/praia", true) == 0) {
  526. SetPlayerPos(playerid, 254.0881,-1791.0454,4.3064);
  527. format(gstring, sizeof(gstring), "{00FFFF}%s {FFFF00}Foi para a Praia (/praia)", PlayerName(playerid));
  528. SendClientMessageToAll(0xFF8080FF, gstring);
  529. return 1;
  530. }
  531. if(strcmp(cmd, "/roda", true) == 0) {
  532. SetPlayerPos(playerid, 376.1646,-2028.8054,7.8301);
  533. format(gstring, sizeof(gstring), "{00FFFF}%s {FFFF00}Foi para a Roda Gigante(/roda)", PlayerName(playerid));
  534. SendClientMessageToAll(0xFF8080FF, gstring);
  535. return 1;
  536. }
  537. if(strcmp(cmd, "/casarao", true) == 0) {
  538. SetPlayerPos(playerid, 1125.9242,-2036.9135,69.8837);
  539. format(gstring, sizeof(gstring), "{00FFFF}%s {FFFF00}Foi para o Casarão Abandonado (/casarao)", PlayerName(playerid));
  540. SendClientMessageToAll(0xFF8080FF, gstring);
  541. return 1;
  542. }
  543. if(strcmp(cmd, "/arenax1", true) == 0) {
  544. SetPlayerPos(playerid, -1316.0404,2475.9153,87.5062);
  545. format(gstring, sizeof(gstring), "{00FFFF}%s {FFFF00}Foi para a Arena X1 (/arenax1)", PlayerName(playerid));
  546. SendClientMessageToAll(0xFF8080FF, gstring);
  547. return 1;
  548. }
  549. if(strcmp(cmd, "/ls", true) == 0) {
  550. SetPlayerPos(playerid, 2491.2161,-1666.9324,13.3438);
  551. format(gstring, sizeof(gstring), "{00FFFF}%s {FFFF00}Foi para Los Santos (/ls)", PlayerName(playerid));
  552. SendClientMessageToAll(0xFF8080FF, gstring);
  553. return 1;
  554. }
  555. if(strcmp(cmd, "/kill", true) == 0) {
  556. SetPlayerHealth(playerid, 0);
  557. format(gstring, sizeof(gstring), "{00FFFF}%s {FFFF00}Se Suicidou (/kill)", PlayerName(playerid));
  558. SendClientMessageToAll(0xFF8080FF, gstring);
  559. return 1;
  560. }
  561. if(strcmp(cmd, "/vida", true) == 0) {
  562. SetPlayerHealth(playerid, 100);
  563. format(gstring, sizeof(gstring), "{00FFFF}%s {FFFF00}Comprou Vida (/vida)", PlayerName(playerid));
  564. SendClientMessageToAll(0xFF8080FF, gstring);
  565. return 1;
  566. }
  567. if(!strcmp("/virarpolicial",cmdtext))
  568. {
  569. if(IsPlayerInRangeOfPoint(playerid, 5.0, 242.8931,66.3955,1003.6406))
  570. {
  571. format(gstring, sizeof(gstring), "{00FFFF}%s {FFFF00}Virou um Policial", PlayerName(playerid));
  572. SendClientMessageToAll(0xFF8080FF, gstring);
  573. SetPlayerColor(playerid, 0x87CEFA);
  574. SetPlayerSkin(playerid, 280);
  575. }
  576. return 1;
  577. }
  578. if(!strcmp("/virarprefeito",cmdtext))
  579. {
  580. if(IsPlayerInRangeOfPoint(playerid, 5.0, 1481.2358,-1771.4418,18.7958))
  581. {
  582. format(gstring, sizeof(gstring), "{00FFFF}%s {FFFF00}Virou o Prefeito", PlayerName(playerid));
  583. SendClientMessageToAll(0xFF8080FF, gstring);
  584. SetPlayerColor(playerid, 0xAFEEEE);
  585. SetPlayerSkin(playerid, 147);
  586. }
  587. return 1;
  588. }
  589. if(!strcmp("/virarpalhaco",cmdtext))
  590. {
  591. if(IsPlayerInRangeOfPoint(playerid, 5.0, 370.2575,-2047.5573,7.8359))
  592. {
  593. format(gstring, sizeof(gstring), "{00FFFF}%s {FFFF00}Virou um Palhaço", PlayerName(playerid));
  594. SendClientMessageToAll(0xFF8080FF, gstring);
  595. SetPlayerColor(playerid, 0xF6000000);
  596. SetPlayerSkin(playerid, 264);
  597. }
  598. return 1;
  599. }
  600. if(!strcmp("/virargroove",cmdtext))
  601. {
  602. if(IsPlayerInRangeOfPoint(playerid, 5.0, 2495.3691,-1709.8701,1014.7422))
  603. {
  604. format(gstring, sizeof(gstring), "{00FFFF}%s {FFFF00}Virou um Membro da Groove Street", PlayerName(playerid));
  605. SendClientMessageToAll(0xFF8080FF, gstring);
  606. SetPlayerColor(playerid, 0xFF4500);
  607. SetPlayerSkin(playerid, 107);
  608. }
  609. return 1;
  610. }
  611. if(strcmp(cmd, "/comandos", true) == 0) {
  612. ShowPlayerDialog(playerid, 23, DIALOG_STYLE_MSGBOX, "{FFFFFF}Comandos", "{FFFFFF}Comandos Do servidor\n{FF0023} /teleportes\n/kit\n/kit01\n/jetpack\n/kill\n/colete\n/vida", "Ok", "");
  613. return 1;
  614. }
  615. if(strcmp(cmd, "/teleportes", true) == 0) {
  616. ShowPlayerDialog(playerid, 23, DIALOG_STYLE_MSGBOX, "{FFFFFF}Teleportes", "{FFFFFF} /morro\n/igreja\n/pista\n/pref\n/praia\n/casarao\n/rampa\n/drop\n/arenax1\n/corrida\n/roda", "Ok", "");
  617. return 1;
  618. }
  619. if(strcmp(cmd, "/carros", true) == 0) {
  620. ShowPlayerDialog(playerid, 23, DIALOG_STYLE_MSGBOX, "{FFFFFF}Lista de Carros", "{FFFFFF}Para Comprar um carro use /(nome do carro)\n{00FFFF}Turismo\nNRG-500\nElegy\nHeli\nSavanna\nBMX", "Ok", "");
  621. return 1;
  622. }
  623. if(strcmp("/nrg-500", cmdtext, true, 9) == 0)
  624. {
  625. GetPlayerName(playerid,sendername,sizeof(sendername));//identifica o nome do player que digitou o comando
  626. format(gstring,sizeof(gstring),"%s [ID:%d] Criou uma NRG-500 !! ",sendername,playerid);//formata a string que será enviada para os administradores
  627. AvisoAdmin(azulagua,gstring);
  628. new Float:PlayerX, Float:PlayerY, Float:PlayerZ, Float:PlayerA;
  629. GetPlayerPos(playerid,PlayerX,PlayerY,PlayerZ);
  630. GetPlayerFacingAngle(playerid, PlayerA);
  631. CreateVehicle(522, PlayerX,PlayerY,PlayerZ,PlayerA,3,1,60000);
  632. return 1;
  633. }
  634. if(strcmp("/turismo", cmdtext, true, 9) == 0)
  635. {
  636. GetPlayerName(playerid,sendername,sizeof(sendername));//identifica o nome do player que digitou o comando
  637. format(gstring,sizeof(gstring),"%s [ID:%d] Criou um Turismo!! ",sendername,playerid);//formata a string que será enviada para os administradores
  638. AvisoAdmin(azulagua,gstring);
  639. new Float:PlayerX, Float:PlayerY, Float:PlayerZ, Float:PlayerA;
  640. GetPlayerPos(playerid,PlayerX,PlayerY,PlayerZ);
  641. GetPlayerFacingAngle(playerid, PlayerA);
  642. CreateVehicle(451, PlayerX,PlayerY,PlayerZ,PlayerA,3,1,60000);
  643. return 1;
  644. }
  645. if(strcmp("/elegy", cmdtext, true, 9) == 0)
  646. {
  647. GetPlayerName(playerid,sendername,sizeof(sendername));//identifica o nome do player que digitou o comando
  648. format(gstring,sizeof(gstring),"%s [ID:%d] Criu um Elegy !! ",sendername,playerid);//formata a string que será enviada para os administradores
  649. AvisoAdmin(azulagua,gstring);
  650. new Float:PlayerX, Float:PlayerY, Float:PlayerZ, Float:PlayerA;
  651. GetPlayerPos(playerid,PlayerX,PlayerY,PlayerZ);
  652. GetPlayerFacingAngle(playerid, PlayerA);
  653. CreateVehicle(562, PlayerX,PlayerY,PlayerZ,PlayerA,3,1,60000);
  654. return 1;
  655. }
  656. if(strcmp("/heli", cmdtext, true, 9) == 0)
  657. {
  658. GetPlayerName(playerid,sendername,sizeof(sendername));//identifica o nome do player que digitou o comando
  659. format(gstring,sizeof(gstring),"%s [ID:%d] Criou um Heli !! ",sendername,playerid);//formata a string que será enviada para os administradores
  660. AvisoAdmin(azulagua,gstring);
  661. new Float:PlayerX, Float:PlayerY, Float:PlayerZ, Float:PlayerA;
  662. GetPlayerPos(playerid,PlayerX,PlayerY,PlayerZ);
  663. GetPlayerFacingAngle(playerid, PlayerA);
  664. CreateVehicle(487, PlayerX,PlayerY,PlayerZ,PlayerA,3,1,60000);
  665. return 1;
  666. }
  667. if(strcmp("/savanna", cmdtext, true, 9) == 0)
  668. {
  669. GetPlayerName(playerid,sendername,sizeof(sendername));//identifica o nome do player que digitou o comando
  670. format(gstring,sizeof(gstring),"%s [ID:%d] Criou uma Savanna ",sendername,playerid);//formata a string que será enviada para os administradores
  671. AvisoAdmin(azulagua,gstring);
  672. new Float:PlayerX, Float:PlayerY, Float:PlayerZ, Float:PlayerA;
  673. GetPlayerPos(playerid,PlayerX,PlayerY,PlayerZ);
  674. GetPlayerFacingAngle(playerid, PlayerA);
  675. CreateVehicle(567, PlayerX,PlayerY,PlayerZ,PlayerA,3,1,60000);
  676. return 1;
  677. }
  678. if(strcmp("/bmx", cmdtext, true, 9) == 0)
  679. {
  680. GetPlayerName(playerid,sendername,sizeof(sendername));//identifica o nome do player que digitou o comando
  681. format(gstring,sizeof(gstring),"%s [ID:%d] Criou uma BMX",sendername,playerid);//formata a string que será enviada para os administradores
  682. AvisoAdmin(azulagua,gstring);
  683. new Float:PlayerX, Float:PlayerY, Float:PlayerZ, Float:PlayerA;
  684. GetPlayerPos(playerid,PlayerX,PlayerY,PlayerZ);
  685. GetPlayerFacingAngle(playerid, PlayerA);
  686. CreateVehicle(481, PlayerX,PlayerY,PlayerZ,PlayerA,3,1,60000);
  687. return 1;
  688. }
  689. if(strcmp(cmdtext, "/destroirid", true) == 0)
  690. {
  691. new currentveh;
  692. currentveh = GetPlayerVehicleID(playerid);
  693. DestroyVehicle(currentveh);
  694. return 1;
  695. }
  696. return SendClientMessage(playerid,-1,"{FF0000}Comando invalido! {FFFF00}Digite /comandos");
  697. }
  698. public OnPlayerSpawn(playerid)
  699. {
  700.  
  701. SetPlayerInterior(playerid, 0);
  702. if(globDE40[playerid] == 1)
  703. {
  704. ResetPlayerWeapons(playerid);
  705. GivePlayerWeapon(playerid, 30, 450);
  706. GivePlayerWeapon(playerid, 32, 400);
  707. GivePlayerWeapon(playerid, 22, 50);
  708. GivePlayerWeapon(playerid, 14, 1);
  709. GivePlayerWeapon(playerid, 16, 5);
  710. GivePlayerWeapon(playerid, 26, 90);
  711. }
  712. else if(globDE40[playerid] == 2)
  713. {
  714. ResetPlayerWeapons(playerid);
  715. GivePlayerWeapon(playerid, 31, 450);
  716. GivePlayerWeapon(playerid, 28, 400);
  717. GivePlayerWeapon(playerid, 24, 50);
  718. GivePlayerWeapon(playerid, 5, 1);
  719. GivePlayerWeapon(playerid, 16, 5);
  720. GivePlayerWeapon(playerid, 26, 90);
  721. }
  722. else if(globDE40[playerid] == 3)
  723. {
  724. ResetPlayerWeapons(playerid);
  725. GivePlayerWeapon(playerid, 31, 450);
  726. GivePlayerWeapon(playerid, 29, 400);
  727. GivePlayerWeapon(playerid, 22, 50);
  728. GivePlayerWeapon(playerid, 3, 1);
  729. GivePlayerWeapon(playerid, 16, 5);
  730. GivePlayerWeapon(playerid, 27, 90);
  731. }
  732. else if(globDE40[playerid] == 4)
  733. {
  734. ResetPlayerWeapons(playerid);
  735. GivePlayerWeapon(playerid, 31, 450);
  736. GivePlayerWeapon(playerid, 29, 400);
  737. GivePlayerWeapon(playerid, 24, 50);
  738. GivePlayerWeapon(playerid, 4, 1);
  739. GivePlayerWeapon(playerid, 16, 5);
  740. GivePlayerWeapon(playerid, 27, 90);
  741. }
  742. else if(globDE40[playerid] == 5)
  743. {
  744. ResetPlayerWeapons(playerid);
  745. GivePlayerWeapon(playerid, 30, 450);
  746. GivePlayerWeapon(playerid, 32, 400);
  747. GivePlayerWeapon(playerid, 23, 50);
  748. GivePlayerWeapon(playerid, 8, 1);
  749. GivePlayerWeapon(playerid, 16, 5);
  750. GivePlayerWeapon(playerid, 26, 90);
  751. }
  752. else if(globDE40[playerid] == 6)
  753. {
  754. ResetPlayerWeapons(playerid);
  755. GivePlayerWeapon(playerid, 30, 450);
  756. GivePlayerWeapon(playerid, 32, 400);
  757. GivePlayerWeapon(playerid, 22, 50);
  758. GivePlayerWeapon(playerid, 9, 1);
  759. GivePlayerWeapon(playerid, 16, 5);
  760. GivePlayerWeapon(playerid, 26, 90);
  761. }
  762. else if(globDE40[playerid] == 7)
  763. {
  764. ResetPlayerWeapons(playerid);
  765. GivePlayerWeapon(playerid, 30, 450);
  766. GivePlayerWeapon(playerid, 32, 400);
  767. GivePlayerWeapon(playerid, 22, 50);
  768. GivePlayerWeapon(playerid, 15, 1);
  769. GivePlayerWeapon(playerid, 16, 5);
  770. GivePlayerWeapon(playerid, 27, 90);
  771. GivePlayerWeapon(playerid, 46, 1);
  772. GivePlayerWeapon(playerid, 34, 30);
  773. }
  774. else if(globDE40[playerid] == 8)
  775. {
  776. ResetPlayerWeapons(playerid);
  777. GivePlayerWeapon(playerid, 31, 450);
  778. GivePlayerWeapon(playerid, 28, 400);
  779. GivePlayerWeapon(playerid, 24, 50);
  780. GivePlayerWeapon(playerid, 7, 1);
  781. GivePlayerWeapon(playerid, 16, 5);
  782. GivePlayerWeapon(playerid, 25, 90);
  783. }
  784. else if(globDE40[playerid] == 9)
  785. {
  786. ResetPlayerWeapons(playerid);
  787. GivePlayerWeapon(playerid, 30, 450);
  788. GivePlayerWeapon(playerid, 32, 400);
  789. GivePlayerWeapon(playerid, 23, 50);
  790. GivePlayerWeapon(playerid, 2, 1);
  791. GivePlayerWeapon(playerid, 16, 5);
  792. GivePlayerWeapon(playerid, 26, 90);
  793. }
  794. else if(globDE40[playerid] == 10)
  795. {
  796. ResetPlayerWeapons(playerid);
  797. GivePlayerWeapon(playerid, 30, 450);
  798. GivePlayerWeapon(playerid, 28, 400);
  799. GivePlayerWeapon(playerid, 22, 50);
  800. GivePlayerWeapon(playerid, 6, 1);
  801. GivePlayerWeapon(playerid, 26, 90);
  802. GivePlayerWeapon(playerid, 16, 5);
  803. }
  804. else if(globDE40[playerid] == 11)
  805. {
  806. ResetPlayerWeapons(playerid);
  807. GivePlayerWeapon(playerid, 30, 450);
  808. GivePlayerWeapon(playerid, 28, 400);
  809. GivePlayerWeapon(playerid, 22, 50);
  810. GivePlayerWeapon(playerid, 15, 1);
  811. GivePlayerWeapon(playerid, 26, 90);
  812. GivePlayerWeapon(playerid, 16, 5);
  813. }
  814. else if(globDE40[playerid] == 12)
  815. {
  816. ResetPlayerWeapons(playerid);
  817. GivePlayerWeapon(playerid, 30, 450);
  818. GivePlayerWeapon(playerid, 28, 400);
  819. GivePlayerWeapon(playerid, 22, 50);
  820. GivePlayerWeapon(playerid, 15, 1);
  821. GivePlayerWeapon(playerid, 26, 90);
  822. GivePlayerWeapon(playerid, 16, 5);
  823. }
  824. else if(globDE40[playerid] == 13)
  825. {
  826. ResetPlayerWeapons(playerid);
  827. GivePlayerWeapon(playerid, 30, 450);
  828. GivePlayerWeapon(playerid, 28, 400);
  829. GivePlayerWeapon(playerid, 22, 50);
  830. GivePlayerWeapon(playerid, 15, 1);
  831. GivePlayerWeapon(playerid, 26, 90);
  832. GivePlayerWeapon(playerid, 16, 5);
  833. }
  834. else if(globDE40[playerid] == 14)
  835. {
  836. ResetPlayerWeapons(playerid);
  837. GivePlayerWeapon(playerid, 30, 450);
  838. GivePlayerWeapon(playerid, 28, 400);
  839. GivePlayerWeapon(playerid, 22, 50);
  840. GivePlayerWeapon(playerid, 15, 1);
  841. GivePlayerWeapon(playerid, 26, 90);
  842. GivePlayerWeapon(playerid, 16, 5);
  843. }
  844. else if(globDE40[playerid] == 15)
  845. {
  846. ResetPlayerWeapons(playerid);
  847. GivePlayerWeapon(playerid, 30, 450);
  848. GivePlayerWeapon(playerid, 28, 400);
  849. GivePlayerWeapon(playerid, 22, 50);
  850. GivePlayerWeapon(playerid, 15, 1);
  851. GivePlayerWeapon(playerid, 26, 90);
  852. GivePlayerWeapon(playerid, 16, 5);
  853. }
  854. else if(globDE40[playerid] == 16)
  855. {
  856. ResetPlayerWeapons(playerid);
  857. GivePlayerWeapon(playerid, 30, 450);
  858. GivePlayerWeapon(playerid, 28, 400);
  859. GivePlayerWeapon(playerid, 22, 50);
  860. GivePlayerWeapon(playerid, 15, 1);
  861. GivePlayerWeapon(playerid, 26, 90);
  862. GivePlayerWeapon(playerid, 16, 5);
  863. }
  864. else if(globDE40[playerid] == 17)
  865. {
  866. ResetPlayerWeapons(playerid);
  867. GivePlayerWeapon(playerid, 30, 450);
  868. GivePlayerWeapon(playerid, 28, 400);
  869. GivePlayerWeapon(playerid, 22, 50);
  870. GivePlayerWeapon(playerid, 15, 1);
  871. GivePlayerWeapon(playerid, 26, 90);
  872. GivePlayerWeapon(playerid, 16, 5);
  873. }
  874. else if(globDE40[playerid] == 18)
  875. {
  876. ResetPlayerWeapons(playerid);
  877. GivePlayerWeapon(playerid, 30, 450);
  878. GivePlayerWeapon(playerid, 28, 400);
  879. GivePlayerWeapon(playerid, 22, 50);
  880. GivePlayerWeapon(playerid, 15, 1);
  881. GivePlayerWeapon(playerid, 26, 90);
  882. GivePlayerWeapon(playerid, 16, 5);
  883. }
  884. else if(globDE40[playerid] == 19)
  885. {
  886. ResetPlayerWeapons(playerid);
  887. GivePlayerWeapon(playerid, 30, 450);
  888. GivePlayerWeapon(playerid, 28, 400);
  889. GivePlayerWeapon(playerid, 22, 50);
  890. GivePlayerWeapon(playerid, 15, 1);
  891. GivePlayerWeapon(playerid, 26, 90);
  892. GivePlayerWeapon(playerid, 16, 5);
  893. }
  894. return 0;
  895. }
  896. forward respawntime(playerid);
  897. public respawntime(playerid)
  898. {
  899. SetPlayerHealth(playerid, 100.0);
  900. SendClientMessage(playerid,0xFFFFFFFF,"Respawn Time Acabou!");
  901. glob4C6A[playerid] = 0;
  902. TextDrawHideForPlayer(playerid, Imortal);
  903. return 1;
  904. }
  905. public OnPlayerDeath(playerid, killerid, reason)
  906. {
  907. if(IsPlayerConnected(killerid))
  908. {
  909. TotalMatou[killerid]++;
  910. }
  911. TotalMorreu[playerid]++;
  912. SendDeathMessage(killerid,playerid,reason);
  913. PlayAudioStreamForPlayer(killerid, "http://goo.gl/8Gwxw");
  914. PlayAudioStreamForPlayer(playerid, "http://goo.gl/3MUZ2");
  915.  
  916. new var1[24];
  917. GetPlayerName(killerid, var1, 24);
  918. TogglePlayerSpectating(playerid, true);
  919. PlayerSpectatePlayer(playerid, killerid, 1);
  920. glob4C6C[playerid] = 1;
  921. GameTextForPlayer(playerid, "~r~Kill Cam", 7000, 3);
  922. SetTimerEx("OlhaAeQuemTeMatou", 7000, false, "d", playerid);
  923. SetPlayerScore(playerid,GetPlayerScore(playerid) - 1);
  924. SetPlayerScore(killerid,GetPlayerScore(killerid)+5 );
  925.  
  926. antifakekill[playerid] ++;
  927. SetTimerEx("antifakekill2", 1000,false,"i",playerid);
  928.  
  929. if(GetPlayerColor(playerid) == GetPlayerColor(killerid)) // Se o cor do morto for igual a do assassino
  930. {
  931. new Float:x, Float:y, Float:z;
  932. GetPlayerPos(playerid, x, y, z); // Aqui pegaremos a pos do JOGADOR
  933. // Aplicaremos a punição
  934. SetPlayerPos(killerid, x, y, z+200); // ERGUEREMOS ELE PRA QUE ELE CAIA E MORRA
  935. SetPlayerScore(killerid,GetPlayerScore(killerid) - 1); // tiramos 1 de score
  936. SendClientMessage(killerid, COR_3DLABEL, "Você foi teleportado pois não é permitido matar um jogador do mesmo time.");
  937. GivePlayerMoney(killerid,-2000); // tiramos 2k dele
  938. // FIM DA PUNIçÂO
  939. }
  940. return 1;
  941. }
  942. forward OlhaAeQuemTeMatou(playerid );
  943. public OlhaAeQuemTeMatou(playerid)
  944. {
  945. TogglePlayerSpectating(playerid, false);
  946. glob4C6C[playerid] = 0;
  947. return 1;
  948. }
  949. public OnPlayerRequestClass(playerid, classid)
  950. {
  951. if(!classid)
  952. {
  953. GameTextForPlayer(playerid, "~p~Policia Militar~n~~r~PRESSIONE SHIFT", 2000, 3);
  954. SetPlayerColor(playerid, 0x579FF9FF);
  955. globD1C0[playerid] = 0;
  956. globDE40[playerid] = 1;
  957. SetPlayerTeam(playerid, 0);
  958. }
  959. else if(classid == 1)
  960. {
  961. GameTextForPlayer(playerid, " ~p~ROTA ~r~PRESSIONE SHIFT", 2000, 3);
  962. SetPlayerColor(playerid, 0x10009BFF);
  963. globD1C0[playerid] = 1;
  964. globDE40[playerid] = 2;
  965. SetPlayerTeam(playerid, 1);
  966. }
  967. else if(classid == 2)
  968. {
  969. GameTextForPlayer(playerid, " ~p~ROTA ~r~PRESSIONE SHIFT", 2000, 3);
  970. SetPlayerColor(playerid, 0x10009BFF);
  971. globD1C0[playerid] = 1;
  972. globDE40[playerid] = 2;
  973. SetPlayerTeam(playerid, 1);
  974. }
  975. else if(classid == 3)
  976. {
  977. GameTextForPlayer(playerid, "~p~Exercito~n~~r~PRESSIONE SHIFT", 2000, 3);
  978. SetPlayerColor(playerid, 0x225B11FF);
  979. globD1C0[playerid] = 2;
  980. globDE40[playerid] = 3;
  981. SetPlayerTeam(playerid, 2);
  982. }
  983. else if(classid == 4)
  984. {
  985. GameTextForPlayer(playerid, " ~p~SAMU ~r~PRESSIONE SHIFT", 2000, 3);
  986. SetPlayerColor(playerid, 0xC99C9AFF);
  987. globD1C0[playerid] = 3;
  988. globDE40[playerid] = 4;
  989. SetPlayerTeam(playerid, 3);
  990. }
  991. else if(classid == 5)
  992. {
  993. GameTextForPlayer(playerid, " ~p~Los Aztecas ~r~PRESSIONE SHIFT", 2000, 3);
  994. SetPlayerColor(playerid, 0x2954FEFF);
  995. globD1C0[playerid] = 4;
  996. globDE40[playerid] = 5;
  997. SetPlayerTeam(playerid, 4);
  998. }
  999. else if(classid == 6)
  1000. {
  1001. GameTextForPlayer(playerid, " ~p~Los Aztecas ~r~PRESSIONE SHIFT", 2000, 3);
  1002. SetPlayerColor(playerid, 0x2954FEFF);
  1003. globD1C0[playerid] = 4;
  1004. globDE40[playerid] = 5;
  1005. SetPlayerTeam(playerid, 4);
  1006. }
  1007. else if(classid == 7)
  1008. {
  1009. GameTextForPlayer(playerid, " ~p~Taliban ~r~PRESSIONE SHIFT", 2000, 3);
  1010. SetPlayerColor(playerid, 0xF200CEFF);
  1011. globD1C0[playerid] = 5;
  1012. globDE40[playerid] = 6;
  1013. SetPlayerTeam(playerid, 5);
  1014. }
  1015. else if(classid == 8)
  1016. {
  1017. GameTextForPlayer(playerid, " ~p~Prefeito ~r~PRESSIONE SHIFT", 2000, 3);
  1018. SetPlayerColor(playerid, 0x62C1FBFF);
  1019. globD1C0[playerid] = 6;
  1020. globDE40[playerid] = 7;
  1021. SetPlayerTeam(playerid, 6);
  1022. }
  1023. else if(classid == 9)
  1024. {
  1025. GameTextForPlayer(playerid, " ~p~Prefeito ~r~PRESSIONE SHIFT", 2000, 3);
  1026. SetPlayerColor(playerid, 0x62C1FBFF);
  1027. globD1C0[playerid] = 6;
  1028. globDE40[playerid] = 7;
  1029. SetPlayerTeam(playerid, 6);
  1030. }
  1031. else if(classid == 10)
  1032. {
  1033. GameTextForPlayer(playerid, " ~p~Hitmans ~r~PRESSIONE SHIFT", 2000, 3);
  1034. SetPlayerColor(playerid, 0xA0A0A0FF);
  1035. globD1C0[playerid] = 7;
  1036. globDE40[playerid] = 8;
  1037. SetPlayerTeam(playerid, 7);
  1038. }
  1039. else if(classid == 11)
  1040. {
  1041. GameTextForPlayer(playerid, " ~p~Hitmans ~r~PRESSIONE SHIFT", 2000, 3);
  1042. SetPlayerColor(playerid, 0xA0A0A0FF);
  1043. globD1C0[playerid] = 7;
  1044. globDE40[playerid] = 8;
  1045. SetPlayerTeam(playerid, 7);
  1046. }
  1047. else if(classid == 12)
  1048. {
  1049. GameTextForPlayer(playerid, " ~p~Hitmans ~r~PRESSIONE SHIFT", 2000, 3);
  1050. SetPlayerColor(playerid, 0xA0A0A0FF);
  1051. globD1C0[playerid] = 7;
  1052. globDE40[playerid] = 8;
  1053. SetPlayerTeam(playerid, 7);
  1054. }
  1055. else if(classid == 13)
  1056. {
  1057. GameTextForPlayer(playerid, " ~p~Rede Globo ~r~PRESSIONE SHIFT", 2000, 3);
  1058. SetPlayerColor(playerid, 0xD2B175FF);
  1059. globD1C0[playerid] = 8;
  1060. globDE40[playerid] = 10;
  1061. SetPlayerTeam(playerid, 9);
  1062. }
  1063. else if(classid == 14)
  1064. {
  1065. GameTextForPlayer(playerid, " ~p~Rede Globo ~r~PRESSIONE SHIFT", 2000, 3);
  1066. SetPlayerColor(playerid, 0xD2B175FF);
  1067. globD1C0[playerid] = 8;
  1068. globDE40[playerid] = 10;
  1069. SetPlayerTeam(playerid, 9);
  1070. }
  1071. else if(classid == 15)
  1072. {
  1073. GameTextForPlayer(playerid, "~p~Taxistas~r~~n~PRESSIONE SHIFT", 2000, 3);
  1074. SetPlayerColor(playerid, 0xEADE00FF);
  1075. globD1C0[playerid] = 9;
  1076. globDE40[playerid] = 11;
  1077. SetPlayerTeam(playerid, 10);
  1078. }
  1079. else if(classid == 16)
  1080. {
  1081. GameTextForPlayer(playerid, "~p~Policia Rodoviaria Federal~r~~n~PRESSIONE SHIFT", 2000, 3);
  1082. SetPlayerColor(playerid, 0xBDB32DFF);
  1083. globD1C0[playerid] = 10;
  1084. globDE40[playerid] = 12;
  1085. SetPlayerTeam(playerid, 11);
  1086. }
  1087. else if(classid == 17)
  1088. {
  1089. GameTextForPlayer(playerid, "~p~Policia Rodoviaria Federal~r~~n~PRESSIONE SHIFT", 2000, 3);
  1090. SetPlayerColor(playerid, 0xBDB32DFF);
  1091. globD1C0[playerid] = 10;
  1092. globDE40[playerid] = 12;
  1093. SetPlayerTeam(playerid, 11);
  1094. }
  1095. else if(classid == 18)
  1096. {
  1097. GameTextForPlayer(playerid, "~p~Máfia Cosa Nostra~r~~n~PRESSIONE SHIFT", 2000, 3);
  1098. SetPlayerColor(playerid, 0x6BCFCDFF);
  1099. globD1C0[playerid] = 11;
  1100. globDE40[playerid] = 13;
  1101. SetPlayerTeam(playerid, 12);
  1102. }
  1103. else if(classid == 19)
  1104. {
  1105. GameTextForPlayer(playerid, "~p~Máfia Cosa Nostra~r~~n~PRESSIONE SHIFT", 2000, 3);
  1106. SetPlayerColor(playerid, 0x6BCFCDFF);
  1107. globD1C0[playerid] = 11;
  1108. globDE40[playerid] = 13;
  1109. SetPlayerTeam(playerid, 12);
  1110. }
  1111. else if(classid == 20)
  1112. {
  1113. GameTextForPlayer(playerid, "~p~Máfia Yakuza~r~~n~PRESSIONE SHIFT", 2000, 3);
  1114. SetPlayerColor(playerid, 0x6A1D94FF);
  1115. globD1C0[playerid] = 12;
  1116. globDE40[playerid] = 14;
  1117. SetPlayerTeam(playerid, 12);
  1118. }
  1119. else if(classid == 21)
  1120. {
  1121. GameTextForPlayer(playerid, "~p~Máfia Yakuza~r~~n~PRESSIONE SHIFT", 2000, 3);
  1122. SetPlayerColor(playerid, 0x6A1D94FF);
  1123. globD1C0[playerid] = 12;
  1124. globDE40[playerid] = 14;
  1125. SetPlayerTeam(playerid, 12);
  1126. }
  1127. else if(classid == 22)
  1128. {
  1129. GameTextForPlayer(playerid, "~p~Groove Street~r~~n~PRESSIONE SHIFT", 2000, 3);
  1130. SetPlayerColor(playerid, 0x2DFF15FF);
  1131. globD1C0[playerid] = 13;
  1132. globDE40[playerid] = 15;
  1133. SetPlayerTeam(playerid, 13);
  1134. }
  1135. else if(classid == 23)
  1136. {
  1137. GameTextForPlayer(playerid, "~p~Groove Street~r~~n~PRESSIONE SHIFT", 2000, 3);
  1138. SetPlayerColor(playerid, 0x2DFF15FF);
  1139. globD1C0[playerid] = 13;
  1140. globDE40[playerid] = 15;
  1141. SetPlayerTeam(playerid, 13);
  1142. }
  1143. else if(classid == 24)
  1144. {
  1145. GameTextForPlayer(playerid, "~p~Groove Street~r~~n~PRESSIONE SHIFT", 2000, 3);
  1146. SetPlayerColor(playerid, 0x2DFF15FF);
  1147. globD1C0[playerid] = 13;
  1148. globDE40[playerid] = 15;
  1149. SetPlayerTeam(playerid, 13);
  1150. }
  1151. else if(classid == 25)
  1152. {
  1153. GameTextForPlayer(playerid, "~p~Aq'Qaeda~r~~n~PRESSIONE SHIFT", 2000, 3);
  1154. SetPlayerColor(playerid, 0xDBC5AEFF);
  1155. globD1C0[playerid] = 14;
  1156. globDE40[playerid] = 16;
  1157. SetPlayerTeam(playerid, 14);
  1158. }
  1159. else if(classid == 26)
  1160. {
  1161. GameTextForPlayer(playerid, "~p~Policia Civil~r~~n~PRESSIONE SHIFT", 2000, 3);
  1162. SetPlayerColor(playerid, 0xCAB560FF);
  1163. globD1C0[playerid] = 15;
  1164. globDE40[playerid] = 17;
  1165. SetPlayerTeam(playerid, 15);
  1166. }
  1167. else if(classid == 27)
  1168. {
  1169. GameTextForPlayer(playerid, "~p~Policia Civil~r~~n~PRESSIONE SHIFT", 2000, 3);
  1170. SetPlayerColor(playerid, 0xCAB560FF);
  1171. globD1C0[playerid] = 15;
  1172. globDE40[playerid] = 17;
  1173. SetPlayerTeam(playerid, 15);
  1174. }
  1175. else if(classid == 28)
  1176. {
  1177. GameTextForPlayer(playerid, "~p~Ballas~r~~n~PRESSIONE SHIFT", 2000, 3);
  1178. SetPlayerColor(playerid, 0xC254CFFF);
  1179. globD1C0[playerid] = 16;
  1180. globDE40[playerid] = 18;
  1181. SetPlayerTeam(playerid, 16);
  1182. }
  1183. else if(classid == 29)
  1184. {
  1185. GameTextForPlayer(playerid, "~p~Ballas~r~~n~PRESSIONE SHIFT", 2000, 3);
  1186. SetPlayerColor(playerid, 0xC254CFFF);
  1187. globD1C0[playerid] = 16;
  1188. globDE40[playerid] = 18;
  1189. SetPlayerTeam(playerid, 16);
  1190. }
  1191. else if(classid == 30)
  1192. {
  1193. GameTextForPlayer(playerid, "~p~Ballas~r~~n~PRESSIONE SHIFT", 2000, 3);
  1194. SetPlayerColor(playerid, 0xC254CFFF);
  1195. globD1C0[playerid] = 16;
  1196. globDE40[playerid] = 18;
  1197. SetPlayerTeam(playerid, 16);
  1198. }
  1199. else if(classid == 31)
  1200. {
  1201. GameTextForPlayer(playerid, "~p~Los Vagos~r~~n~PRESSIONE SHIFT", 2000, 3);
  1202. SetPlayerColor(playerid, 0xFFFA33FF);
  1203. globD1C0[playerid] = 17;
  1204. globDE40[playerid] = 19;
  1205. SetPlayerTeam(playerid, 17);
  1206. }
  1207. else if(classid == 32)
  1208. {
  1209. GameTextForPlayer(playerid, "~p~Los Vagos~r~~n~PRESSIONE SHIFT", 2000, 3);
  1210. SetPlayerColor(playerid, 0xFFFA33FF);
  1211. globD1C0[playerid] = 17;
  1212. globDE40[playerid] = 19;
  1213. SetPlayerTeam(playerid, 17);
  1214. }
  1215. else if(classid == 33)
  1216. {
  1217. GameTextForPlayer(playerid, "~p~Los Vagos~r~~n~PRESSIONE SHIFT", 2000, 3);
  1218. SetPlayerColor(playerid, 0xFFFA33FF);
  1219. globD1C0[playerid] = 17;
  1220. globDE40[playerid] = 19;
  1221. SetPlayerTeam(playerid, 17);
  1222. }
  1223. else if(classid == 34)
  1224. {
  1225. GameTextForPlayer(playerid, "~p~Comando Vermelho~r~~n~PRESSIONE SHIFT", 2000, 3);
  1226. SetPlayerColor(playerid, 0xFF3333FF);
  1227. globD1C0[playerid] = 18;
  1228. globDE40[playerid] = 20;
  1229. SetPlayerTeam(playerid, 18);
  1230. }
  1231. else if(classid == 35)
  1232. {
  1233. GameTextForPlayer(playerid, "~p~Comando Vermelho~r~~n~PRESSIONE SHIFT", 2000, 3);
  1234. SetPlayerColor(playerid, 0xFF3333FF);
  1235. globD1C0[playerid] = 18;
  1236. globDE40[playerid] = 20;
  1237. SetPlayerTeam(playerid, 18);
  1238. }
  1239. else if(classid == 36)
  1240. {
  1241. GameTextForPlayer(playerid, "~p~Comando Vermelho~r~~n~PRESSIONE SHIFT", 2000, 3);
  1242. SetPlayerColor(playerid, 0xFF3333FF);
  1243. globD1C0[playerid] = 18;
  1244. globDE40[playerid] = 20;
  1245. SetPlayerTeam(playerid, 18);
  1246. }
  1247.  
  1248.  
  1249. if(16 != classid)
  1250. {
  1251. SetPlayerInterior(playerid, 0);
  1252. SetPlayerInterior(playerid, 17);
  1253. SetPlayerPos(playerid, 489.4576, -15.1996, 1000.6796);
  1254. SetPlayerCameraPos(playerid, 484.9201, -11.7566, 1000.6796);
  1255. SetPlayerCameraLookAt(playerid, 489.4576, -15.1996, 1000.6796);
  1256. SetPlayerFacingAngle(playerid, 51.5555);
  1257. ApplyAnimation(playerid, "Dancing", "Dan_Loop_A", 5.0, 1, 0, 0, 0, 0);
  1258. }
  1259. return 1;
  1260. }
  1261. public OnGameModeInit()
  1262. {
  1263. SetGameModeText("PlayFacil DM");
  1264. ShowPlayerMarkers(1);
  1265. ShowNameTags(1);
  1266. AllowAdminTeleport(1);
  1267. UsePlayerPedAnims();
  1268. //=============================Selecionar Skins============================================
  1269. AddPlayerClass(280, 1530.0186,-1671.5234,6.2188,181.2055,0,0,0,0,0,0); // PM
  1270. AddPlayerClass(285, 285.9944,-1511.3450,24.9219,237.6611,0,0,0,0,0,0); // ROTA
  1271. AddPlayerClass(285, 285.9944,-1511.3450,24.9219,237.6611,0,0,0,0,0,0); // ROTA
  1272. AddPlayerClass(287, -772.1858, 1436.0601, 13.789, 93.8632, 0, 0, 0, 0, 0, 0); // EXERCITO
  1273. AddPlayerClass(274, -1324.9018, 497.4291, 11.1953, 140.6434, 0, 0, 0, 0, 0, 0); // SAMU
  1274. AddPlayerClass(115, 2151.9985,-1807.6687,13.5467,269.3350,0,0,0,0,0,0); // AZTECAS
  1275. AddPlayerClass(116, 2151.9985,-1807.6687,13.5467,269.3350,0,0,0,0,0,0); // AZTECAS
  1276. AddPlayerClass(249, -2667.0545, 265.5968, 4.3358, 357.8497, 0, 0, 0, 0, 0, 0); // TALIBAN
  1277. AddPlayerClass(163, -1834.9421, 1044.6853, 46.0859, 5.2774, 0, 0, 0, 0, 0, 0); // PREFEITO
  1278. AddPlayerClass(147, -1834.9421, 1044.6853, 46.0859, 5.2774, 0, 0, 0, 0, 0, 0); // PREFEITO
  1279. AddPlayerClass(166, 1096.5580,-300.4016,73.9922,87.4186,0,0,0,0,0,0); // HITMAN
  1280. AddPlayerClass(127, 1096.5580,-300.4016,73.9922,87.4186,0,0,0,0,0,0); // HITMAN
  1281. AddPlayerClass(195, 1096.5580,-300.4016,73.9922,87.4186,0,0,0,0,0,0); //HITMAN
  1282. AddPlayerClass(187, -2644.1951, -276.936, 7.5085, 135.0036, 0, 0, 0, 0, 0, 0); // REDE GLOBO
  1283. AddPlayerClass(188, -2644.1951, -276.936, 7.5085, 135.0036, 0, 0, 0, 0, 0, 0); // REDE GLOBO
  1284. AddPlayerClass(61, -688.0447, 936.8012, 13.6328, 174.9611, 0, 0, 0, 0, 0, 0); // TAXISTAS
  1285. AddPlayerClass(286,-2908.6211,-34.4791,3.5334,270.7226,0,0,0,0,0,0); // POLICIA RF
  1286. AddPlayerClass(295,-2908.6211,-34.4791,3.5334,270.7226,0,0,0,0,0,0); // POLICIA RF
  1287. AddPlayerClass(108,-2023.0201,-397.9724,35.5313,352.1899,0,0,0,0,0,0);
  1288. AddPlayerClass(110,-2023.0201,-397.9724,35.5313,352.1899,0,0,0,0,0,0);
  1289. AddPlayerClass(104,-2145.8943,-243.7063,36.5156,47.3138,0,0,0,0,0,0);
  1290. AddPlayerClass(102,-2145.5537,-243.4607,36.5156,43.5537,0,0,0,0,0,0);
  1291. AddPlayerClass(0,-2618.7932,1409.4526,7.0938,189.8584,0,0,0,0,0,0);
  1292. AddPlayerClass(106,-2618.7932,1409.4526,7.0938,189.8584,0,0,0,0,0,0);
  1293. AddPlayerClass(107,-2618.7932,1409.4526,7.0938,189.8584,0,0,0,0,0,0);
  1294. AddPlayerClass(1,-1461.5476,1489.9932,8.2578,150.3780,0,0,0,0,0,0);
  1295. AddPlayerClass(78,-1732.0082,29.7053,3.5547,92.4108,0,0,0,0,0,0);
  1296. AddPlayerClass(79,-1732.0082,29.7053,3.5547,92.4108,0,0,0,0,0,0);
  1297. AddPlayerClass(113,-2043.5026,1105.5787,53.2891,79.6094,0,0,0,0,0,0);
  1298. AddPlayerClass(112,-2043.5026,1105.5787,53.2891,79.6094,0,0,0,0,0,0);
  1299. AddPlayerClass(111,-2043.5026,1105.5787,53.2891,79.6094,0,0,0,0,0,0);
  1300. AddPlayerClass(30,-2947.3794,487.8499,2.4273,180.7329,0,0,0,0,0,0); //
  1301. AddPlayerClass(73,-2947.3794,487.8499,2.4273,180.7329,0,0,0,0,0,0); //
  1302. AddPlayerClass(101,-2947.3794,487.8499,2.4273,180.7329,0,0,0,0,0,0); //
  1303. AddPlayerClass(59,-1545.5238,-440.5222,6.0000,44.9114,0,0,0,0,0,0); //
  1304. AddPlayerClass(60,-1545.5238,-440.5222,6.0000,44.9114,0,0,0,0,0,0); //
  1305. AddPlayerClass(98,-1545.5238,-440.5222,6.0000,44.9114,0,0,0,0,0,0); //
  1306. //===================================================================================
  1307.  
  1308. // TextDraw for Players Online
  1309. players = TextDrawCreate(50.000000, 326.000000, "Recorde Online:_");
  1310. TextDrawBackgroundColor(players, 255);
  1311. TextDrawFont(players, 2);
  1312. TextDrawLetterSize(players, 0.500000, 1.000000);
  1313. TextDrawColor(players, -65281);
  1314. TextDrawSetOutline(players, 1);
  1315. TextDrawSetProportional(players, 1);
  1316.  
  1317. for(new i; i < MAX_PLAYERS; i ++)
  1318. {
  1319. if(IsPlayerConnected(i))
  1320. {
  1321. TextDrawShowForPlayer(i, players);
  1322. }
  1323. }
  1324. //=========PICKUPS======================================
  1325. AddStaticPickup(1247, 2, 242.8931,66.3955,1003.6406, 0);
  1326. AddStaticPickup(1318, 2, 1481.2358,-1771.4418,18.7958, 0);
  1327. AddStaticPickup(1318, 2, 370.2575,-2047.5573,7.8359, 0);
  1328. AddStaticPickup(1318, 2, 2495.3691,-1709.8701,1014.7422, 0);
  1329. Create3DTextLabel("Brasil {FFD700}Mata{1E90FF}Mata\n{FF8000}Digite /virarpolicial",COR_3DLABEL,242.8931,66.3955,1003.6406,15.0,0);
  1330. Create3DTextLabel("Brasil {FFD700}Mata{1E90FF}Mata\n{FF8000}Digite /virarprefeito",COR_3DLABEL,1481.2358,-1771.4418,18.7958,15.0,0);
  1331. Create3DTextLabel("Brasil {FFD700}Mata{1E90FF}Mata\n{FF8000}Digite /virarpalhaco",COR_3DLABEL,370.2575,-2047.5573,7.8359,15.0,0);
  1332. Create3DTextLabel("Brasil {FFD700}Mata{1E90FF}Mata\n{FF8000}Digite /virargroove",COR_3DLABEL,2495.3691,-1709.8701,1014.7422,15.0,0);
  1333.  
  1334. Textdraw0 = TextDrawCreate(530.000000, 008.000000, "~b~00:00:00");
  1335. TextDrawBackgroundColor(Textdraw0, 255);
  1336. TextDrawFont(Textdraw0, 3);
  1337. TextDrawLetterSize(Textdraw0, 0.500000, 1.800000);
  1338. TextDrawColor(Textdraw0, -2);
  1339. TextDrawSetOutline(Textdraw0, 0);
  1340. TextDrawSetProportional(Textdraw0, 1);
  1341. TextDrawSetShadow(Textdraw0, 1);
  1342.  
  1343. Textdraw1 = TextDrawCreate(550.000000, 025.000000, "00/00/00");
  1344. TextDrawBackgroundColor(Textdraw1, 255);
  1345. TextDrawFont(Textdraw1, 3);
  1346. TextDrawLetterSize(Textdraw1, 0.500000, 1.800000);
  1347. TextDrawColor(Textdraw1, -3);
  1348. TextDrawSetOutline(Textdraw1, 0);
  1349. TextDrawSetProportional(Textdraw1, 1);
  1350. TextDrawSetShadow(Textdraw1, 1);
  1351.  
  1352. Imortal = TextDrawCreate(545.000000, 065.000000, "Respawn");
  1353. TextDrawBackgroundColor(Textdraw1, 255);
  1354. TextDrawFont(Imortal, 3);
  1355. TextDrawLetterSize(Imortal, 0.30000, 1.0000);
  1356. TextDrawColor(Textdraw1, -3);
  1357. TextDrawSetOutline(Textdraw1, 0);
  1358. TextDrawSetProportional(Textdraw1, 1);
  1359. TextDrawSetShadow(Textdraw1, 1);
  1360.  
  1361. ImagemEntrada = TextDrawCreate(1.000000, -1.000000, "loadsc6:loadsc6");
  1362. TextDrawBackgroundColor(ImagemEntrada, 255);
  1363. TextDrawFont(ImagemEntrada, 4);
  1364. TextDrawLetterSize(ImagemEntrada, 0.500000, 1.000000);
  1365. TextDrawColor(ImagemEntrada, -1);
  1366. TextDrawSetOutline(ImagemEntrada, 0);
  1367. TextDrawSetProportional(ImagemEntrada, 1);
  1368. TextDrawSetShadow(ImagemEntrada, 1);
  1369. TextDrawUseBox(ImagemEntrada, 1);
  1370. TextDrawBoxColor(ImagemEntrada, 255);
  1371. TextDrawTextSize(ImagemEntrada, 645.000000, 450.000000);
  1372.  
  1373.  
  1374. SetTimer("hora",1000,1);
  1375. SetTimer("Velocimetro", 1000, 1);
  1376. SetTimer("SendMensagens",90000,1);
  1377. //-------------OBJETOS------------------------------------------------
  1378. AddStaticVehicleEx(562,2954.8000488,-2355.6999512,4.9000001,284.2500000,0,0,500); //Elegy
  1379. AddStaticVehicleEx(562,2953.5000000,-2351.3000488,4.9000001,284.2492676,0,0,500); //Elegy
  1380. AddStaticVehicleEx(562,2946.3994141,-2353.0000000,4.9000001,284.2492676,0,0,500); //Elegy
  1381. AddStaticVehicleEx(562,2947.6999512,-2357.5000000,4.9000001,284.2492676,0,0,500); //Elegy
  1382. AddStaticVehicleEx(562,2961.6992188,-2354.0000000,4.9000001,284.2492676,0,0,500); //Elegy
  1383. AddStaticVehicleEx(562,2961.2998047,-2349.5996094,4.9000001,286.2492676,0,0,500); //Elegy
  1384. CreateObject(4651, 3064.8994140625, -2412.69921875, 4.5999999046326, 0, 0, 351.99645996094);
  1385. CreateObject(4651, 2956.2998046875, -2379.69921875, 4.4000000953674, 0, 0, 80.244140625);
  1386. CreateObject(4651, 2922.099609375, -2486.599609375, 4.1999998092651, 0, 0, 170.2470703125);
  1387. CreateObject(4651, 3033.5, -2520.099609375, 4.9000000953674, 0, 0, 261.49108886719);
  1388. CreateObject(979, 2974.3994140625, -2359, 5.1999998092651, 0, 0, 5.745849609375);
  1389. CreateObject(979, 2983.599609375, -2358.2998046875, 5.1999998092651, 0, 0, 2.9937744140625);
  1390. CreateObject(979, 2992.6999511719, -2358.1000976563, 5.1999998092651, 0, 0, 359.74377441406);
  1391. CreateObject(979, 3002, -2358.3999023438, 5.1999998092651, 0, 0, 356.73913574219);
  1392. CreateObject(979, 3011, -2359.5, 5.1999998092651, 0, 0, 348.73706054688);
  1393. CreateObject(979, 3020, -2361.3999023438, 5.1999998092651, 0, 0, 346.73352050781);
  1394. CreateObject(979, 3029, -2363.5, 5.1999998092651, 0, 0, 346.728515625);
  1395. CreateObject(1315, 2970.69921875, -2354, 7.4000000953674, 0, 0, 272.99926757813);
  1396. CreateObject(1315, 2970.1999511719, -2347.5, 7.4000000953674, 0, 0, 101.24737548828);
  1397. CreateObject(979, 3038, -2365.8000488281, 5.1999998092651, 0, 0, 344.728515625);
  1398. CreateObject(979, 3046.6999511719, -2368.8999023438, 5.1999998092651, 0, 0, 336.22351074219);
  1399. CreateObject(979, 3054.6999511719, -2373.3999023438, 5.1999998092651, 0, 0, 324.96948242188);
  1400. CreateObject(979, 3062.1000976563, -2379.1000976563, 5.1999998092651, 0, 0, 319.71459960938);
  1401. CreateObject(979, 3068.6999511719, -2385.6000976563, 5.1999998092651, 0, 0, 310.46313476563);
  1402. CreateObject(979, 3074.1999511719, -2393.1000976563, 5.1999998092651, 0, 0, 301.71264648438);
  1403. CreateObject(979, 3078.3000488281, -2401.3000488281, 5.1999998092651, 0, 0, 291.71203613281);
  1404. CreateObject(979, 3081.3999023438, -2410, 5.1999998092651, 0, 0, 287.708984375);
  1405. CreateObject(979, 3083.8999023438, -2419, 5.1999998092651, 0, 0, 282.70446777344);
  1406. CreateObject(978, 2968, -2341.7998046875, 5.0999999046326, 0, 0, 184.74609375);
  1407. CreateObject(978, 2977.1999511719, -2341.1000976563, 5.0999999046326, 0, 0, 183.99609375);
  1408. CreateObject(978, 2986.5, -2340.6000976563, 5.0999999046326, 0, 0, 181.49353027344);
  1409. CreateObject(978, 2995.8000488281, -2341, 5.0999999046326, 0, 0, 173.48864746094);
  1410. CreateObject(978, 3005, -2342.1000976563, 5.0999999046326, 0, 0, 172.73510742188);
  1411. CreateObject(978, 3014.1999511719, -2343.1999511719, 5.0999999046326, 0, 0, 173.48510742188);
  1412. CreateObject(978, 3023.3000488281, -2344.3000488281, 5.0999999046326, 0, 0, 172.98510742188);
  1413. CreateObject(978, 3040.8999023438, -2348.3000488281, 5.0999999046326, 0, 0, 166.23510742188);
  1414. CreateObject(978, 3032, -2346, 5.0999999046326, 0, 0, 165.23510742188);
  1415. CreateObject(978, 3050, -2350.5, 5.0999999046326, 0, 0, 166.23413085938);
  1416. CreateObject(978, 3058.1000976563, -2354.1000976563, 5.0999999046326, 0, 0, 146.73413085938);
  1417. CreateObject(978, 3065.8999023438, -2359.1999511719, 5.0999999046326, 0, 0, 146.7333984375);
  1418. CreateObject(978, 3073.3000488281, -2364.6000976563, 5.0999999046326, 0, 0, 140.7333984375);
  1419. CreateObject(978, 3079.8999023438, -2371.1999511719, 5.0999999046326, 0, 0, 128.72937011719);
  1420. CreateObject(978, 3085.6999511719, -2378.3999023438, 5.0999999046326, 0, 0, 128.72680664063);
  1421. CreateObject(978, 3090.6999511719, -2386.1999511719, 5.0999999046326, 0, 0, 116.72680664063);
  1422. CreateObject(978, 3094.8000488281, -2394.5, 5.0999999046326, 0, 0, 115.97427368164);
  1423. CreateObject(978, 3098, -2403.1999511719, 5.0999999046326, 0, 0, 104.7216796875);
  1424. CreateObject(978, 3100.3000488281, -2412.1000976563, 5.0999999046326, 0, 0, 104.7216796875);
  1425. CreateObject(978, 3102.6999511719, -2421.1000976563, 5.0999999046326, 0, 0, 104.7216796875);
  1426. CreateObject(978, 3104.3999023438, -2430.1999511719, 5.0999999046326, 0, 0, 96.2216796875);
  1427. CreateObject(978, 3105.3999023438, -2439.5, 5.0999999046326, 0, 0, 96.21826171875);
  1428. CreateObject(978, 3105.8999023438, -2448.8000488281, 5.0999999046326, 0, 0, 90.21826171875);
  1429. CreateObject(979, 3085.5, -2428.1000976563, 5.1999998092651, 0, 0, 276.7001953125);
  1430. CreateObject(979, 3086.6000976563, -2437.3999023438, 5.1999998092651, 0, 0, 276.69616699219);
  1431. CreateObject(979, 3087.3999023438, -2446.3999023438, 5.1999998092651, 0, 0, 273.19616699219);
  1432. CreateObject(979, 3087.6000976563, -2455.6000976563, 5.1999998092651, 0, 0, 269.19152832031);
  1433. CreateObject(979, 3087, -2464.3994140625, 5.3000001907349, 0, 0, 263.18298339844);
  1434. CreateObject(978, 3105.8000488281, -2458.1000976563, 5.0999999046326, 0, 0, 89.214233398438);
  1435. CreateObject(978, 3105, -2467.5, 5.3000001907349, 0, 2, 81.458984375);
  1436. CreateObject(978, 3103.6000976563, -2476.6999511719, 5.5999999046326, 0, 1.99951171875, 80.958129882813);
  1437. CreateObject(979, 3085.69921875, -2473.5, 5.5, 0, 357.99499511719, 259.67834472656);
  1438. CreateObject(978, 3099.1999511719, -2494.6000976563, 5.9000000953674, 0, 359.99951171875, 74.697021484375);
  1439. CreateObject(979, 3084, -2482.3000488281, 5.8000001907349, 0, 357.99499511719, 258.42834472656);
  1440. CreateObject(978, 3101.6999511719, -2485.6000976563, 5.9000000953674, 0, 359.99450683594, 74.691528320313);
  1441. CreateObject(978, 3096.8000488281, -2503.3999023438, 5.9000000953674, 0, 359.99450683594, 74.696044921875);
  1442. CreateObject(978, 3093.3999023438, -2511.8000488281, 5.9000000953674, 0, 359.99450683594, 59.946044921875);
  1443. CreateObject(978, 3088.5, -2519.5, 5.9000000953674, 0, 359.98901367188, 55.94140625);
  1444. CreateObject(978, 3083.1000976563, -2526.8000488281, 5.9000000953674, 0, 359.98352050781, 51.936889648438);
  1445. CreateObject(978, 3076.8000488281, -2533.5, 5.9000000953674, 0, 359.97802734375, 41.932373046875);
  1446. CreateObject(978, 3069.8000488281, -2539.5, 5.9000000953674, 0, 359.97802734375, 39.929321289063);
  1447. CreateObject(979, 3081.6000976563, -2491.3000488281, 5.6999998092651, 0, 0, 253.18298339844);
  1448. CreateObject(979, 3078.3999023438, -2500, 5.6999998092651, 0, 0, 246.17993164063);
  1449. CreateObject(979, 3074.3000488281, -2508.3000488281, 5.6999998092651, 0, 0, 240.17614746094);
  1450. CreateObject(979, 3069, -2515.6999511719, 5.6999998092651, 0, 0, 228.17211914063);
  1451. CreateObject(979, 3062.5, -2522.1000976563, 5.6999998092651, 0, 0, 220.16955566406);
  1452. CreateObject(979, 3055.1000976563, -2527.6999511719, 5.6999998092651, 0, 0, 214.166015625);
  1453. CreateObject(1633, 2976.1999511719, -2546.6000976563, 5.5999999046326, 0, 0, 80);
  1454. CreateObject(13641, 2945.6000976563, -2545.1999511719, -1.7000000476837, 0, 0, 350);
  1455. CreateObject(2780, 3092.8000488281, -2504.8999023438, 3.0999999046326, 0, 0, 0);
  1456. CreateObject(3461, 2973.5, -2544.8000488281, 5.0999999046326, 0, 0, 0);
  1457. CreateObject(3461, 2973.3999023438, -2545.3000488281, 5.0999999046326, 0, 0, 0);
  1458. CreateObject(3461, 2973.1000976563, -2545.8000488281, 5.0999999046326, 0, 0, 0);
  1459. CreateObject(3461, 2973, -2546.3000488281, 5.0999999046326, 0, 0, 0);
  1460. CreateObject(3461, 2972.8999023438, -2546.8000488281, 5.0999999046326, 0, 0, 0);
  1461. CreateObject(3461, 2972.8000488281, -2547.5, 5.0999999046326, 0, 0, 0);
  1462. CreateObject(3461, 2972.8000488281, -2548.1000976563, 5.0999999046326, 0, 0, 0);
  1463. CreateObject(3461, 2973.5, -2544.1999511719, 5.0999999046326, 0, 0, 0);
  1464. CreateObject(2780, 3085.8999023438, -2503.6999511719, 3.0999999046326, 0, 2, 0);
  1465. CreateObject(2780, 3078.3999023438, -2500.3000488281, 3.0999999046326, 0, 1.99951171875, 0);
  1466. CreateObject(2780, 3090.8999023438, -2504.8000488281, 3.0999999046326, 0, 1.99951171875, 0);
  1467. CreateObject(2780, 3082.3000488281, -2501.6000976563, 3.0999999046326, 0, 1.99951171875, 0);
  1468. CreateObject(9833, 2901.5, -2409.1999511719, 0.80000001192093, 0, 0, 0);
  1469. CreateObject(9833, 2899.3999023438, -2408.6999511719, 0.80000001192093, 0, 0, 0);
  1470. CreateObject(9833, 2897, -2408.1000976563, 0.80000001192093, 0, 0, 0);
  1471. CreateObject(9833, 2895.1000976563, -2407.6000976563, 0.80000001192093, 0, 0, 0);
  1472. CreateObject(9833, 2893.1999511719, -2407.1000976563, 0.80000001192093, 0, 0, 0);
  1473. CreateObject(9833, 2905, -2409.3999023438, 0.80000001192093, 0, 0, 0);
  1474. CreateObject(9833, 2890.6999511719, -2405.6999511719, 0.80000001192093, 0, 0, 0);
  1475. CreateObject(1585, 2970.6000976563, -2357, 4.3000001907349, 0, 0, 89.5);
  1476. CreateObject(3819, 2956.6000976563, -2365.6000976563, 5.0999999046326, 0, 0, 282);
  1477. CreateObject(3819, 2964.8999023438, -2363.8000488281, 5.0999999046326, 0, 0, 282.4970703125);
  1478. CreateObject(3819, 2959.1000976563, -2340.3000488281, 5.0999999046326, 0, 0, 102.49694824219);
  1479. CreateObject(3819, 2950.6999511719, -2342.1999511719, 5.0999999046326, 0, 0, 103.49694824219);
  1480. CreateObject(3819, 2990, -2539, 5.4000000953674, 0, 0, 89.996948242188);
  1481. CreateObject(3819, 2998.6000976563, -2539, 5.4000000953674, 0, 0, 89.994506835938);
  1482. CreateObject(3819, 2989.8999023438, -2563.3000488281, 5.4000000953674, 0, 0, 269.99450683594);
  1483. CreateObject(3819, 2998.6000976563, -2563.3000488281, 5.4000000953674, 0, 0, 269.98901367188);
  1484. CreateObject(7073, 3089.3000488281, -2444.3000488281, 12.300000190735, 33.976470947266, 357.58807373047, 93.348449707031);
  1485. CreateObject(978, 2931.1000976563, -2546.1999511719, 5, 0, 359.97802734375, 329.67431640625);
  1486. CreateObject(978, 2923.3000488281, -2541.1000976563, 5, 0, 359.97802734375, 323.67218017578);
  1487. CreateObject(978, 2916, -2535.3999023438, 5, 0, 359.97802734375, 321.16821289063);
  1488. CreateObject(978, 2939.5, -2549.6000976563, 5, 0, 359.97802734375, 345.67224121094);
  1489. CreateObject(978, 2909.3999023438, -2528.8999023438, 5, 0, 359.97802734375, 308.66333007813);
  1490. CreateObject(16778, 2954.8999023438, -2340.6000976563, 2.0999999046326, 0, 0, 13.25);
  1491. CreateObject(16778, 2960.8999023438, -2364.8000488281, 2.0999999046326, 0, 0, 13.24951171875);
  1492. CreateObject(1975, 2999.1000976563, -2350.6999511719, 4.0999999046326, 270, 177.92291259766, 75.922912597656);
  1493. CreateObject(16776, 2910.6999511719, -2490.6000976563, 1, 0, 0, 300);
  1494. CreateObject(16776, 2885.6999511719, -2502.6999511719, 1, 0, 0, 114.99816894531);
  1495. CreateObject(1585, 2971.5, -2356.8000488281, 4.3000001907349, 0, 0, 271.49462890625);
  1496. CreateObject(1585, 2970.8999023438, -2356.3000488281, 4.3000001907349, 0, 0, 1.494140625);
  1497. CreateObject(1585, 2971, -2357.1999511719, 4.3000001907349, 0, 0, 1.494140625);
  1498. CreateObject(978, 2948.3999023438, -2551.8999023438, 5, 0, 359.97802734375, 345.66833496094);
  1499. //---------------------------ARENA PVP-------------------------------------------------
  1500. CreateObject(987, -1349.4588623047, 2524.548828125, 86.103607177734, 0, 0, 84);
  1501. CreateObject(987, -1350.490234375, 2512.8447265625, 85.557525634766, 0, 0, 83.995971679688);
  1502. CreateObject(987, -1352.9769287109, 2489.4975585938, 85.966720581055, 0, 0, 83.995971679688);
  1503. CreateObject(987, -1351.7525634766, 2501.2727050781, 85.765937805176, 0, 0, 83.995971679688);
  1504. CreateObject(987, -1354.8366699219, 2477.9758300781, 86.095985412598, 0, 0, 83.995971679688);
  1505. CreateObject(987, -1343.3999023438, 2475.1330566406, 86.046875, 0, 0, 165.99597167969);
  1506. CreateObject(987, -1332.3194580078, 2471.7338867188, 86.046875, 0, 0, 165.99243164063);
  1507. CreateObject(987, -1321.0079345703, 2468.8889160156, 86.046875, 0, 0, 165.99243164063);
  1508. CreateObject(987, -1309.6713867188, 2469.4084472656, 86.529922485352, 0, 0, 181.99243164063);
  1509. CreateObject(987, -1297.5865478516, 2469.8547363281, 86.467590332031, 0, 0, 183.99047851563);
  1510. CreateObject(987, -1287.4476318359, 2473.3186035156, 86.348999023438, 0, 0, 201.98803710938);
  1511. CreateObject(987, -1278.40234375, 2479.5729980469, 86.184967041016, 0, 0, 217.98364257813);
  1512. CreateObject(987, -1269.3629150391, 2486.0297851563, 86.041023254395, 0, 0, 217.97973632813);
  1513. CreateObject(987, -1266.2283935547, 2497.1547851563, 86.262519836426, 0, 0, 253.97973632813);
  1514. CreateObject(987, -1267.0590820313, 2508.1105957031, 86.570869445801, 0, 0, 271.97644042969);
  1515. CreateObject(987, -1268.5339355469, 2519.1201171875, 86.728614807129, 0, 0, 275.97204589844);
  1516. CreateObject(987, -1269.8857421875, 2530.3125, 87.955711364746, 0, 0, 275.97106933594);
  1517. CreateObject(987, -1274.8963623047, 2540.1188964844, 87.377952575684, 0, 0, 299.97106933594);
  1518. CreateObject(987, -1280.9083251953, 2549.5600585938, 85.44612121582, 0, 356, 303.970703125);
  1519. CreateObject(987, -1291.5864257813, 2553.8515625, 84.937484741211, 0, 0, 341.966796875);
  1520. CreateObject(987, -1302.6960449219, 2556.9624023438, 85.379516601563, 0, 0, 341.96594238281);
  1521. CreateObject(987, -1313.4541015625, 2553.1520996094, 86.071014404297, 0, 0, 17.965942382813);
  1522. CreateObject(987, -1302.6219482422, 2556.7248535156, 89.424369812012, 0, 0, 343.96264648438);
  1523. CreateObject(987, -1313.3704833984, 2553.3000488281, 89.648796081543, 0, 0, 19.9599609375);
  1524. CreateObject(987, -1324.2697753906, 2548.8044433594, 86.180885314941, 0, 0, 21.957641601563);
  1525. CreateObject(987, -1324.2344970703, 2549.0122070313, 89.598220825195, 0, 0, 21.956176757813);
  1526. CreateObject(987, -1291.9654541016, 2553.4245605469, 90.120361328125, 0, 0, 343.95617675781);
  1527. CreateObject(987, -1334.1160888672, 2545.3601074219, 86.559997558594, 0, 0, 19.950927734375);
  1528. CreateObject(987, -1345.1313476563, 2542.6062011719, 86.203193664551, 0, 0, 15.95068359375);
  1529. CreateObject(987, -1349.1384277344, 2532.9094238281, 86.046875, 0, 0, 65.95068359375);
  1530. CreateObject(987, -1334.7396240234, 2545.8059082031, 82.17733001709, 0, 0, 19.95068359375);
  1531. CreateObject(987, -1344.7479248047, 2542.1608886719, 81.986198425293, 0, 0, 21.94970703125);
  1532. CreateObject(5244, -1286.4537353516, 2493.0905761719, 88.619827270508, 0, 0, 228);
  1533. CreateObject(2780, -1283.3356933594, 2503.888671875, 86.014671325684, 0, 0, 0);
  1534. CreateObject(2780, -1279.2819824219, 2499.962890625, 86.015045166016, 0, 0, 0);
  1535. CreateObject(2780, -1281.0692138672, 2487.8205566406, 86.098754882813, 0, 0, 0);
  1536. CreateObject(2780, -1285.7689208984, 2492.1071777344, 86.091979980469, 0, 0, 0);
  1537. CreateObject(2780, -1290.7421875, 2495.7805175781, 86.001861572266, 0, 0, 0);
  1538. CreateObject(2780, -1287.9739990234, 2481.1076660156, 86.144622802734, 0, 0, 0);
  1539. CreateObject(2780, -1297.9852294922, 2490.0417480469, 86.056884765625, 0, 0, 0);
  1540. CreateObject(2780, -1290.3265380859, 2483.7119140625, 86.10920715332, 0, 0, 0);
  1541. CreateObject(2780, -1285.0709228516, 2493.2153320313, 86.06827545166, 0, 0, 0);
  1542. CreateObject(2780, -1281.4129638672, 2488.4621582031, 86.093612670898, 0, 0, 0);
  1543. CreateObject(2780, -1287.4929199219, 2495.3188476563, 86.066284179688, 0, 0, 0);
  1544. CreateObject(2780, -1273.3647460938, 2495.9992675781, 86.031677246094, 0, 0, 0);
  1545. CreateObject(2780, -1275.4350585938, 2497.8264160156, 86.027633666992, 0, 0, 0);
  1546. CreateObject(2780, -1279.1164550781, 2503.4289550781, 86.025695800781, 0, 0, 0);
  1547. CreateObject(2780, -1277.5169677734, 2498.4841308594, 86.023567199707, 0, 0, 0);
  1548. CreateObject(2780, -1271.5079345703, 2470.9875488281, 225.49844360352, 0, 0, 0);
  1549. CreateObject(3374, -1342.3159179688, 2484.6369628906, 87.763946533203, 0, 354.5, 358);
  1550. CreateObject(3374, -1342.4040527344, 2488.4821777344, 87.85969543457, 0, 0, 0);
  1551. CreateObject(3374, -1342.1751708984, 2492.6193847656, 87.733627319336, 0, 0, 0);
  1552. CreateObject(3374, -1277.8978271484, 2526.7995605469, 88.565444946289, 0, 0, 0);
  1553. CreateObject(3374, -1277.5385742188, 2531.0505371094, 88.333709716797, 0, 0, 0);
  1554. CreateObject(3374, -1277.4055175781, 2522.6833496094, 88.29345703125, 0, 0, 0);
  1555. CreateObject(3374, -1281.5100097656, 2531.0810546875, 88.467544555664, 0, 0, 0);
  1556. CreateObject(3374, -1280.8005371094, 2527.0607910156, 88.222183227539, 0, 0, 0);
  1557. CreateObject(3374, -1280.7631835938, 2523.1296386719, 88.070770263672, 0, 0, 0);
  1558. CreateObject(3374, -1280.5654296875, 2523.2114257813, 91.070770263672, 0, 0, 0);
  1559. CreateObject(3374, -1280.197265625, 2527.4934082031, 91.222183227539, 0, 0, 0);
  1560. CreateObject(3374, -1281.1641845703, 2530.7722167969, 91.467544555664, 0, 0, 0);
  1561. CreateObject(3374, -1338.7192382813, 2488.5993652344, 87.483627319336, 0, 0, 0);
  1562. CreateObject(3374, -1338.4974365234, 2492.5866699219, 87.619537353516, 0, 0, 0);
  1563. CreateObject(3374, -1338.5583496094, 2484.6171875, 87.621429443359, 0, 0, 0);
  1564. CreateObject(3374, -1337.712890625, 2484.6516113281, 90.621429443359, 0, 0, 0);
  1565. CreateObject(3374, -1338.5600585938, 2488.6494140625, 90.483627319336, 0, 0, 0);
  1566. CreateObject(3374, -1338.15234375, 2491.935546875, 90.619537353516, 0, 0, 0);
  1567. CreateObject(3425, -1356.6750488281, 2529.421875, 96.921279907227, 0, 0, 0);
  1568. CreateObject(3425, -1361.6910400391, 2492.8288574219, 98.006729125977, 0, 0, 0);
  1569. CreateObject(3524, -1337.3923339844, 2483.4926757813, 95.012794494629, 0, 0, 100);
  1570. CreateObject(3524, -1337.6832275391, 2492.6137695313, 95.010902404785, 0, 0, 99.99755859375);
  1571. CreateObject(3524, -1281.5749511719, 2532.0524902344, 95.108909606934, 0, 0, 271.99755859375);
  1572. CreateObject(3524, -1280.8291015625, 2521.8054199219, 95.212135314941, 0, 0, 271.99755859375);
  1573. CreateObject(3528, -1356.0629882813, 2492.7453613281, 98.89631652832, 0, 0, 2);
  1574. CreateObject(3528, -1350.572265625, 2529.2888183594, 98.566970825195, 0, 0, 1.99951171875);
  1575. CreateObject(7073, -1213.6882324219, 2516.9560546875, 127.70631408691, 0, 0, 9.5);
  1576. CreateObject(7392, -1270.2121582031, 2591.9138183594, 98.608596801758, 349.27029418945, 3.5623474121094, 63.914031982422);
  1577. CreateObject(11417, -1261.513671875, 2567.9436035156, 97.270889282227, 0, 0, 0);
  1578. CreateObject(2921, -1305.5231933594, 2536.6564941406, 92.094467163086, 0, 0, 90);
  1579. CreateObject(3279, -1334.3756103516, 2536.3427734375, 86.365715026855, 0, 0, 0);
  1580. CreateObject(3279, -1289.1284179688, 2542.685546875, 86.076141357422, 0, 0, 0);
  1581. CreateObject(16093, -1316.1208496094, 2477.2822265625, 86.381134033203, 0, 0, 186);
  1582. CreateObject(4882, -1320.0244140625, 2486.5532226563, 89.933868408203, 0, 0, 0);
  1583. CreateObject(9767, -1310.8387451172, 2520.0373535156, 92.83056640625, 0, 358.5, 268.25);
  1584. CreateObject(9766, -1293.5539550781, 2553.5832519531, 108.64688873291, 0, 0, 32);
  1585. CreateObject(9766, -1328.2106933594, 2558.9494628906, 112.05710601807, 358, 0, 143.99996948242);
  1586. CreateObject(9766, -1340.3972167969, 2500.8688964844, 109.98677062988, 349.01293945313, 3.3107299804688, 198.62976074219);
  1587. CreateObject(12839, -1305.0864257813, 2474.3737792969, 89.693244934082, 0, 0, 274);
  1588. CreateObject(12839, -1313.2171630859, 2473.7866210938, 95.859909057617, 0, 0, 273.9990234375);
  1589. CreateObject(12839, -1321.3527832031, 2473.193359375, 101.49727630615, 0, 0, 273.9990234375);
  1590. CreateObject(12950, -1324.8477783203, 2472.9609375, 103.22816467285, 0, 0, 94);
  1591. CreateObject(1225, -1296.2770996094, 2526.1345214844, 86.942733764648, 0, 0, 0);
  1592. CreateObject(1225, -1310.0678710938, 2538.4018554688, 87.147941589355, 0, 0, 0);
  1593. CreateObject(1225, -1337.9283447266, 2515.8850097656, 86.454780578613, 0, 0, 0);
  1594. CreateObject(1225, -1343.4528808594, 2500.3120117188, 86.451644897461, 0, 0, 0);
  1595. CreateObject(1225, -1273.8878173828, 2513.1691894531, 87.036239624023, 0, 0, 0);
  1596. CreateObject(1225, -1284.3524169922, 2527.36328125, 86.991081237793, 0, 0, 0);
  1597. CreateObject(1225, -1299.6976318359, 2511.16796875, 86.419891357422, 0, 0, 0);
  1598. //----------MEGA RAMPA-------------------------------------------------------
  1599. CreateObject(10244, 1685.9000244141, -1571.1999511719, 19.89999961853, 0, 0, 270);
  1600. CreateObject(6976, 1703.6999511719, -1576.5999755859, 23.299999237061, 0, 20, 0);
  1601. CreateObject(10244, 1733.9000244141, -1564, 28.5, 0, 0, 4);
  1602. CreateObject(6976, 1743.5, -1555, 29.299999237061, 0, 359.9951171875, 0);
  1603. CreateObject(6976, 1766.5999755859, -1597.3000488281, 37.5, 0, 35.994506835938, 264);
  1604. CreateObject(8357, 367, 403.39999389648, 70.699996948242, 320, 0, 123.99996948242);
  1605. CreateObject(8356, 582, 555, 275.39999389648, 0, 0, 33.997192382813);
  1606. CreateObject(8357, 501.5, 494.20001220703, 207, 319.99877929688, 0, 123.99719238281);
  1607. CreateObject(8356, 252.89999389648, 324.5, 16.89999961853, 8, 0, 304);
  1608. CreateObject(1655, 188.60000610352, 262.70001220703, 6.0999999046326, 352, 0, 122);
  1609. CreateObject(1655, 184.10000610352, 269.89999389648, 6.0999999046326, 351.99645996094, 0, 121.99768066406);
  1610. CreateObject(1655, 179.60000610352, 277.10000610352, 6.0999999046326, 351.99645996094, 0, 121.99768066406);
  1611. CreateObject(1655, 175.19999694824, 284.20001220703, 6.0999999046326, 351.99645996094, 0, 121.99768066406);
  1612. CreateObject(1655, 172.10000610352, 289, 6.0999999046326, 351.99645996094, 0, 121.99768066406);
  1613. CreateObject(13607, 70.099998474121, 203.19999694824, 5.3000001907349, 0, 0, 36);
  1614. CreateObject(8356, 484, 699.79998779297, 316, 26, 0, 33.997192382813);
  1615. CreateObject(13603, 423, 784.90002441406, 358.79998779297, 358, 180, 128);
  1616. CreateObject(13641, 617.59997558594, 482.39999389648, 275.39999389648, 0, 0, 304);
  1617. AddStaticVehicleEx(522,592.9000244,571.0999756,276.0000000,119.9981689,0,0,1000); //NRG-500
  1618. AddStaticVehicleEx(522,595.0000000,567.5000000,276.0000000,119.9981689,0,0,1000); //NRG-500
  1619. AddStaticVehicleEx(522,597.7999878,563.5999756,276.0000000,119.9981689,0,0,1000); //NRG-500
  1620. AddStaticVehicleEx(522,600.7000122,559.2999878,276.0000000,119.9981689,0,0,1000); //NRG-500
  1621. AddStaticVehicleEx(510,603.5999756,555.7000122,276.1000061,120.0000000,0,0,1000); //Mountain Bike
  1622. AddStaticVehicleEx(510,606.2999878,552.0000000,276.1000061,119.9981689,0,0,1000); //Mountain Bike
  1623. AddStaticVehicleEx(522,431.5000000,776.7000122,358.7999878,211.9981689,0,0,1000); //NRG-500
  1624. AddStaticVehicleEx(522,427.8999939,773.2999878,358.7999878,211.9976807,0,0,1000); //NRG-500
  1625. AddStaticVehicleEx(522,424.0000000,769.7000122,358.7999878,211.9976807,0,0,1000); //NRG-500
  1626. AddStaticVehicleEx(522,420.6000061,768.2999878,358.7999878,211.9976807,0,0,1000); //NRG-500
  1627. AddStaticVehicleEx(510,417.6000061,765.0000000,358.2999878,220.0000000,0,0,1000); //Mountain Bike
  1628. AddStaticVehicleEx(510,415.6000061,762.2999878,358.2999878,219.9957275,0,0,1000); //Mountain Bike
  1629. AddStaticVehicleEx(444,615.0000000,535.5999756,276.6000061,128.0000000,0,0,1000); //Monster
  1630. AddStaticVehicleEx(444,611.5000000,541.5000000,276.6000061,127.9962158,0,0,1000); //Monster
  1631. AddStaticVehicleEx(571,588.7000122,577.0000000,275.7000122,132.0000000,0,0,1000); //Kart
  1632. AddStaticVehicleEx(571,587.0000000,579.9000244,275.7000122,131.9952393,0,0,1000); //Kart
  1633. AddStaticVehicleEx(571,585.4000244,582.5000000,275.7000122,131.9952393,0,0,1000); //Kart
  1634. AddStaticVehicleEx(571,436.6000061,778.4000244,359.2000122,223.7500000,0,0,1000); //Kart
  1635. AddStaticVehicleEx(571,439.7000122,780.9000244,359.2000122,225.7474976,0,0,1000); //Kart
  1636. AddStaticVehicleEx(571,442.3999939,783.0000000,359.3999939,225.7470703,0,0,1000); //Kart
  1637. //==============DROP===========================================================================
  1638. CreateObject(8040, -3783.8999023438, 1894.5999755859, 966.29998779297, 0, 0, 0);
  1639. CreateObject(8355, -3676, 1896.3000488281, 953.5, 10, 0, 90);
  1640. CreateObject(1632, -3617.8000488281, 1907.3000488281, 944.59997558594, 0, 0, 270);
  1641. CreateObject(1632, -3618.6000976563, 1885.3000488281, 944.59997558594, 0, 0, 270);
  1642. CreateObject(8355, -3547.1000976563, 1896.3000488281, 909.09997558594, 27.99755859375, 0, 90);
  1643. CreateObject(8355, -3425, 1896.3000488281, 844.20001220703, 27.9931640625, 0, 90);
  1644. CreateObject(8355, -3296.1000976563, 1896.6999511719, 807.20001220703, 3.9931640625, 0, 90);
  1645. CreateObject(7979, -3244.1999511719, 1895.5999755859, 806.59997558594, 356, 0, 268);
  1646. CreateObject(8355, -3167.3999023438, 1896.6999511719, 767.79998779297, 29.988037109375, 0, 90);
  1647. CreateObject(8355, -3049.6999511719, 1896.5999755859, 699.79998779297, 29.987182617188, 0, 90);
  1648. CreateObject(8355, -2930.5, 1896.5999755859, 631, 29.987182617188, 0, 90);
  1649. CreateObject(1655, -2874.8000488281, 1912.1999511719, 600.40002441406, 332, 0, 269.25);
  1650. CreateObject(1655, -2874.8000488281, 1903.5999755859, 600.40002441406, 331.99584960938, 0, 269.24743652344);
  1651. CreateObject(1655, -2874.8000488281, 1895, 600.40002441406, 331.99584960938, 0, 269.24743652344);
  1652. CreateObject(1655, -2874.8999023438, 1886.5999755859, 600.40002441406, 331.99584960938, 0, 269.24743652344);
  1653. CreateObject(1655, -2875, 1880.6999511719, 600.40002441406, 331.99584960938, 0, 269.24743652344);
  1654. CreateObject(7984, -2590.8999023438, 1918.5, 344.29998779297, 0, 0, 0);
  1655. AddStaticVehicleEx(409,-3788.3999023,1882.0000000,966.5000000,0.0000000,0,126,60); //Stretch
  1656. AddStaticVehicleEx(481,-3766.6999512,1910.3000488,966.0999756,180.0000000,0,126,60); //BMX
  1657. AddStaticVehicleEx(481,-3769.5000000,1909.8000488,966.0999756,180.0000000,0,126,60); //BMX
  1658. AddStaticVehicleEx(433,-3794.5000000,1907.5000000,967.0999756,180.0000000,0,126,60); //Barracks
  1659. AddStaticVehicleEx(506,-3778.8000488,1879.5000000,966.2999878,0.0000000,0,126,60); //Super GT
  1660. AddStaticVehicleEx(506,-3775.6000977,1879.5000000,966.2999878,358.5000000,0,126,60); //Super GT
  1661. AddStaticVehicleEx(541,-3772.1999512,1879.1999512,966.2000122,0.0000000,0,126,60); //Bullet
  1662. AddStaticVehicleEx(478,-3807.5000000,1908.6999512,966.5999756,178.0000000,0,126,60); //Walton
  1663. AddStaticVehicleEx(478,-3804.5000000,1909.0000000,966.5999756,177.9949951,0,126,60); //Walton
  1664. AddStaticVehicleEx(571,-3781.8999023,1910.0999756,965.9000244,180.0000000,0,126,60); //Kart
  1665. AddStaticVehicleEx(571,-3779.0000000,1910.0000000,965.9000244,180.0000000,0,126,60); //Kart
  1666. AddStaticVehicleEx(571,-3785.1000977,1910.0000000,965.9000244,180.0000000,0,126,60); //Kart
  1667. AddStaticVehicleEx(571,-3788.1999512,1909.9000244,965.9000244,180.0000000,0,126,60); //Kart
  1668. AddStaticVehicleEx(522,-3821.1999512,1886.0999756,966.2000122,270.0000000,0,126,60); //NRG-500
  1669. AddStaticVehicleEx(522,-3820.6999512,1888.9000244,966.2000122,270.0000000,0,126,60); //NRG-500
  1670. AddStaticVehicleEx(522,-3820.8000488,1892.0000000,966.2000122,270.0000000,0,126,60); //NRG-500
  1671. AddStaticVehicleEx(522,-3820.3000488,1897.8000488,966.2000122,270.0000000,0,126,60); //NRG-500
  1672. AddStaticVehicleEx(522,-3820.5000000,1904.0999756,966.2000122,270.0000000,0,126,60); //NRG-500
  1673. //|=============== POLICIA MILITAR =====================================================================================================
  1674. CopCarros[0] = AddStaticVehicleEx(596,1528.1450,-1683.9496,5.6140,270.1498,103,1,-1); // carro pm 1
  1675. CopCarros[1] = AddStaticVehicleEx(596,1538.7369,-1644.5382,5.6141,180.1423,103,1,-1); // carro pm 2
  1676. CopCarros[2] = AddStaticVehicleEx(528,1558.9006,-1693.3123,5.9415,178.8225,1,1,-1); // carro pm 3
  1677. CopCarros[3] = AddStaticVehicleEx(596,1583.5354,-1711.4492,5.6148,359.9980,103,1,-1); // carro pm 4
  1678. CopCarros[4] = AddStaticVehicleEx(599,1546.7996,-1667.9423,6.0823,89.8966,103,1,-1); // carro pm 5
  1679. CopCarros[5] = AddStaticVehicleEx(599,1603.0945,-1700.1824,6.0806,89.6221,103,1,-1); // carro pm 6
  1680. CopCarros[6] = AddStaticVehicleEx(427,1564.6661,-1710.9261,6.0222,359.5273,103,1,-1); // carro pm 7
  1681. CopCarros[7] = AddStaticVehicleEx(427,1585.2527,-1667.6151,6.0242,269.5962,103,1,-1); // carro pm 8
  1682. CopCarros[8] = AddStaticVehicleEx(528,1603.0577,-1684.0579,5.9346,90.1354,1,1,-1); // carro pm 9
  1683. CopCarros[9] = AddStaticVehicleEx(596,1604.5824,-1630.2122,13.2354,89.0858,103,1,-1); // carro pm 10
  1684. CopCarros[10] = AddStaticVehicleEx(596,1604.6581,-1619.0682,13.2364,88.2327,103,1,-1); // carro pm 11
  1685. CopCarros[11] = AddStaticVehicleEx(437,1601.8105,-1608.3923,13.6168,89.1554,103,1,-1); // carro pm 12
  1686. CopCarros[12] = AddStaticVehicleEx(523,1545.7140,-1709.9341,5.4589,359.5055,1,1,-1); // carro pm 13
  1687. CopCarros[13] = AddStaticVehicleEx(523,1540.9708,-1706.4495,5.4605,321.1239,1,1,-1); // carro pm 14
  1688. CopCarros[14] = AddStaticVehicleEx(523,1536.2023,-1699.5582,5.4611,305.3377,1,1,-1); // carro pm 15
  1689. CopCarros[15] = AddStaticVehicleEx(523,1563.9626,-1635.8737,13.1244,358.7776,1,1,-1); // carro pm 16
  1690. CopCarros[16] = AddStaticVehicleEx(523,1553.6471,-1635.6586,13.1271,1.6618,1,1,-1); // carro pm 17
  1691. CopCarros[17] = AddStaticVehicleEx(497,1562.3970,-1657.4563,28.5724,88.8303,1,46,-1); // heli pm 18
  1692. CopCarros[18] = AddStaticVehicleEx(497,1559.3757,-1642.7686,28.5794,89.0518,1,46,-1); // heli pm 19
  1693. CopCarros[19] = AddStaticVehicleEx(596,1546.5264,-1654.9142,5.6115,89.7843,103,1,-1); // carro pm 1
  1694. CopCarros[20] = AddStaticVehicleEx(596,1546.5048,-1680.2897,5.6168,89.7568,103,1,-1); // carro pm 2
  1695. CopCarros[21] = AddStaticVehicleEx(596,1604.6068,-1624.5585,13.2365,89.8062,103,1,-1); // carro pm 3
  1696. CopCarros[22] = AddStaticVehicleEx(596,1574.5569,-1711.3885,5.6114,359.6248,103,1,-1); // carro PM
  1697. //====================== Policia Federal =====================================================================
  1698. AddStaticVehicleEx(596,938.9000244,-1051.6999512,31.3999996,236.0000000,-1,-1,999999); //Police Car (LSPD)
  1699. AddStaticVehicleEx(596,938.7999878,-1047.1999512,31.3999996,235.9973145,-1,-1,999999); //Police Car (LSPD)
  1700. AddStaticVehicleEx(596,938.7999878,-1042.4000244,31.3999996,237.9973145,-1,-1,999999); //Police Car (LSPD)
  1701. AddStaticVehicleEx(523,926.5000000,-1052.8000488,31.2999992,172.0000000,-1,-1,999999); //HPV1000
  1702. AddStaticVehicleEx(523,924.2999878,-1052.8000488,31.2999992,171.9964600,-1,-1,999999); //HPV1000
  1703. AddStaticVehicleEx(523,921.5000000,-1052.9000244,31.2999992,167.9964600,-1,-1,999999); //HPV1000
  1704. AddStaticVehicleEx(427,881.2999878,-1050.0000000,31.7999992,90.0000000,-1,-1,999999); //Enforcer
  1705. AddStaticVehicleEx(427,881.2000122,-1045.5000000,31.7999992,90.0000000,-1,-1,999999); //Enforcer
  1706. AddStaticVehicleEx(497,906.0000000,-1048.1999512,30.3999996,92.0000000,-1,-1,999999); //Police Maverick
  1707. AddStaticVehicleEx(596,930.7999878,-1001.0999756,38.0000000,326.0000000,-1,-1,999999); //Police Car (LSPD)
  1708. AddStaticVehicleEx(596,925.7999878,-999.9000244,38.0000000,325.9973145,-1,-1,999999); //Police Car (LSPD)
  1709. //====================== Policia Rodoviaria =====================================================================
  1710. AddStaticVehicleEx(599,905.9000244,-1213.5999756,17.1000004,0.0000000,-1,-1,999999); //Police Ranger
  1711. AddStaticVehicleEx(599,900.7999878,-1213.6999512,17.1000004,0.0000000,-1,-1,999999); //Police Ranger
  1712. AddStaticVehicleEx(599,895.5000000,-1213.9000244,17.1000004,0.0000000,-1,-1,999999); //Police Ranger
  1713. AddStaticVehicleEx(596,886.9000244,-1214.3000488,16.7999992,0.0000000,-1,-1,999999); //Police Car (LSPD)
  1714. AddStaticVehicleEx(596,882.5999756,-1214.3000488,16.7999992,0.0000000,-1,-1,999999); //Police Car (LSPD)
  1715. AddStaticVehicleEx(596,878.4000244,-1214.4000244,16.7999992,0.0000000,-1,-1,999999); //Police Car (LSPD)
  1716. AddStaticVehicleEx(497,856.2999878,-1216.3000488,17.2000008,0.0000000,-1,-1,999999); //Police Maverick
  1717. AddStaticVehicleEx(522,918.5000000,-1207.5000000,16.5000000,92.0000000,37,37,999999); //NRG-500
  1718. AddStaticVehicleEx(522,918.5000000,-1205.4000244,16.5000000,91.9995117,37,37,999999); //NRG-500
  1719. AddStaticVehicleEx(523,918.5999756,-1203.0999756,16.6000004,100.0000000,-1,-1,999999); //HPV1000
  1720. AddStaticVehicleEx(523,918.7000122,-1201.0000000,16.6000004,99.9975586,-1,-1,999999); //HPV1000
  1721. AddStaticVehicleEx(427,865.9000244,-1246.0000000,15.1000004,90.0000000,-1,-1,999999); //Enforcer
  1722. AddStaticVehicleEx(427,866.0999756,-1241.0999756,15.1000004,90.0000000,-1,-1,999999); //Enforcer
  1723. //====================== S.W.A.T ================================================================================
  1724. CopCarros[23] = AddStaticVehicleEx(599,305.6436,-1480.8773,24.7822,233.6496,0,0,-1); // ROTA 1
  1725. CopCarros[24] = AddStaticVehicleEx(599,299.2804,-1490.0864,24.7848,234.4877,0,0,-1); // ROTA 2
  1726. CopCarros[25] = AddStaticVehicleEx(599,293.0708,-1545.5187,24.7818,55.2270,0,0,-1); // ROTA 3
  1727. CopCarros[26] = AddStaticVehicleEx(599,299.5797,-1536.4169,24.7850,54.5720,0,0,-1); // ROTA 4
  1728. CopCarros[27] = AddStaticVehicleEx(490,280.9660,-1530.7444,24.7223,233.8178,0,0,-1); // ROTA 5
  1729. CopCarros[28] = AddStaticVehicleEx(490,289.9776,-1516.8864,24.7212,234.1068,0,0,-1); // ROTA 6
  1730. CopCarros[29] = AddStaticVehicleEx(427,284.4430,-1526.7015,24.7260,234.6956,0,0,-1); // ROTA 7
  1731. CopCarros[30] = AddStaticVehicleEx(427,300.2951,-1504.2303,24.7290,234.6367,0,0,-1); // ROTA 8
  1732. CopCarros[31] = AddStaticVehicleEx(597,358.2215,-1558.4650,32.5870,55.8145,0,0,-1); // ROTA 9
  1733. CopCarros[32] = AddStaticVehicleEx(597,359.0267,-1548.4785,32.9330,53.0377,0,0,-1); // ROTA 10
  1734. CopCarros[33] = AddStaticVehicleEx(523,318.6457,-1507.9160,24.4874,56.1140,1,1,-1); // ROTA 11
  1735. CopCarros[34] = AddStaticVehicleEx(523,315.2908,-1513.3015,24.4917,54.6393,1,1,-1); // ROTA 12
  1736. CopCarros[35] = AddStaticVehicleEx(523,311.6905,-1518.7906,24.4922,55.3032,1,1,-1); // ROTA 13
  1737. CopCarros[36] = AddStaticVehicleEx(497,326.2104,-1498.3422,76.7152,221.9967,0,0,-1); // ROTA 14
  1738. CopCarros[37] = AddStaticVehicleEx(497,318.8298,-1508.1473,76.7160,231.9834,0,0,-1); // ROTA 15
  1739. CopCarros[38] = AddStaticVehicleEx(560,293.1649,-1512.6666,24.2985,235.6584,0,0,-1); // carro ROTA 1
  1740. CopCarros[39] = AddStaticVehicleEx(560,302.6249,-1498.9799,24.3039,234.9235,0,0,-1); // carro ROTA 2
  1741. CopCarros[40] = AddStaticVehicleEx(522,316.9765,-1510.8833,24.4822,55.7618,0,0,-1); // carro ROTA 3
  1742. CopCarros[41] = AddStaticVehicleEx(522,313.2525,-1516.1130,24.4814,56.7616,0,0,-1); // carro ROTA 4
  1743. CopCarros[42] = AddStaticVehicleEx(522,320.1462,-1505.5435,24.4869,54.9424,0,0,-1); // carro ROTA 5
  1744. CopCarros[43] = AddStaticVehicleEx(497,299.2999878,-1551.9000244,76.8000031,252.0000000,0,0,999999999); //Police Maverick
  1745. CopCarros[44] = AddStaticVehicleEx(596,383.7999878,-1524.6999512,32.2999992,46.0000000,0,0,9999999999999); //Police Car (LSPD)
  1746. CopCarros[45] = AddStaticVehicleEx(596,392.0000000,-1517.0999756,32.2999992,45.9997559,0,0,9999999999999); //Police Car (LSPD)
  1747. CopCarros[46] = AddStaticVehicleEx(596,338.7999878,-1525.4000244,33.0999985,325.9996338,0,0,9999999999999); //Police Car (LSPD)
  1748. //==================== Forças Armadas ===============================================================================
  1749. CopCarros[48] = AddStaticVehicleEx(433,2465.8000488,-2108.3000488,14.1000004,0.0000000,44,44,9999999999); //Barracks
  1750. CopCarros[49] = AddStaticVehicleEx(433,2454.8999023,-2107.1000977,14.1000004,0.0000000,44,44,9999999999); //Barracks
  1751. CopCarros[50] = AddStaticVehicleEx(427,2502.6000977,-2108.1999512,13.8000002,0.0000000,44,44,9999999999); //Enforcer
  1752. CopCarros[51] = AddStaticVehicleEx(470,2479.0000000,-2108.6000977,13.6999998,0.0000000,44,44,9999999999); //Patriot
  1753. CopCarros[52] = AddStaticVehicleEx(470,2487.0000000,-2108.6999512,13.6999998,0.0000000,44,44,9999999999); //Patriot
  1754. CopCarros[53] = AddStaticVehicleEx(523,2520.0000000,-2104.6000977,13.1000004,88.0000000,44,44,9999999999); //HPV1000
  1755. CopCarros[54] = AddStaticVehicleEx(523,2519.8999023,-2111.3999023,13.1999998,87.9949951,44,44,9999999999); //HPV1000
  1756. CopCarros[55] = AddStaticVehicleEx(523,2519.5000000,-2118.8000488,13.1999998,87.9949951,44,44,9999999999); //HPV1000
  1757. CopCarros[56] = AddStaticVehicleEx(432,2459.0000000,-2077.8999023,13.6000004,178.0000000,44,44,9999999999); //Rhino
  1758. CopCarros[57] = AddStaticVehicleEx(432,2532.1999512,-2075.8000488,13.5000000,177.9949951,44,44,9999999999); //Rhino
  1759. CopCarros[58] = AddStaticVehicleEx(596,2394.8999023,-2136.6000977,13.3999996,270.0000000,44,44,9999999999); //Police Car (LSPD)
  1760. CopCarros[59] = AddStaticVehicleEx(596,2395.3999023,-2126.3000488,13.3999996,270.0000000,44,44,9999999999); //Police Car (LSPD)
  1761. CopCarros[60] = AddStaticVehicleEx(596,2396.0000000,-2116.5000000,13.3999996,270.0000000,44,44,9999999999); //Police Car (LSPD)
  1762. CopCarros[61] = AddStaticVehicleEx(596,2395.6999512,-2105.8999023,13.3999996,270.0000000,44,44,9999999999); //Police Car (LSPD)
  1763. CopCarros[62] = AddStaticVehicleEx(596,2395.3000488,-2095.5000000,13.3999996,270.0000000,44,44,9999999999); //Police Car (LSPD)
  1764. CopCarros[63] = AddStaticVehicleEx(596,2395.3999023,-2085.5000000,13.3999996,270.0000000,44,44,9999999999); //Police Car (LSPD)
  1765. CopCarros[64] = AddStaticVehicleEx(596,2396.0000000,-2074.5000000,13.3999996,270.0000000,44,44,9999999999); //Police Car (LSPD)
  1766. CopCarros[65] = AddStaticVehicleEx(497,2517.1000977,-2108.6000977,26.6000004,0.0000000,44,44,9999999999); //Police Maverick
  1767. CopCarros[66] = AddStaticVehicleEx(425,2506.1000977,-2109.6000977,27.2000008,0.0000000,44,44,9999999999); //Hunter
  1768. CopCarros[67] = AddStaticVehicleEx(425,2494.3999023,-2109.5000000,27.2000008,0.0000000,44,44,9999999999); //Hunter
  1769. CopCarros[68] = AddStaticVehicleEx(548,2480.1999512,-2114.3000488,28.3999996,0.0000000,44,44,9999999999); //Cargobob
  1770. CopCarros[69] = AddStaticVehicleEx(520,2463.5000000,-2117.8999023,28.0000000,90.0000000,44,44,9999999999); //Hydra
  1771. CreateObject(980,2326.1999512,-2103.6999512,15.3000002,0.0000000,0.0000000,90.0000000); //object(airportgate) (1)
  1772. CreateObject(980,2326.3000488,-2093.8999023,15.3000002,0.0000000,0.0000000,89.9975586); //object(airportgate) (2)
  1773. CreateObject(980,2326.6999512,-2082.8999023,15.3000002,0.0000000,0.0000000,83.9975586); //object(airportgate) (3)
  1774. CreateObject(980,2328.1000977,-2071.6999512,15.3000002,0.0000000,0.0000000,81.9938965); //object(airportgate) (4)
  1775. CreateObject(980,2333.1999512,-2062.8000488,15.3000002,0.0000000,0.0000000,35.9938965); //object(airportgate) (5)
  1776. CreateObject(980,2403.0000000,-2058.8000488,14.8000002,0.0000000,0.0000000,356.0000000); //object(airportgate) (6)
  1777. CreateObject(980,2424.3999023,-2065.5000000,15.3000002,0.0000000,0.0000000,1.4954834); //object(airportgate) (7)
  1778. CreateObject(980,2424.1000977,-2078.8000488,15.3000002,0.0000000,0.0000000,91.4941406); //object(airportgate) (8)
  1779. CreateObject(980,2424.5000000,-2100.1000977,15.3000002,0.0000000,0.0000000,89.4941406); //object(airportgate) (9)
  1780. //==============================================[CARROS DRIFT]===========================================================================
  1781. AddStaticVehicleEx(562,-266.2000122,1541.9000244,75.0999985,136.0000000,37,37,999999999); //Elegy
  1782. AddStaticVehicleEx(562,-268.7999878,1544.4000244,75.0999985,135.9997559,37,37,999999999); //Elegy
  1783. AddStaticVehicleEx(562,-271.2000122,1546.5999756,75.0999985,135.9997559,37,37,999999999); //Elegy
  1784. AddStaticVehicleEx(562,-273.7999878,1549.3000488,75.0999985,135.9997559,37,37,999999999); //Elegy
  1785. AddStaticVehicleEx(559,-278.2999878,1554.5000000,75.0999985,134.0000000,109,24,999999999); //Jester
  1786. AddStaticVehicleEx(559,-280.6000061,1556.9000244,75.0999985,133.9947510,109,24,999999999); //Jester
  1787. AddStaticVehicleEx(559,-283.2000122,1559.4000244,75.0999985,133.9947510,109,24,999999999); //Jester
  1788. AddStaticVehicleEx(560,-288.2999878,1564.5000000,75.1999969,134.0000000,77,98,999999999); //Sultan
  1789. AddStaticVehicleEx(560,-290.2999878,1566.5999756,75.1999969,133.9947510,77,98,999999999); //Sultan
  1790. AddStaticVehicleEx(560,-292.6000061,1569.4000244,75.1999969,133.9947510,77,98,999999999); //Sultan
  1791. //=============================================[CARROS BALLAS]===========================================================================
  1792. BallasCarros[0] = AddStaticVehicleEx(424,1087.0470,-1226.7360,15.5894,1.8768,186,186,RESPAWN_TIME); // carro ballas 1 [ 53 ]
  1793. BallasCarros[1] = AddStaticVehicleEx(560,1094.7773,-1226.7167,15.6089,359.7791,186,186,RESPAWN_TIME); // carro ballas 2 [ 54 ]
  1794. BallasCarros[2] = AddStaticVehicleEx(560,1099.2961,-1226.7606,15.5311,3.7478,186,186,RESPAWN_TIME); // carro ballas 3 [ 55 ]
  1795. BallasCarros[3] = AddStaticVehicleEx(559,1104.6244,-1226.5577,15.4777,2.9383,186,186,RESPAWN_TIME); // carro ballas 4 [ 56 ]
  1796. BallasCarros[4] = AddStaticVehicleEx(562,1109.9979,-1226.3903,15.4266,4.9545,186,186,RESPAWN_TIME); // carro ballas 5 [ 57 ]
  1797. BallasCarros[5] = AddStaticVehicleEx(522,1110.5137,-1250.6727,15.3953,174.0996,186,186,RESPAWN_TIME); // carro ballas 6 [ 58 ]
  1798. BallasCarros[6] = AddStaticVehicleEx(522,1109.1437,-1250.8435,15.4107,179.3676,186,186,RESPAWN_TIME); // carro ballas 7 [ 59 ]
  1799. BallasCarros[7] = AddStaticVehicleEx(567,1103.3754,-1249.2910,15.6839,181.0157,186,186,RESPAWN_TIME); // carro ballas 8 [ 60 ]
  1800. BallasCarros[8] = AddStaticVehicleEx(487,1129.0411,-1167.8796,32.1671,31.7420,186,186,RESPAWN_TIME); // heli ballas [ 61 ]
  1801. BallasCarros[9] = AddStaticVehicleEx(533,1089.3580,-1249.6661,15.4852,181.2573,186,186,RESPAWN_TIME); // moto ballas 1 [ 62 ]
  1802. BallasCarros[10] = AddStaticVehicleEx(480,1096.6556,-1249.7533,15.6572,177.8184,186,186,RESPAWN_TIME); // moto ballas 2 [ 63 ]
  1803. BallasCarros[11] = AddStaticVehicleEx(413,1087.3950,-1220.0513,17.5002,269.7915,186,186,RESPAWN_TIME); // van ballas [528]
  1804. BallasCarros[12] = AddStaticVehicleEx(540,1102.2539,-1220.1254,17.5104,268.5367,186,186,RESPAWN_TIME); // carro ballas 1 [529]
  1805. //=============================================[CARROS GROOVE STREET]==============================================================--
  1806. GrooveCar[0] = AddStaticVehicleEx(424,2499.3936,-1683.6714,13.1049,277.9147,86,86,RESPAWN_TIME); // carro groove 1 [ 64 ]
  1807. GrooveCar[1] = AddStaticVehicleEx(560,2473.9622,-1693.5035,13.2200,359.7079,86,86,RESPAWN_TIME); // carro groove 2 [ 65 ]
  1808. GrooveCar[2] = AddStaticVehicleEx(560,2508.3750,-1677.2435,13.2115,328.8571,86,86,RESPAWN_TIME); // carro groove 3 [ 66 ]
  1809. GrooveCar[3] = AddStaticVehicleEx(559,2510.1279,-1667.1589,13.1800,15.1649,86,86,RESPAWN_TIME); // carro groove 4 [ 67 ]
  1810. GrooveCar[4] = AddStaticVehicleEx(562,2496.8115,-1647.7126,13.2535,210.6379,86,86,RESPAWN_TIME); // carro groove 5 [ 68 ]
  1811. GrooveCar[5] = AddStaticVehicleEx(567,2468.7090,-1670.3972,13.0992,14.5934,86,86,RESPAWN_TIME); // carro groove 6 [ 69 ]
  1812. GrooveCar[6] = AddStaticVehicleEx(480,2515.0391,-1686.0542,13.2324,74.8100,86,86,RESPAWN_TIME); // carro groove 7 [ 70 ]
  1813. GrooveCar[7] = AddStaticVehicleEx(533,2483.1802,-1653.1826,13.0933,266.6223,86,86,RESPAWN_TIME); // carro groove 8 [ 71 ]
  1814. GrooveCar[8] = AddStaticVehicleEx(487,2528.1475,-1677.7980,20.1070,88.8134,86,86,RESPAWN_TIME); // heli groove [ 72 ]
  1815. GrooveCar[9] = AddStaticVehicleEx(522,2487.5161,-1685.6387,13.1070,44.6681,86,86,RESPAWN_TIME); // groove moto 1 [ 73 ]
  1816. GrooveCar[10] = AddStaticVehicleEx(522,2484.9285,-1685.7277,13.1016,45.1795,86,86,RESPAWN_TIME); // groove moto 2 [ 74 ]
  1817. //==========================================[CARRROS AZTECAS]=============================================================
  1818. AztecasCar[0] = AddStaticVehicleEx(567,2174.8999023,-1807.5000000,13.1999998,0.0000000,125,125,999999999); //Savanna
  1819. AztecasCar[1] = AddStaticVehicleEx(567,2180.8999023,-1807.5000000,13.1999998,0.0000000,125,125,999999999); //Savanna
  1820. AztecasCar[2] = AddStaticVehicleEx(575,2186.8000488,-1807.1999512,13.1000004,0.0000000,125,125,999999999); //Broadway
  1821. AztecasCar[3] = AddStaticVehicleEx(536,2175.3000488,-1793.9000244,13.1000004,180.0000000,125,125,999999999); //Blade
  1822. AztecasCar[4] = AddStaticVehicleEx(536,2169.8000488,-1793.8000488,13.1000004,180.0000000,125,125,999999999); //Blade
  1823. AztecasCar[5] = AddStaticVehicleEx(535,2164.8999023,-1793.8000488,13.1999998,180.0000000,125,125,999999999); //Slamvan
  1824. AztecasCar[6] = AddStaticVehicleEx(461,2154.1000977,-1794.0000000,13.0000000,270.0000000,125,125,999999999); //PCJ-600
  1825. AztecasCar[7] = AddStaticVehicleEx(461,2154.1999512,-1796.4000244,13.0000000,270.0000000,125,125,999999999); //PCJ-600
  1826. AztecasCar[8] = AddStaticVehicleEx(429,2169.6000977,-1808.0999756,13.1000004,0.0000000,125,125,999999999); //Banshee
  1827. AztecasCar[9] = AddStaticVehicleEx(429,2159.6000977,-1793.9000244,13.1000004,180.0000000,125,125,999999999); //Banshee
  1828. //========================================[carros Vagos]============================================
  1829. VagosCar[0] = AddStaticVehicleEx(522,2515.1000977,-2016.1999512,13.1000004,0.0000000,6,6,999999999999); //NRG-500
  1830. VagosCar[1] = AddStaticVehicleEx(522,2512.8999023,-2016.1999512,13.1000004,0.0000000,6,6,999999999999); //NRG-500
  1831. VagosCar[2] = AddStaticVehicleEx(560,2507.0000000,-2017.0999756,13.1999998,90.0000000,6,6,999999999999); //Sultan
  1832. VagosCar[3] = AddStaticVehicleEx(560,2507.5000000,-2002.3000488,13.1999998,90.0000000,6,6,999999999999); //Sultan
  1833. VagosCar[4] = AddStaticVehicleEx(567,2498.1000977,-2002.3000488,13.3999996,90.0000000,6,6,999999999999); //Savanna
  1834. VagosCar[5] = AddStaticVehicleEx(567,2498.1000977,-2017.0999756,13.3999996,90.0000000,6,6,999999999999); //Savanna
  1835. VagosCar[6] = AddStaticVehicleEx(429,2489.3000488,-2002.5000000,13.1999998,90.0000000,6,6,999999999999); //Banshee
  1836. VagosCar[7] = AddStaticVehicleEx(480,2482.8999023,-2017.0000000,13.3000002,90.0000000,6,6,999999999999); //Comet
  1837. VagosCar[8] = AddStaticVehicleEx(480,2481.8999023,-2002.5999756,13.3000002,90.0000000,6,6,999999999999); //Comet
  1838. VagosCar[9] = AddStaticVehicleEx(429,2490.1000977,-2017.0999756,13.1999998,90.0000000,6,6,999999999999); //Banshee
  1839. VagosCar[10] = AddStaticVehicleEx(487,2488.3999023,-1990.1999512,17.2999992,180.0000000,6,6,999999999999); //Maverick
  1840. //===================================[CARROS HITMANS]==========================================================
  1841. CarrosHit[0] = AddStaticVehicleEx(560,1094.65625000,-332.48144531,73.79716492,88.00000000,24,24,RESPAWN_TIME); //Sultan
  1842. CarrosHit[1] = AddStaticVehicleEx(560,1094.12963867,-339.02896118,73.79716492,87.99499512,24,24,RESPAWN_TIME); //Sultan
  1843. CarrosHit[2] = AddStaticVehicleEx(487,1061.28405762,-304.56274414,74.25718689,0.00000000,24,24,RESPAWN_TIME); //Maverick
  1844. CarrosHit[3] = AddStaticVehicleEx(451,1029.86572266,-313.75509644,73.75656128,178.00000000,24,24,RESPAWN_TIME); //Turismo
  1845. CarrosHit[4] = AddStaticVehicleEx(451,1034.71228027,-313.96206665,73.75656128,178.00000000,24,24,RESPAWN_TIME); //Turismo
  1846. CarrosHit[5] = AddStaticVehicleEx(402,1082.16674805,-292.73696899,73.93218994,178.00000000,24,24,RESPAWN_TIME); //Buffalo
  1847. CarrosHit[6] = AddStaticVehicleEx(402,1085.86547852,-293.00689697,73.93218994,177.99499512,24,24,RESPAWN_TIME); //Buffalo
  1848. CarrosHit[7] = AddStaticVehicleEx(579,1041.64013672,-349.49005127,74.09082794,0.00000000,24,24,RESPAWN_TIME); //Huntley
  1849. CarrosHit[8] = AddStaticVehicleEx(461,1089.88940430,-314.69131470,73.66668701,88.00000000,24,24,RESPAWN_TIME); //PCJ-600
  1850. CarrosHit[9] = AddStaticVehicleEx(522,1089.72363281,-316.59765625,73.63111115,87.99499512,24,24,RESPAWN_TIME); //NRG-500
  1851. CarrosHit[10] = AddStaticVehicleEx(581,1089.49426270,-318.37503052,73.69206238,87.99499512,24,24,RESPAWN_TIME); //BF-400
  1852. CarrosHit[11] = AddStaticVehicleEx(411,1073.88208008,-292.13003540,73.78505707,178.00000000,24,24,RESPAWN_TIME); //Infernus
  1853. CarrosHit[12] = AddStaticVehicleEx(411,1077.37707520,-292.25567627,73.78505707,178.00000000,24,24,RESPAWN_TIME); //Infernus [469]
  1854. CarrosHit[13] = AddStaticVehicleEx(565,1070.65637207,-292.69549561,73.67698669,180.00000000,24,24,RESPAWN_TIME); //Flash [ 262 ]
  1855. CarrosHit[14] = AddStaticVehicleEx(565,1067.02380371,-292.78121948,73.67698669,180.00000000,24,24,RESPAWN_TIME); //Flash [714]
  1856. //==============DROP2============================================================================
  1857. AddStaticVehicleEx(522,2972.1999512,1249.9000244,622.4000244,88.0000000,48,79,25); //NRG-500
  1858. AddStaticVehicleEx(522,2972.1000977,1253.1999512,622.4000244,87.9949951,48,79,25); //NRG-500
  1859. AddStaticVehicleEx(522,2972.0000000,1247.0000000,622.4000244,87.9949951,48,79,25); //NRG-500
  1860. AddStaticVehicleEx(522,2971.6999512,1244.0000000,622.4000244,87.9949951,48,79,25); //NRG-500
  1861. AddStaticVehicleEx(541,2953.1000977,1232.3000488,622.4000244,0.0000000,48,79,25); //Bullet
  1862. AddStaticVehicleEx(541,2956.3000488,1232.3000488,622.4000244,0.0000000,48,79,25); //Bullet
  1863. AddStaticVehicleEx(565,2943.3000488,1262.5000000,622.4000244,0.0000000,76,117,25); //Flash
  1864. AddStaticVehicleEx(565,2949.6999512,1262.0000000,622.4000244,0.0000000,76,117,25); //Flash
  1865. AddStaticVehicleEx(603,2934.1000977,1232.4000244,622.7000122,0.0000000,100,100,25); //Phoenix
  1866. AddStaticVehicleEx(481,2917.8999023,1232.0000000,622.2999878,0.0000000,157,152,25); //BMX
  1867. AddStaticVehicleEx(481,2920.8999023,1231.6999512,622.2999878,0.0000000,157,152,25); //BMX
  1868. AddStaticVehicleEx(481,2914.6999512,1231.6999512,622.2999878,0.0000000,157,152,25); //BMX
  1869. AddStaticVehicleEx(428,2927.6000977,1261.6999512,623.0000000,180.0000000,38,55,25); //Securicar
  1870. AddStaticVehicleEx(428,2924.3000488,1261.6999512,623.0000000,180.0000000,38,55,25); //Securicar
  1871. AddStaticVehicleEx(468,-506.6000061,-2027.8000488,50.7000008,84.0000000,132,4,25); //Sanchez
  1872. AddStaticVehicleEx(468,-507.2000122,-2030.4000244,51.0999985,83.9959717,132,4,25); //Sanchez
  1873. AddStaticVehicleEx(468,-508.0000000,-2032.5000000,51.2999992,83.9959717,132,4,25); //Sanchez
  1874. AddStaticVehicleEx(468,-508.1000061,-2035.6999512,50.7000008,83.9959717,132,4,25); //Sanchez
  1875. AddStaticVehicleEx(473,-477.7000122,-1886.6999512,5.4000001,110.0000000,158,164,25); //Dinghy
  1876. AddStaticVehicleEx(473,-476.2999878,-1890.3000488,5.4000001,109.9951172,158,164,25); //Dinghy
  1877. AddStaticVehicleEx(473,-474.6000061,-1894.3000488,5.4000001,109.9951172,158,164,25); //Dinghy
  1878. AddStaticVehicleEx(473,-473.2999878,-1897.6999512,5.4000001,109.9951172,158,164,25); //Dinghy
  1879. CreateObject(8355, 2846.1999511719, 1246.4000244141, 573.70001220703, 316, 0, 90);
  1880. CreateObject(8040, 2935.8000488281, 1247.3000488281, 622.5, 0, 0, 180);
  1881. CreateObject(8355, 2749.6999511719, 1246.4000244141, 477.10000610352, 314, 0, 90);
  1882. CreateObject(8355, 2680.6000976563, 1246, 361.89999389648, 287.99475097656, 0, 90);
  1883. CreateObject(8355, 2611.5, 1246, 247.69999694824, 313.99011230469, 0, 90);
  1884. CreateObject(8355, 2516.8999023438, 1246, 149.69999694824, 313.9892578125, 0, 90);
  1885. CreateObject(8355, 2480.6999511719, 1245.9000244141, 112.09999847412, 321.9892578125, 0, 90);
  1886. CreateObject(8395, 2325.8000488281, 1213.3000488281, 50.099998474121, 0, 0, 0);
  1887. CreateObject(1634, 2429, 1227.9000244141, 73.099998474121, 322, 0, 90.5);
  1888. CreateObject(1634, 2428.8999023438, 1231.9000244141, 73.099998474121, 321.99829101563, 0, 91.249633789063);
  1889. CreateObject(1634, 2428.8000488281, 1235.9000244141, 73.099998474121, 321.99829101563, 0, 90.499633789063);
  1890. CreateObject(1634, 2428.6999511719, 1239.9000244141, 73.099998474121, 321.99829101563, 0, 90.749633789063);
  1891. CreateObject(1634, 2428.6000976563, 1243.9000244141, 73.099998474121, 321.99829101563, 0, 90.999633789063);
  1892. CreateObject(1634, 2428.5, 1247.5999755859, 73.099998474121, 321.99829101563, 0, 90.994262695313);
  1893. CreateObject(1634, 2428.3999023438, 1251.4000244141, 73.099998474121, 321.99829101563, 0, 90.994262695313);
  1894. CreateObject(1634, 2428.3000488281, 1255.4000244141, 73.099998474121, 321.99829101563, 0, 90.994262695313);
  1895. CreateObject(1634, 2428.1999511719, 1259.4000244141, 73.099998474121, 321.99829101563, 0, 90.994262695313);
  1896. CreateObject(1634, 2428.1000976563, 1263.5, 73.099998474121, 321.99829101563, 0, 90.994262695313);
  1897. CreateObject(2780, 2348.6000976563, 1247, 47.200000762939, 0, 0, 0);
  1898. CreateObject(16401, -537.20001220703, -2029.5999755859, 50.5, 0, 0, 180);
  1899. return 1;
  1900. }
  1901. public OnGameModeExit()
  1902. {
  1903. TextDrawHideForAll(players);
  1904. TextDrawDestroy(players);
  1905. for(new i=0; i<MAX_PLAYERS; i++)
  1906. SalvarPlayer(i);
  1907. return 1;
  1908. }
  1909.  
  1910. strtok(const string[], &index)
  1911. {
  1912. new length = strlen(string);
  1913. while ((index < length) && (string[index] <= ' '))
  1914. {
  1915. index++;
  1916. }
  1917.  
  1918. new offset = index;
  1919. new result[20];
  1920. while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
  1921. {
  1922. result[index - offset] = string[index];
  1923. index++;
  1924. }
  1925. result[index - offset] = EOS;
  1926. return result;
  1927. }
  1928. forward ContarJogadores();
  1929. public ContarJogadores()
  1930. {
  1931. new Jogadores = 0;
  1932. for(new i = 0; i < MAX_PLAYERS; i++)
  1933. {
  1934. if(IsPlayerConnected(i) && !IsPlayerNPC(i))
  1935. {
  1936. Jogadores++;
  1937. }
  1938. }
  1939. return Jogadores;
  1940. }
  1941. public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid)
  1942. {
  1943. new Float:Life, Float:Coleete, Float:Dano;
  1944. GetPlayerArmour(damagedid, Coleete);
  1945. GetPlayerHealth(damagedid, Life);
  1946. if(Coleete > 0)
  1947. {
  1948. if(amount > Coleete)
  1949. {
  1950. Dano = amount - Coleete;
  1951. Life = Life - Dano;
  1952. SetPlayerArmour(damagedid, 0.0);
  1953. SetPlayerHealth(damagedid, Life);
  1954. return 1;
  1955. }
  1956. Coleete = Coleete - amount;
  1957. SetPlayerArmour(damagedid, Coleete);
  1958. }
  1959. if(Coleete < 1)
  1960. {
  1961. Life = Life - amount;
  1962. SetPlayerHealth(damagedid, Life);
  1963. }
  1964. return 1;
  1965. }
  1966. stock GetOnLinePlayers()
  1967. {
  1968. new OnLine;
  1969. for(new i, g = GetMaxPlayers(); i < g; i++)
  1970. if(IsPlayerConnected(i))
  1971. OnLine++;
  1972. return OnLine;
  1973. }
  1974.  
  1975. public hora(playerid)
  1976. {
  1977. new str[128],//criamos a primeira string
  1978. str2[128],//criamos a segunda string
  1979. year, //criamos a variavel Ano
  1980. month,//criamos a Varivel mes
  1981. day,//criamos a Variavel dia
  1982. hour,//criamos a Variavel hora
  1983. minute,//criamos a Variavel minutos
  1984. second;//criamos a variavel segundos
  1985.  
  1986. getdate(year, month, day);//getamos a data em ANO:MES:DIA
  1987. gettime(hour,minute,second);//getamos o tempo em HORAS:MINUTOS:SEGUNDOS
  1988. new mes[12];//definimos uma Array para armarzenar os meses
  1989.  
  1990. if(month == 1) { mes = "1"; }//criamos a primeira IF do mes 1 Voce poderia EX:colocar janeiro no lugar de '1'
  1991. else if(month == 2) {mes = "2";}//getamos o mes 2
  1992. else if(month == 3) {mes = "3";}//getamos o mes 3
  1993. else if(month == 4) {mes = "4";}// Assim em diante lembrando, voce podera colocar o mes em nome! Nao em numeros ai fica a criterio!
  1994. else if(month == 5) {mes = "5";}
  1995. else if(month == 6) {mes = "6";}
  1996. else if(month == 7) {mes = "7";}
  1997. else if(month == 8) {mes = "8";}
  1998. else if(month == 9) {mes = "9";}
  1999. else if(month == 10) {mes = "10";}
  2000. else if(month == 11) {mes = "11";}
  2001. else if(month == 12) {mes= "12";}
  2002. format(str, sizeof(str), "~r~%d/~y~%s/~b~%d", day, mes,year);//criamos o formato da string sempre usando o '%d' no caso'DIA/MES/ANO' por isso %d/%d/%d
  2003. TextDrawSetString(Text:Textdraw0, str);//aki a Draw para definir a string,Text:Textdraw0 e o nome da draw la no inicio, a 'str' e a que colocamos no inicio
  2004. format(str2, sizeof(str2), "~r~%d:~b~%d:~y~%d", hour, minute, second);//aqui usaremos a str2 usamos '%d:%d:%d' de Horas:minutos:segundos
  2005. TextDrawSetString(Text:Textdraw1, str2);//se seu GM usa outra Draw no lugar da Text:Textdraw1 mude
  2006. }
  2007. public OnPlayerDisconnect(playerid, reason)
  2008. {
  2009. new
  2010. string[64],
  2011. name[MAX_PLAYER_NAME];
  2012. GetPlayerName(playerid,name,MAX_PLAYER_NAME);
  2013. switch(reason)
  2014. {
  2015. case 0: format(string,sizeof string,"%s Saiu do Servidor. (Erro de Conexão ou Crash)",name);
  2016. case 1: format(string,sizeof string,"%s Saiu do Servidor. (Vontade Própria)",name);
  2017. case 2: format(string,sizeof string,"%s Saiu do Servidor. (Kickado ou Banido)",name);
  2018. }
  2019. SendClientMessageToAll(0xFFFFFFAA,string);
  2020. SalvarPlayer(playerid);
  2021. return 1;
  2022. }
  2023. //=====================SISTEMA DE ANT-SOBEIT=========================================================
  2024. public OnPlayerUpdate(playerid)
  2025. {
  2026. new weaponid;
  2027. weaponid = GetPlayerWeapon(playerid);
  2028. if(weaponid == 35 || weaponid == 36 || weaponid == 37 || weaponid == 38 || weaponid == 9 ||weaponid == 19)
  2029. {
  2030. //Mensagem
  2031. new gstring[128];
  2032. GetPlayerName(playerid,sendername,sizeof(sendername));//identifica o nome do player que digitou o comando
  2033. format(gstring,sizeof(gstring),"%s [ID:%d] Está Usando um Arma Proibida !! ",sendername,playerid);//formata a string que será enviada para os administradores
  2034. AvisoAdmin(azulagua,gstring);
  2035. ResetPlayerWeapons(playerid);
  2036. }
  2037. return 1; // Send this update to other players.
  2038. }
  2039. //==================================================================================================
  2040. public AvisoAdmin(COLOR,const string[])//public que terá a função de enviar a mensagem para os admins
  2041. {//inicia o código da public
  2042. for(new i = 0; i < MAX_PLAYERS; i++)//criamos um loop
  2043. {
  2044. if(IsPlayerConnected(i))//verifica se o player está conectado
  2045. {
  2046. if (IsPlayerAdmin(i))//verifica se o player é admin
  2047. {
  2048. SendClientMessage(i, COLOR, string);//envia a mensagem para os admins
  2049. printf("%s", string);//mostra no console a mensagem
  2050. }
  2051. }
  2052. }
  2053. return 1;
  2054. }//Final da public
  2055. forward AntCrash(playerid);
  2056. public AntCrash(playerid)
  2057. {
  2058. XiterCrashando[playerid] --;
  2059. if(XiterCrashando[playerid] > 3)
  2060. {
  2061. new gstring[128];
  2062. format(gstring,sizeof(gstring), "AntiAttack:{80E3FF}%s{E84F33}[ID: {80E3FF}%d{E84F33}] Poder Ser um Crash Player!!",PlayerName(playerid),playerid);
  2063. AvisoAdmin(azulagua,gstring);
  2064. }
  2065. }
  2066. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  2067. {
  2068. TextDrawHideForPlayer(playerid, Forum);
  2069. TextDrawHideForPlayer(playerid, Comandos);
  2070. TextDrawHideForPlayer(playerid, var3);
  2071. return 1;
  2072. }
  2073. public OnPlayerExitVehicle(playerid, vehicleid)
  2074. {
  2075. TextDrawShowForPlayer(playerid, Forum);
  2076. TextDrawShowForPlayer(playerid, Comandos);
  2077. TextDrawShowForPlayer(playerid, var3);
  2078. return 1;
  2079. }
  2080. public OnPlayerText(playerid, text[])
  2081. {
  2082. if(strfind(text,"!kill",true) == 0) return Kick(playerid);
  2083. if(strfind(text,"Ant Fake Kill",true) == 0) return Kick(playerid);
  2084. return 1;
  2085. }
  2086. forward antifakekill2(playerid);
  2087. public antifakekill2(playerid)
  2088. {
  2089. antifakekill[playerid] --;
  2090. if(antifakekill[playerid] > 5)
  2091. {
  2092. SendClientMessage(playerid, 0xFF0000AA, "Este servidor esta protegido por um Anti Fake Kill");
  2093. Kick(playerid);
  2094. }
  2095. return 1;
  2096. }
  2097. SalvarPlayer(playerid)
  2098. {
  2099. new Nome[MAX_PLAYER_NAME];
  2100. GetPlayerName(playerid, Nome, sizeof(Nome));
  2101. new String[50];
  2102. format(String, sizeof(String), CONTAS, Nome);
  2103. dini_IntSet(String,"Dinheiro", GetPlayerMoney(playerid));
  2104. dini_IntSet(String,"Score",GetPlayerScore(playerid));
  2105. dini_IntSet(String,"Total Matou", TotalMatou[playerid]);
  2106. dini_IntSet(String,"Total Morreu", TotalMorreu[playerid]);
  2107. dini_IntSet(String,"Total Logou", TotalLogou[playerid]);
  2108. return 1;
  2109. }
  2110. CarregarPlayer(playerid)
  2111. {
  2112. new Nome[MAX_PLAYER_NAME];
  2113. GetPlayerName(playerid, Nome, sizeof(Nome));
  2114. new String[50];
  2115. format(String, sizeof(String), CONTAS, Nome);
  2116. GivePlayerMoney(playerid, dini_Int(String,"Dinheiro"));
  2117. SetPlayerScore(playerid, dini_Int(String,"Score"));
  2118. TotalMatou[playerid] = dini_Int(String, "Total Matou");
  2119. TotalMorreu[playerid] = dini_Int(String, "Total Morreu");
  2120. TotalLogou[playerid] = dini_Int(String, "Total Logou");
  2121. return 1;
  2122. }
  2123. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  2124. {
  2125. if(dialogid == DIALOG_REGISTRO)
  2126. {
  2127. if(response)
  2128. {
  2129. if(!strlen(inputtext))
  2130. {
  2131. new Nome[MAX_PLAYER_NAME];
  2132. GetPlayerName(playerid, Nome, sizeof(Nome));
  2133. new String[1000];
  2134. format(String, sizeof(String), TXT_NREGISTER, Nome);
  2135. ShowPlayerDialog(playerid, DIALOG_REGISTRO, 3, "Registro", String, "Registrar", "Cancelar");
  2136. SendClientMessage(playerid,0x1E90FFAA,"Senha incorreta !!");
  2137. return 1;
  2138. }
  2139. new Nome[MAX_PLAYER_NAME];
  2140. GetPlayerName(playerid, Nome, sizeof(Nome));
  2141. new String[100];
  2142. format(String, sizeof(String), CONTAS, Nome);
  2143. dini_Create(String);
  2144. dini_Set(String,"Senha",inputtext);
  2145. dini_IntSet(String,"Dinheiro",50000);
  2146. dini_IntSet(String,"Score",0);
  2147. dini_IntSet(String,"Vida",50);
  2148. dini_IntSet(String,"TotalMatou",0);
  2149. dini_IntSet(String,"Total Morreu",0);
  2150. dini_IntSet(String,"Total Logou",0);
  2151. ShowPlayerDialog(playerid, DIALOG_LOGIN, 3, "Login", TXT_RL, "Logar", "Cancelar");
  2152. return 1;
  2153. }
  2154. else
  2155. {
  2156. SendClientMessage(playerid, 0xFF0000AA, "Voce Foi Kickado Por Não quer se registrar");
  2157. Kick(playerid);
  2158. return 1;
  2159. }
  2160. }
  2161. if(dialogid == 11)
  2162. {
  2163. if(response == 0)
  2164. {
  2165. SendClientMessage(playerid, COLOR_DBLUE, "Você não quis ir ao evento criado pelo Admin");
  2166. return 1;
  2167. }
  2168. if(response >= 1)
  2169. {
  2170. if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Você não tem Autorização Para Usar Esse Comando");
  2171. SendClientMessage(playerid, COLOR_WHITE, "Obrigado por comparecer ao evento.");
  2172. new Float:vc,Float:vy,Float:vz;
  2173. SetPlayerPos(playerid,vc,vy,vz);
  2174. return 1;
  2175. }
  2176. return 1;
  2177. }
  2178. if(dialogid == DIALOG_LOGIN)
  2179. {
  2180. if(response)
  2181. {
  2182. if(!strlen(inputtext))
  2183. {
  2184. new Nome[MAX_PLAYER_NAME];
  2185. GetPlayerName(playerid, Nome, sizeof(Nome));
  2186. new String[1000];
  2187. format(String, sizeof(String),TXT_LOGIN, Nome);
  2188. ShowPlayerDialog(playerid, DIALOG_LOGIN, 3, "Registro", String, "Logar", "Cancelar");
  2189. SendClientMessage(playerid,0x1E90FFAA,"Senha Incorreta !");
  2190. return 1;
  2191. }
  2192. new Nome[MAX_PLAYER_NAME];
  2193. GetPlayerName(playerid, Nome, sizeof(Nome));
  2194. new String[100];
  2195. format(String, sizeof(String), CONTAS, Nome);
  2196. if(!strcmp(inputtext,dini_Get(String,"Senha"),false))
  2197. {
  2198. CarregarPlayer(playerid);
  2199. TotalLogou[playerid]++;
  2200. SpawnPlayer(playerid);
  2201. return 1;
  2202. }
  2203. else
  2204. {
  2205. SendClientMessage(playerid,0x00FF00AA,"Senha incorreta digite-a novamente");
  2206. format(String, sizeof(String), TXT_RLOGIN, Nome);
  2207. ShowPlayerDialog(playerid, DIALOG_LOGIN, 3, "Registro", String, "Logar", "Cancelar");
  2208. }
  2209. return 1;
  2210. }
  2211. else
  2212. {
  2213. SendClientMessage(playerid, 0xFF0000AA, "Voce Foi Kickado Por Não quer logar");
  2214. Kick(playerid);
  2215. return 1;
  2216. }
  2217. }
  2218. if(dialogid == 04042)
  2219. {
  2220. if(response)
  2221. {
  2222. if(listitem==0)
  2223. { // Deagle
  2224. if(GetPlayerMoney(playerid) < 500) return SendClientMessage(playerid, 0xFFFFFF, "Voce nao tem dinheiro suficiente"); // se ele nao tiver 500 , retorna essa mensagem!
  2225. GivePlayerMoney(playerid, -500); // caso contrario vai cobrar 500 .
  2226. GivePlayerWeapon(playerid, 24, 99999); // ea deagle vai vir com 99999 balas !
  2227. }
  2228. if(listitem==1) { // Granada
  2229. if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, 0xFFFFFF, "Você não tem Dinheiro Suficiente!");
  2230. GivePlayerWeapon(playerid,16,5);
  2231. GivePlayerMoney(playerid,-5000);
  2232. SendClientMessage(playerid,COLOR_WHITE,"Granadas Foram comprada Por R$5.000.");
  2233. }
  2234. if(listitem==2) { // MP5K
  2235. if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, 0xFFFFFF, "Você não tem Dinheiro Suficiente!");
  2236. GivePlayerWeapon(playerid,29,50000);
  2237. GivePlayerMoney(playerid,-5000);
  2238. SendClientMessage(playerid,COLOR_WHITE,"MP5-K purchased for $5000.");
  2239. }
  2240. if(listitem==3) { // M4
  2241. if(GetPlayerMoney(playerid) < 10000) return SendClientMessage(playerid, 0xFFFFFF, "Você não tem Dinheiro Suficiente!");
  2242. GivePlayerWeapon(playerid,31,50000);
  2243. GivePlayerMoney(playerid,-10000);
  2244. SendClientMessage(playerid,COLOR_WHITE,"M4-Carbine purchased for $10000.");
  2245. }
  2246. if(listitem==4) { // AK47
  2247. if(GetPlayerMoney(playerid) < 9000) return SendClientMessage(playerid, 0xFFFFFF, "Você não tem Dinheiro Suficiente!");
  2248. GivePlayerWeapon(playerid,30,50000);
  2249. GivePlayerMoney(playerid,-9000);
  2250. SendClientMessage(playerid,COLOR_WHITE,"AK-47 Foi Comprada por R$9.000.");
  2251. }
  2252. if(listitem==5) { // SPAS12
  2253. if(GetPlayerMoney(playerid) < 10000) return SendClientMessage(playerid, 0xFFFFFF, "Você não tem Dinheiro Suficiente!");
  2254. GivePlayerWeapon(playerid,27,50000);
  2255. GivePlayerMoney(playerid,-10000);
  2256. SendClientMessage(playerid,COLOR_WHITE,"Spas 12 Shotgun Foi Comprada por R$10.000.");
  2257. }
  2258.  
  2259. if(listitem==6) { // Molotov
  2260. if(GetPlayerMoney(playerid) < 15000) return SendClientMessage(playerid, 0xFFFFFF, "Você não tem Dinheiro Suficiente!");
  2261. GivePlayerWeapon(playerid,18,5);
  2262. GivePlayerMoney(playerid,-15000);
  2263. SendClientMessage(playerid,COLOR_WHITE,"Molotov Foi comprado por R$15000.");
  2264. }
  2265.  
  2266. if(listitem==7) { // Sniper
  2267. if(GetPlayerMoney(playerid) < 10000) return SendClientMessage(playerid, 0xFFFFFF, "Você não tem Dinheiro Suficiente!");
  2268. GivePlayerWeapon(playerid,34,150);
  2269. GivePlayerMoney(playerid,-10000);
  2270. SendClientMessage(playerid,COLOR_WHITE,"Sniper Foi comprada por R$10000.");
  2271. }
  2272.  
  2273. if(listitem==8) { // RPG
  2274. if(GetPlayerMoney(playerid) < 20000) return SendClientMessage(playerid, 0xFFFFFF, "Você não tem Dinheiro Suficiente!");
  2275. GivePlayerWeapon(playerid,35,3);
  2276. GivePlayerMoney(playerid,-20000);
  2277. SendClientMessage(playerid,COLOR_WHITE,"Bazuca Foi comprada por R$20000.");
  2278. }
  2279.  
  2280. if(listitem==9) { // Vida Extra
  2281. if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, 0xFFFFFF, "Você não tem Dinheiro Suficiente!");
  2282. SetPlayerHealth(playerid, 100.0);
  2283. GivePlayerMoney(playerid,-5000);
  2284. SendClientMessage(playerid,COLOR_WHITE,"Você comprou Vida Extra por R$5.000.");
  2285. }
  2286. if(listitem==10) { // Skin Especial 1
  2287. if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, 0xFFFFFF, "Você não tem Dinheiro Suficiente!");
  2288. SetPlayerSkin(playerid,84);
  2289. GivePlayerMoney(playerid,-5000);
  2290. SendClientMessage(playerid,COLOR_WHITE,"Você comprou Skin Especial 1 por R$5.000.");
  2291. }
  2292. if(listitem==11) { // Skin Especial 2
  2293. if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, 0xFFFFFF, "Você não tem Dinheiro Suficiente!");
  2294. SetPlayerSkin(playerid,83);
  2295. GivePlayerMoney(playerid,-5000);
  2296. SendClientMessage(playerid,COLOR_WHITE,"Você comprou Skin Especial 2 por R$5.000.");
  2297. }
  2298. if(listitem==12) { // Skin Especial 3
  2299. if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, 0xFFFFFF, "Você não tem Dinheiro Suficiente!");
  2300. SetPlayerSkin(playerid,85);
  2301. GivePlayerMoney(playerid,-5000);
  2302. SendClientMessage(playerid,COLOR_WHITE,"Você comprou Skin Especial 3 por R$5.000.");
  2303. }
  2304. if(listitem==13) { // Teleporte Pref
  2305. if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, 0xFFFFFF, "Você não tem Dinheiro Suficiente!");
  2306. SetPlayerPos(playerid,1476.1659,-1687.3444,14.0469);
  2307. GivePlayerMoney(playerid,-5000);
  2308. SendClientMessage(playerid,COLOR_WHITE,"Você se Teleportou por R$5.000.");
  2309. return 1;
  2310. }
  2311. }
  2312. }
  2313. return 0;
  2314. }
  2315. public IsACopCar(carid)//copcarroo
  2316. {
  2317. for(new i=0;i<sizeof(CopCarros);i++)
  2318. {
  2319. if(carid == CopCarros[i])
  2320. {
  2321. SetVehicleNumberPlate(carid, "BPC COP");
  2322. return 1;
  2323. }
  2324. }
  2325. return 0;
  2326. }
  2327. public IsABallasCar(carid)
  2328. {
  2329. for(new i=0;i<sizeof(BallasCarros);i++)
  2330. {
  2331. if(carid == BallasCarros[i])
  2332. {
  2333. SetVehicleNumberPlate(carid, "BWS BALLAS");
  2334. return 1;
  2335. }
  2336. }
  2337. return 0;
  2338. }
  2339. public IsAGrooveCar(carid)
  2340. {
  2341. for(new i=0;i<sizeof(GrooveCar);i++)
  2342. {
  2343. if(carid == GrooveCar[i])
  2344. {
  2345. SetVehicleNumberPlate(carid, "BWS Groove");
  2346. return 1;
  2347. }
  2348. }
  2349. return 0;
  2350. }
  2351. public IsAAztecaCar(carid)
  2352. {
  2353. for(new i=0;i<sizeof(AztecasCar);i++)
  2354. {
  2355. if(carid == AztecasCar[i])
  2356. {
  2357. SetVehicleNumberPlate(carid, "BWS CripZ");
  2358. return 1;
  2359. }
  2360. }
  2361. return 0;
  2362. }
  2363. public IsAVagosCar(carid)
  2364. {
  2365. for(new i=0;i<sizeof(VagosCar);i++)
  2366. {
  2367. if(carid == VagosCar[i])
  2368. {
  2369. SetVehicleNumberPlate(carid, "BWS Vagos");
  2370. return 1;
  2371. }
  2372. }
  2373. return 0;
  2374. }
  2375. public IsAHitCar(carid)
  2376. {
  2377. for(new i=0;i<sizeof(CarrosHit);i++)
  2378. {
  2379. if(carid == CarrosHit[i])
  2380. {
  2381. SetVehicleNumberPlate(carid, "BWS Hit");
  2382. return 1;
  2383. }
  2384. }
  2385. return 0;
  2386. }
  2387. public OnPlayerStateChange(playerid, newstate, oldstate)
  2388. {
  2389. if(newstate == PLAYER_STATE_DRIVER)
  2390. {// 38 / 49 / 56 = SS
  2391. new newcar = GetPlayerVehicleID(playerid);
  2392. new carid=GetVehicleModel(newcar);
  2393. if(carid == 481 || carid == 509 || carid == 510) { }
  2394. else
  2395. {
  2396. if(IsAAztecaCar(newcar))
  2397. {
  2398. if(globDE40[playerid] == 4)
  2399. {
  2400. SendClientMessage(playerid, COR_AZTECAS, "Você não é um CripZ, por isso não tem a chave desse veículo!");
  2401. RemovePlayerFromVehicle(playerid);
  2402. return 1;
  2403. }
  2404. }
  2405. }
  2406. }
  2407. return 0;
  2408. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement