Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /==================== [ Includes ] =====================
- #include <a_samp>
- #include <core>
- #include <float>
- #include <dini>
- #include <dudb>
- #pragma tabsize 0
- #pragma unused ret_memcpy
- //============= [ text draw em cima ] ===================
- #if defined FILTERSCRIPT
- #endif
- new Text:textdraw;
- //========[ DROP WEAPONS ] ===========================
- #define MAX_DROP_AMOUNT -1
- #define MAX_DROP_LIFETIME 30
- #define WEAPON_SLOTS 13
- #define INVALID_PICKUP -1
- #define MAX_PICKUPS 90
- #define PICKUP_TYPE 19
- forward DestroyPickupEx( p );
- enum pickup
- {
- creation_time,
- weapon,
- ammo,
- timer
- }
- new pickups [ MAX_PICKUPS ][ pickup ];
- //======== [ hexadecimáis do SendClientMessage ] ========
- //{FF6347}"[RADIO]"
- //{90EE90}"[FusioN TDM]"
- //{8470FF}"/comando"
- //{D2D2FF}"Texto padrão"
- //{FFFF00}"[INFO]"
- //{00FA9A}"[JOGADOR]"
- //{0000FF}"[EVENTOS]"
- //{8B658B}"[TELEPORTE]"
- //{FF0000}"[ERRO]"
- //{33CCFF}"[ADMIN]"
- //{4169E1}"Números"
- //{4682B4}"[MP]"
- //=======================================================
- //============== [ Cores do Servidor ] ==================
- //--------------------- 3D Label ------------------------
- #define COR_TEXTO3D 0xF68E00F6
- //-------------------- gangzone -------------------------
- #define COR_GZ 0xFFFFFF96
- #define COR_FLASHVERMELHO 0xFF6347AA
- //-------------------------------------------------------
- #define COR_CINZA 0xAFAFAFAA
- #define COR_VERDE 0x33AA33AA
- #define COR_VERMELHA 0xAA3333AA
- #define COR_AMARELA 0xFFFF00AA
- #define COR_BRANCA 0xFFFFFFAA
- #define COR_INFO 0xD2D2FFFF
- #define COR_AZULCLARO 0x33CCFFAA
- //----------------------- MENSAGEM PRIVADA--------------
- #define Vermelho 0xFF5B5BAA
- #define Verde 0xA9FF53AA
- #define Amarelo 0xFCBE03AA
- //---------------------- ORGS ---------------------------
- #define COR_GROVE 0x00D900C8 //Grove
- #define COR_VAGOS 0xFFC801C8 //Vagos
- #define COR_BALLAS 0xD900D3C8 //Ballas
- #define COR_AZTECAS 0x2641FEC8 //Aztecas
- #define COR_SFPD 0x7491F6F6 //SF:PD
- #define COR_CV 0xFF5B5BAA // COMANDO VERMELHO
- //--------------------- dialog --------------------------
- #define GROVE 5
- #define VAGOS 6
- #define BALLAS 7
- #define AZTECAS 8
- #define SFPD 9
- #define CV 10
- #define SKINGROVE 12
- #define SKINVAGOS 13
- #define SKINBALLAS 14
- #define SKINAZTECAS 15
- #define SKINSFPD 16
- #define SKINCV 17
- //================== [ Stock de nome ] ==================
- stock NomeDoJogador(playerid)
- {
- new Nome[MAX_PLAYER_NAME];
- GetPlayerName(playerid, Nome, MAX_PLAYER_NAME);
- return Nome;
- }
- //=======================================================
- // NOME DO SERVIDOR
- new contagem = 0;
- new ServidorNome[7][128] = {
- "[FusioN] FusioN TeamDeath Match BR",
- "[FusioN] FusioN TeamDeath Match BR",
- "[FusioN] FusioN TeamDeath Match BR",
- "[FusioN] fusion-games.forumeiros.com",
- "[FusioN] fusion-games.forumeiros.com",
- "[FusioN] Versão 0.3c",
- "[FusioN] Versão 0.3c"
- };
- //================ * ~ [ News Diversas ] ~ * =================
- //====================== [ Banimento ] =======================
- new ano, mes,dia;
- new hora, minuto, segundo;
- //==================== [ Atuaalizar GM ] =====================
- forward GameModeInitExitFunc();
- forward GameModeExitFunc();
- //==================[ text draw ] =============================
- new Text:Textdraw1;
- new Text:fusion;
- //==================[ drop armas ] ==========================
- new weapons[] =
- {
- -1, // no fists
- 331, // - Brass Knuckles
- 333, // Golf Club
- 334, // Night Stick
- 335, // Knife
- 336, // baseball bat
- 337, // shovel
- 338, // pool cue
- 339, // katama
- 341, // chainsaw
- 321, // regular dildo
- 322, // white dildo
- 323, // Medium, white vibrator
- 324, // smaill, silver vibrator
- 325, // flowers
- 326, // cane
- 342, // grendade
- 343, // tear gas
- 344, // molotov
- -1, // RPG rocket - we can't pick up those, do we oO
- -1, // Heat-Seeking Rocket
- -1, // Hydra rocket
- 346, // colt 45
- 347, // colt 45 + silencer
- 348, // deagle
- 349, // shotgun
- 350, // sawn-off
- 351, // spaz
- 352, // micro-uzi
- 353, // mp5
- 355, // ak47
- 356, // m4
- 372, // tec9
- 357, // country rifle
- 358, // sniper rifle
- 359, // rocket launcher
- 360, // heat-seeking rocket launcher
- 361, // flamethrower
- 362, // minigun
- 363, // sachtel charges
- -1, // detonator
- 365, // spray can
- 366, // fire extinguisher
- 367, // camera
- -1, // night-vision goggles
- -1, // heat-vision goggles
- 371 // parachute
- };
- //============================================================
- new gstring[256];
- //================= [ Sistema de gangzone ] ==================
- new Dominando[MAX_PLAYERS];
- //-- Construção
- new GuerranaConstrucao;
- new GZConstrucao;
- new ProvocouConstrucao[MAX_PLAYERS];
- new TempoDeGuerraNaConstrucao;
- forward GuerraConstrucao(playerid);
- new donodaconstrucao;
- stock JogadorNaConstrucao(playerid)
- {
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid, x, y, z);
- if(x >= -2132.02 && y >= 136.4459 && x <= -2008.414 && y <= 325.8042) return 1;
- else return 0;
- }
- //-- Puteiro
- new GuerranoPuteiro;
- new GZPuteiro;
- new ProvocouPuteiro[MAX_PLAYERS];
- new TempoDeGuerraNoPuteiro;
- forward GuerraPuteiro(playerid);
- new donodoputeiro;
- stock JogadorNoPuteiro(playerid)
- {
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid, x, y, z);
- if(x >= -2649.62 && y >= 1312.045 && x <= -2487.387 && y <= 1469.844) return 1;
- else return 0;
- }
- //==================== [ Anti TK ] ======================
- new TKmatador[MAX_PLAYER_NAME];
- //=================== [ tenso ] ================
- new Visitantes;
- //=================== [ MENSAGEM PRIVADA ] ==========
- #define PlayerClicado clickedplayerid
- new Jogador[MAX_PLAYERS];
- //================ [ Anti-Queda ~ MOTO ] ================
- #define Motorista 0
- #define Passageiro 2
- new ModoAntiQueda[MAX_PLAYERS];
- new JogadorNoVeiculo[MAX_PLAYERS];
- new QualCarro[MAX_PLAYERS];
- //================== [ Chat com TAG ] ===================
- new chatcomorg = 1;
- //================= [ SpawnarJogador ] ==================
- forward SpawnarJogador(playerid);
- //================= [ Veiculo criado ] ==================
- new veiculonovo;
- //=================== [ CarroGod ] ======================
- forward CarroGod(playerid);
- //=================== [ infoserver ] ====================
- new Online;
- new AdminsOnline;
- //======================= [ AFK ] =======================
- new AFK[MAX_PLAYERS] = 0;
- //================ [ TEXTDRAW DE ENTRADA ] ==============
- /*new Text:topoescuro, Text:embaixoescuro;*/ //~> DESABILITADO
- new Text:Textdrawdebaixodoradar;
- //==============[ SISTEMA DE /X1 ]====================== ~> DESABILITADO
- /*new contagemx1, contagem = 4;
- new Desafiador[MAX_PLAYER_NAME];
- new
- TaNoX1[MAX_PLAYERS],
- Limitex12
- ; */
- //================== [ Point ] ==================
- //=========== [ SetupPlayerForClassSelection ] ==========
- forward SetupPlayerForClassSelection(playerid);
- //================[ Contador de Visitas ] ===============
- //new contador;
- //================= [ Nome Server ] =====================
- forward NomeServer();
- //============= [ Mensagens Randômicas ] ================
- forward MensagensRandomicas();
- new Mensagens[9][129] = {
- "{90EE90}[FusioN TDM]{D2D2FF}: Visite nosso fórum: {33CCFF}fusion{F2F2FF}-{33CCFF}games{D2D2FF}.forumeiros.com",
- "{90EE90}[FusioN TDM]{D2D2FF}: Visite nosso fórum: {33CCFF}fusion{D2D2FF}-{33CCFF}games{D2D2FF}.forumeiros.com",
- "{90EE90}[FusioN TDM]{D2D2FF}: Visite nosso fórum: {33CCFF}fusion{D2D2FF}-{33CCFF}games{D2D2FF}.forumeiros.com",
- "{90EE90}[FusioN TDM]{D2D2FF}: Servidor Exclusivo {33CCFF}FusioN SAMP",
- "{90EE90}[FusioN TDM]{D2D2FF}: Servidor Exclusivo {33CCFF}FusioN SAMP",
- "{90EE90}[FusioN TDM]{D2D2FF}: Para ver os creditos use {8470FF}/creditos",
- "{90EE90}[FusioN TDM]{D2D2FF}: Para ver os creditos use {8470FF}/creditos",
- "{90EE90}[FusioN TDM]{D2D2FF}: Visite Nosso Servidor de Team Speak 3: IP: 187.45.233.13 | Porta: 9994",
- "{90EE90}[FusioN TDM]{D2D2FF}: Precisa de ajuda? use {8470FF}/ajuda"
- };
- //---------------- Cores das mensagens ------------------
- new Cores[] = {
- 0x20B2AAAA,
- 0xFFFFFFAA,
- 0x33AA33AA,
- 0xE0FFFFAA,
- 0x934FF6F6,
- 0xF4005BF6,
- 0xF68E00F6,
- 0x00E7C6F6,
- 0x5EB7E3F6,
- 0xCD6CF6F6,
- 0x685000F6
- };
- //================= [ FusioNInfo ] ======================
- enum pInfo
- {
- pLugar,
- pUltimoLoginAno,
- pUltimoLoginMes,
- pUltimoLoginDia,
- pUltimoLoginHora,
- pUltimoLoginMinuto,
- pUltimoLoginSegundo,
- pReg,
- pSenha,
- pMoney,
- pLevel,
- pSkin,
- pMortes,
- pKills,
- pAdmin,
- pLogado,
- pORG,
- };
- new PlayerInfo[MAX_PLAYERS][pInfo];
- //=============== [ Variáveis de player ] ===============
- new MostrarIconesMapa[MAX_PLAYERS];
- new gPlayerConta[MAX_PLAYERS];
- new Registrado[MAX_PLAYERS];
- new Digitou[MAX_PLAYERS][64];
- forward RegistrarJogador(playerid, senha[])
- forward CarregarJogador(playerid, senha[])
- forward AtualizarJogador(playerid);
- //================ [ prompt de comando ] ================
- main()
- {
- print("|====================================|");
- print("| ~ Team DeathMatch ~ |");
- print("| FusioN Games |");
- print("|_________[San Andreas:MP]___________|");
- print("|====================================|");
- }
- //=================== [ Publics ] =======================
- //================== [ OnPlayerText ] ===================
- public OnPlayerText(playerid, text[])
- {
- new string[128];
- if (chatcomorg)
- {
- if(PlayerInfo[playerid][pLogado] == 0)
- {
- return 0;
- }
- if(PlayerInfo[playerid][pORG] == 1)
- {
- format(string, sizeof(string), "{00D900}[GROVE] {FFFFFF}%s diz: %s", NomeDoJogador(playerid), text);
- SendClientMessageToAll(COR_INFO,string);
- SetPlayerChatBubble(playerid, text, COR_INFO, 20.0, 10000);
- }
- if(PlayerInfo[playerid][pORG] == 2)
- {
- format(string, sizeof(string), "{D900D3}[BALLAS] {FFFFFF}%s diz: %s", NomeDoJogador(playerid), text);
- SendClientMessageToAll(COR_INFO,string);
- SetPlayerChatBubble(playerid, text, COR_INFO, 20.0, 10000);
- }
- if(PlayerInfo[playerid][pORG] == 3)
- {
- format(string, sizeof(string), "{FFC801}[LOS VAGOS] {FFFFFF}%s diz: %s", NomeDoJogador(playerid), text);
- SendClientMessageToAll(COR_INFO,string);
- SetPlayerChatBubble(playerid, text, COR_INFO, 20.0, 10000);
- }
- if(PlayerInfo[playerid][pORG] == 4)
- {
- format(string, sizeof(string), "{2641FE}[LOS AZTECAS] {FFFFFF}%s diz: %s", NomeDoJogador(playerid), text);
- SendClientMessageToAll(COR_INFO,string);
- SetPlayerChatBubble(playerid, text, COR_INFO, 20.0, 10000);
- }
- if(PlayerInfo[playerid][pORG] == 5)
- {
- format(string, sizeof(string), "{7491F6}[SF:PD] {FFFFFF}%s diz: %s", NomeDoJogador(playerid), text);
- SendClientMessageToAll(COR_INFO,string);
- SetPlayerChatBubble(playerid, text, COR_INFO, 20.0, 10000);
- }
- if(PlayerInfo[playerid][pORG] == 6)
- {
- format(string, sizeof(string), "{FF5B5B}[COMANDO VERMELHO] {FFFFFF}%s diz: %s", NomeDoJogador(playerid), text);
- SendClientMessageToAll(COR_INFO,string);
- SetPlayerChatBubble(playerid, text, COR_INFO, 20.0, 10000);
- }
- return 0;
- }
- return 1;
- }
- //================[ OnPLayerClickPlayer ] ===============
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- new string[128];
- if(PlayerInfo[playerid][pAdmin] == 0 || PlayerInfo[playerid][pAdmin] !=0)
- {
- new plname[MAX_PLAYER_NAME];
- GetPlayerName(clickedplayerid, plname, sizeof(plname));
- if(playerid == clickedplayerid) return SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Você não pode enviar mensagens para si mesmo.");
- format(string, sizeof(string), "{D2D2FF}Escreva uma mensagem para %s", plname);
- ShowPlayerDialog(playerid, 9752, DIALOG_STYLE_INPUT, "{FFFF00}Mensagem Pessoal",string,"Enviar","Fechar");
- Jogador[playerid] = PlayerClicado;
- }
- return 1;
- }
- // ==============[ OnDialogResponse ] =================
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- new string[128];
- TogglePlayerControllable(playerid, 0);
- if(dialogid == 1)
- {
- if(response)
- {
- strmid(Digitou[playerid], inputtext, 0, strlen(inputtext), 255);
- if(!strcmp(Digitou[playerid], "Nada", true))
- {
- ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "{90EE90}FusioN TeamDeath Match", "Você digitou absolutamente NADA, digite sua senha", "Logar", "Esperar");
- }
- else
- {
- CarregarJogador(playerid, inputtext);
- }
- }
- else
- {
- Kick(playerid);
- AtualizarJogador(playerid);
- }
- }
- if(dialogid == 2)
- {
- if(response == 1)
- {
- if(strlen(inputtext) < 3)
- {
- ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "{90EE90}FusioN TeamDeath Match", "Crie sua senha para registrar-se", "Registrar", "Esperar");
- return 1;
- }
- if(strlen(inputtext) > 20)
- {
- ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "{90EE90}FusioN TeamDeath Match", "Crie sua senha para registrar-se", "Registrar", "Esperar");
- return 1;
- }
- RegistrarJogador(playerid, inputtext);
- }
- else
- {
- Kick(playerid);
- AtualizarJogador(playerid);
- }
- }
- if(dialogid == 3)
- {
- if(response == 0)
- {
- TogglePlayerControllable(playerid, 1);
- return 1;
- }
- if(response >= 1)
- {
- TogglePlayerControllable(playerid, 1);
- if(listitem == 0)
- {
- ShowPlayerDialog(playerid, 18, DIALOG_STYLE_LIST, "Head Quarters(HQ)", "{D2D2FF}HQ {00D900}Grove\n{D2D2FF}HQ {D900D3}Ballas\n{D2D2FF}HQ {FFC801}Vagos\n{D2D2FF}HQ {2641FE}Aztecas\n{D2D2FF}HQ {7491F6}SFPD\n{D2D2FF}HQ {FF5B5B}Comando Vermelho\nLoja de armas", "Ok", "Cancelar");
- return 1;
- }
- if(listitem == 1)
- {
- ShowPlayerDialog(playerid, 19, DIALOG_STYLE_LIST, "Territórios", "Construção", "Ok", "Cancelar");
- return 1;
- }
- if(listitem == 2)
- {
- SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Esta lacuna está desativada.");
- //ShowPlayerDialog(playerid, 20, DIALOG_STYLE_LIST, "Eventos", "*DESATIVADO*", "Ok", "Cancelar");
- return 1;
- }
- if(listitem == 3)
- {
- ShowPlayerDialog(playerid, 21, DIALOG_STYLE_LIST, "Outros", "Loja de armas", "Ok", "Cancelar");
- return 1;
- }
- }
- return 1;
- }
- if(dialogid == 4)
- {
- if(response == 0)
- {
- TogglePlayerControllable(playerid, 1);
- return 1;
- }
- if(response >= 1)
- {
- TogglePlayerControllable(playerid, 1);
- if(listitem == 0)
- {
- SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Você comprou o Kit básico e pagou {4169E1}3000{D2D2FF}R$.");
- GivePlayerMoney(playerid, -3000);
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 4, 1);
- GivePlayerWeapon(playerid, 24, 999);
- GivePlayerWeapon(playerid, 25, 999);
- GivePlayerWeapon(playerid, 30, 999);
- AtualizarJogador(playerid);
- return 1;
- }
- if(listitem == 1)
- {
- SendClientMessage(playerid, COR_BRANCA, "{FFFF00}[INFO]{D2D2FF}: Você comprou o kit intermediário e pagou {4169E1}4000{D2D2FF}R$.");
- GivePlayerMoney(playerid, -4000);
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 4, 1);
- GivePlayerWeapon(playerid, 24, 999);
- GivePlayerWeapon(playerid, 25, 999);
- GivePlayerWeapon(playerid, 30, 999);
- GivePlayerWeapon(playerid, 33, 999);
- AtualizarJogador(playerid);
- return 1;
- }
- if(listitem == 2)
- {
- SendClientMessage(playerid, COR_BRANCA, "{FFFF00}[INFO]{D2D2FF}: Você comprou o kit avançado e pagou {4169E1}5000{D2D2FF}R$.");
- GivePlayerMoney(playerid, -5000);
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 4, 1);
- GivePlayerWeapon(playerid, 24, 999);
- GivePlayerWeapon(playerid, 25, 999);
- GivePlayerWeapon(playerid, 30, 999);
- GivePlayerWeapon(playerid, 34, 999);
- AtualizarJogador(playerid);
- return 1;
- }
- }
- return 1;
- }
- return 1;
- if(dialogid == 5)
- {
- if(response == 0)
- {
- TogglePlayerControllable(playerid, 1);
- return 1;
- }
- if(response >= 1)
- {
- TogglePlayerControllable(playerid, 1);
- if(listitem == 0)
- {
- SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Você comprou o Kit básico e pagou {4169E1}3000{D2D2FF}R$.");
- GivePlayerMoney(playerid, -3000);
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 4, 1);
- GivePlayerWeapon(playerid, 24, 999);
- GivePlayerWeapon(playerid, 25, 999);
- GivePlayerWeapon(playerid, 30, 999);
- AtualizarJogador(playerid);
- return 1;
- }
- if(listitem == 1)
- {
- SendClientMessage(playerid, COR_BRANCA, "{FFFF00}[INFO]{D2D2FF}: Você comprou o kit intermediário e pagou {4169E1}4000{D2D2FF}R$.");
- GivePlayerMoney(playerid, -4000);
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 4, 1);
- GivePlayerWeapon(playerid, 24, 999);
- GivePlayerWeapon(playerid, 25, 999);
- GivePlayerWeapon(playerid, 30, 999);
- GivePlayerWeapon(playerid, 33, 999);
- AtualizarJogador(playerid);
- return 1;
- }
- if(listitem == 2)
- {
- SendClientMessage(playerid, COR_BRANCA, "{FFFF00}[INFO]{D2D2FF}: Você comprou o kit avançado e pagou {4169E1}5000{D2D2FF}R$.");
- GivePlayerMoney(playerid, -5000);
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 4, 1);
- GivePlayerWeapon(playerid, 24, 999);
- GivePlayerWeapon(playerid, 25, 999);
- GivePlayerWeapon(playerid, 30, 999);
- GivePlayerWeapon(playerid, 34, 999);
- AtualizarJogador(playerid);
- return 1;
- }
- }
- return 1;
- }
- //======= [ mp ] ===========
- if(dialogid == 9752 && response)
- {
- format(string, sizeof(string), "{4682B4}[MP]{D2D2FF}: De %s: %s.",NomeDoJogador(playerid), inputtext);
- SendClientMessage(Jogador[playerid], Amarelo, string);
- SendClientMessage(playerid, Verde, "{4682B4}[MP]{D2D2FF}: Sua mensagem foi enviada.");
- Jogador[playerid] = INVALID_PLAYER_ID;
- TogglePlayerControllable(playerid, 1);
- return 1;
- }
- if(dialogid == 11)
- {
- SetPlayerInterior(playerid, 0);
- if(response == 0)
- {
- ShowPlayerDialog(playerid, 11, DIALOG_STYLE_LIST, "{FFFF00}Escolha sua organização", "{00D900}Grove Street Families\n{FFC801}Los Santos Vagos\n{D900D3}Front Yard Ballas\n{2641FE}Los Varrios Aztecas\n{7491F6}San Fierro Department\n{FF5B5B}Comando Vermelho", "Escolher", "");
- SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Por favor, escolha uma organização");
- return 1;
- }
- if(response >= 1)
- {
- if(listitem == 0)
- {
- format(string, sizeof(string), "Quer mesmo essa organização ?", playerid);
- ShowPlayerDialog(playerid, GROVE, DIALOG_STYLE_MSGBOX, "{00D900}Grove Street Families", string, "Sim", "Não");
- SetPlayerCameraPos(playerid, -2722.8696,-264.4958,49.9464);
- SetPlayerCameraLookAt(playerid, -2720.9878,-317.3027,7.8438);
- SetPlayerPos(playerid, -2721.9783,-314.7625,-6.7114);
- AtualizarJogador(playerid);
- }
- if(listitem == 1)
- {
- format(string, sizeof(string), "Quer mesmo essa organização ?", playerid);
- ShowPlayerDialog(playerid, VAGOS, DIALOG_STYLE_MSGBOX, "{FFC801}Los Santos Vagos", string, "Sim", "Não");
- SetPlayerCameraPos(playerid, -2494.5615,1219.6486,50.4219);
- SetPlayerCameraLookAt(playerid, -2523.7625,1216.6310,37.4283);
- SetPlayerPos(playerid, -2523.7625,1216.6310,11.4283);
- AtualizarJogador(playerid);
- }
- if(listitem == 2)
- {
- format(string, sizeof(string), "Quer mesmo essa organização ?", playerid);
- ShowPlayerDialog(playerid, BALLAS, DIALOG_STYLE_MSGBOX, "{D900D3}Front Yard Ballas", string, "Sim", "Não");
- SetPlayerCameraPos(playerid, -2707.0474,376.2740,44.8676);
- SetPlayerCameraLookAt(playerid, -2764.3687,375.4056,6.3410);
- SetPlayerPos(playerid, -2771.6191,375.9189,5.2578);
- AtualizarJogador(playerid);
- }
- if(listitem == 3)
- {
- format(string, sizeof(string), "Quer mesmo essa organização ?", playerid);
- ShowPlayerDialog(playerid, AZTECAS, DIALOG_STYLE_MSGBOX, "{2641FE}Varrios Los Aztecas", string, "Sim", "Não");
- SetPlayerCameraPos(playerid, -1778.6860,509.5456,41.0881);
- SetPlayerCameraLookAt(playerid, -1782.7085,573.8691,35.1641);
- SetPlayerPos(playerid, -1781.9248,572.5924,24.8475);
- AtualizarJogador(playerid);
- }
- if(listitem == 4)
- {
- format(string, sizeof(string), "Quer mesmo essa organização ?", playerid);
- ShowPlayerDialog(playerid, SFPD, DIALOG_STYLE_MSGBOX, "{7491F6}San Fierro Polica Department", string, "Sim", "Não");
- SetPlayerCameraPos(playerid, 1527.5671,-1756.6531,33.4297);
- SetPlayerCameraLookAt(playerid, -1632.0774,675.1766,6.7572);
- SetPlayerPos(playerid, -1632.0774,675.1766,5.7572);
- AtualizarJogador(playerid);
- }
- if(listitem == 5)
- {
- format(string, sizeof(string), "Quer mesmo essa organização ?", playerid);
- ShowPlayerDialog(playerid, CV, DIALOG_STYLE_MSGBOX, "{FF5B5B}Comando Vermelho", string, "Sim", "Não");
- SetPlayerCameraPos(playerid, -2381.3301,992.0063,60.2953);
- SetPlayerCameraLookAt(playerid, -2356.6265,1007.8727,50.8984);
- SetPlayerPos(playerid, -2356.6265,1007.8727,30.8984);
- AtualizarJogador(playerid);
- }
- }
- return 1;
- }
- if(dialogid == GROVE)
- {
- if(response == 0)
- {
- ShowPlayerDialog(playerid, 11, DIALOG_STYLE_LIST, "{FFFF00}Escolha sua organização", "{00D900}Grove Street Families\n{FFC801}Los Santos Vagos\n{D900D3}Front Yard Ballas\n{2641FE}Los Varrios Aztecas\n{7491F6}San Fierro Department\n{FF5B5B}Comando Vermelho", "Escolher", "Sair");
- return 1;
- }
- if(response == 1)
- {
- ShowPlayerDialog(playerid, SKINGROVE,DIALOG_STYLE_LIST, "{FFFF00}Escolha sua skin", "105\n106\n107", "Escolher", "Desistir");
- }
- return 1;
- }
- if(dialogid == VAGOS)
- {
- if(response == 0)
- {
- ShowPlayerDialog(playerid, 11, DIALOG_STYLE_LIST, "{FFFF00}Escolha sua organização", "{00D900}Grove Street Families\n{FFC801}Los Santos Vagos\n{D900D3}Front Yard Ballas\n{2641FE}Los Varrios Aztecas\n{7491F6}San Fierro Department\n{FF5B5B}Comando Vermelho", "Escolher", "Sair");
- return 1;
- }
- if(response == 1)
- {
- ShowPlayerDialog(playerid, SKINVAGOS,DIALOG_STYLE_LIST, "{FFFF00}Escolha sua skin", "108\n109\n110", "Escolher", "Desistir");
- }
- return 1;
- }
- if(dialogid == BALLAS)
- {
- if(response == 0)
- {
- ShowPlayerDialog(playerid, 11, DIALOG_STYLE_LIST, "{FFFF00}Escolha sua organização", "{00D900}Grove Street Families\n{FFC801}Los Santos Vagos\n{D900D3}Front Yard Ballas\n{2641FE}Los Varrios Aztecas\n{7491F6}San Fierro Department\n{FF5B5B}Comando Vermelho", "Escolher", "Sair");
- return 1;
- }
- if(response == 1)
- {
- ShowPlayerDialog(playerid, SKINBALLAS,DIALOG_STYLE_LIST, "{FFFF00}Escolha sua skin", "102\n103\n104", "Escolher", "Desistir");
- }
- return 1;
- }
- if(dialogid == AZTECAS)
- {
- if(response == 0)
- {
- ShowPlayerDialog(playerid, 11, DIALOG_STYLE_LIST, "{FFFF00}Escolha sua organização", "{00D900}Grove Street Families\n{FFC801}Los Santos Vagos\n{D900D3}Front Yard Ballas\n{2641FE}Los Varrios Aztecas\n{7491F6}San Fierro Department\n{FF5B5B}Comando Vermelho", "Escolher", "Sair");
- return 1;
- }
- if(response == 1)
- {
- ShowPlayerDialog(playerid, SKINAZTECAS,DIALOG_STYLE_LIST, "{FFFF00}Escolha sua skin", "114\n115\n116", "Escolher", "Desistir");
- }
- return 1;
- }
- if(dialogid == SFPD)
- {
- if(response == 0)
- {
- ShowPlayerDialog(playerid, 11, DIALOG_STYLE_LIST, "{FFFF00}Escolha sua organização", "{00D900}Grove Street Families\n{FFC801}Los Santos Vagos\n{D900D3}Front Yard Ballas\n{2641FE}Los Varrios Aztecas\n{7491F6}San Fierro Department\n{FF5B5B}Comando Vermelho", "Escolher", "Sair");
- return 1;
- }
- if(response == 1)
- {
- ShowPlayerDialog(playerid, SKINSFPD,DIALOG_STYLE_LIST, "{FFFF00}Escolha sua skin", "280\n281\n284", "Escolher", "Desistir");
- }
- return 1;
- }
- if(dialogid == CV)
- {
- if(response == 0)
- {
- ShowPlayerDialog(playerid, 11, DIALOG_STYLE_LIST, "{FFFF00}Escolha sua organização", "{00D900}Grove Street Families\n{FFC801}Los Santos Vagos\n{D900D3}Front Yard Ballas\n{2641FE}Los Varrios Aztecas\n{7491F6}San Fierro Department\n{FF5B5B}Comando Vermelho", "Escolher", "Sair");
- return 1;
- }
- if(response == 1)
- {
- ShowPlayerDialog(playerid, SKINCV,DIALOG_STYLE_LIST, "{FFFF00}Escolha sua skin", "19\n22\n170", "Escolher", "Desistir");
- }
- return 1;
- }
- if(dialogid == SKINGROVE)
- {
- if(response == 0)
- {
- ShowPlayerDialog(playerid, 11, DIALOG_STYLE_LIST, "{FFFF00}Escolha sua organização", "{00D900}Grove Street Families\n{FFC801}Los Santos Vagos\n{D900D3}Front Yard Ballas\n{2641FE}Los Varrios Aztecas\n{7491F6}San Fierro Department\n{FF5B5B}Comando Vermelho", "Escolher", "Sair");
- return 1;
- }
- if(response >= 1)
- {
- TogglePlayerControllable(playerid, 1);
- if(listitem == 0)
- {
- PlayerInfo[playerid][pSkin] = 105;
- SetPlayerSkin(playerid, 105);
- GivePlayerWeapon(playerid, 22, 120);
- GivePlayerWeapon(playerid, 5, 1);
- PlayerInfo[playerid][pORG] = 1;
- AtualizarJogador(playerid);
- SpawnPlayer(playerid)
- }
- if(listitem == 1)
- {
- PlayerInfo[playerid][pSkin] = 106;
- SetPlayerSkin(playerid, 106);
- PlayerInfo[playerid][pORG] = 1;
- AtualizarJogador(playerid);
- SpawnPlayer(playerid);
- GivePlayerWeapon(playerid, 22, 120);
- GivePlayerWeapon(playerid, 5, 1)
- }
- if(listitem == 2)
- {
- PlayerInfo[playerid][pSkin] = 107;
- SetPlayerSkin(playerid, 107);
- GivePlayerWeapon(playerid, 22, 120);
- GivePlayerWeapon(playerid, 5, 1);
- PlayerInfo[playerid][pORG] = 1;
- AtualizarJogador(playerid);
- SpawnPlayer(playerid)
- }
- }
- return 1;
- }
- if(dialogid == SKINVAGOS)
- {
- if(response == 0)
- {
- ShowPlayerDialog(playerid, 11, DIALOG_STYLE_LIST, "{FFFF00}Escolha sua organização", "{00D900}Grove Street Families\n{FFC801}Los Santos Vagos\n{D900D3}Front Yard Ballas\n{2641FE}Los Varrios Aztecas\n{7491F6}San Fierro Department\n{FF5B5B}Comando Vermelho", "Escolher", "Sair");
- return 1;
- }
- if(response >= 1)
- {
- TogglePlayerControllable(playerid, 1);
- if(listitem == 0)
- {
- PlayerInfo[playerid][pSkin] = 108;
- SetPlayerSkin(playerid, 108);
- GivePlayerWeapon(playerid, 22, 120);
- GivePlayerWeapon(playerid, 5, 1);
- PlayerInfo[playerid][pORG] = 3;
- AtualizarJogador(playerid);
- SpawnPlayer(playerid)
- }
- if(listitem == 1)
- {
- PlayerInfo[playerid][pSkin] = 109;
- SetPlayerSkin(playerid, 109);
- GivePlayerWeapon(playerid, 22, 120);
- GivePlayerWeapon(playerid, 5, 1);
- PlayerInfo[playerid][pORG] = 3;
- AtualizarJogador(playerid);
- SpawnPlayer(playerid)
- }
- if(listitem == 2)
- {
- PlayerInfo[playerid][pSkin] = 110;
- SetPlayerSkin(playerid, 110);
- GivePlayerWeapon(playerid, 22, 120);
- GivePlayerWeapon(playerid, 5, 1);
- PlayerInfo[playerid][pORG] = 3;
- AtualizarJogador(playerid);
- SpawnPlayer(playerid)
- }
- }
- return 1;
- }
- if(dialogid == SKINBALLAS)
- {
- if(response == 0)
- {
- ShowPlayerDialog(playerid, 11, DIALOG_STYLE_LIST, "{FFFF00}Escolha sua organização", "{00D900}Grove Street Families\n{FFC801}Los Santos Vagos\n{D900D3}Front Yard Ballas\n{2641FE}Los Varrios Aztecas\n{7491F6}San Fierro Department\n{FF5B5B}Comando Vermelho", "Escolher", "Sair");
- return 1;
- }
- if(response >= 1)
- {
- TogglePlayerControllable(playerid, 1);
- if(listitem == 0)
- {
- PlayerInfo[playerid][pSkin] = 102;
- SetPlayerSkin(playerid, 102);
- GivePlayerWeapon(playerid, 22, 120);
- GivePlayerWeapon(playerid, 5, 1);
- PlayerInfo[playerid][pORG] = 2;
- AtualizarJogador(playerid);
- SpawnPlayer(playerid)
- }
- if(listitem == 1)
- {
- PlayerInfo[playerid][pSkin] = 103;
- SetPlayerSkin(playerid, 103);
- GivePlayerWeapon(playerid, 22, 120);
- GivePlayerWeapon(playerid, 5, 1);
- PlayerInfo[playerid][pORG] = 2;
- AtualizarJogador(playerid);
- SpawnPlayer(playerid)
- }
- if(listitem == 2)
- {
- PlayerInfo[playerid][pSkin] = 104;
- SetPlayerSkin(playerid, 104);
- GivePlayerWeapon(playerid, 22, 120);
- GivePlayerWeapon(playerid, 5, 1);
- PlayerInfo[playerid][pORG] = 2;
- AtualizarJogador(playerid);
- SpawnPlayer(playerid)
- }
- }
- return 1;
- }
- if(dialogid == SKINAZTECAS)
- {
- if(response == 0)
- {
- ShowPlayerDialog(playerid, 11, DIALOG_STYLE_LIST, "{FFFF00}Escolha sua organização", "{00D900}Grove Street Families\n{FFC801}Los Santos Vagos\n{D900D3}Front Yard Ballas\n{2641FE}Los Varrios Aztecas\n{7491F6}San Fierro Department\n{FF5B5B}Comando Vermelho", "Escolher", "Sair");
- return 1;
- }
- if(response >= 1)
- {
- TogglePlayerControllable(playerid, 1);
- if(listitem == 0)
- {
- PlayerInfo[playerid][pSkin] = 114;
- SetPlayerSkin(playerid, 114);
- GivePlayerWeapon(playerid, 22, 120);
- GivePlayerWeapon(playerid, 5, 1);
- PlayerInfo[playerid][pORG] = 4;
- AtualizarJogador(playerid);
- SpawnPlayer(playerid)
- }
- if(listitem == 1)
- {
- PlayerInfo[playerid][pSkin] = 115;
- SetPlayerSkin(playerid, 115);
- GivePlayerWeapon(playerid, 22, 120);
- GivePlayerWeapon(playerid, 5, 1);
- PlayerInfo[playerid][pORG] = 4;
- AtualizarJogador(playerid);
- SpawnPlayer(playerid)
- }
- if(listitem == 2)
- {
- PlayerInfo[playerid][pSkin] = 166;
- SetPlayerSkin(playerid, 116);
- GivePlayerWeapon(playerid, 22, 120);
- GivePlayerWeapon(playerid, 5, 1);
- PlayerInfo[playerid][pORG] = 4;
- AtualizarJogador(playerid);
- SpawnPlayer(playerid)
- }
- }
- return 1;
- }
- if(dialogid == SKINSFPD)
- {
- if(response == 0)
- {
- ShowPlayerDialog(playerid, 11, DIALOG_STYLE_LIST, "{FFFF00}Escolha sua organização", "{00D900}Grove Street Families\n{FFC801}Los Santos Vagos\n{D900D3}Front Yard Ballas\n{2641FE}Los Varrios Aztecas\n{7491F6}San Fierro Department\n{FF5B5B}Comando Vermelho", "Escolher", "Sair");
- return 1;
- }
- if(response >= 1)
- {
- TogglePlayerControllable(playerid, 1);
- if(listitem == 0)
- {
- PlayerInfo[playerid][pSkin] = 280;
- SetPlayerSkin(playerid, 280);
- PlayerInfo[playerid][pORG] = 5;
- AtualizarJogador(playerid);
- SpawnPlayer(playerid)
- }
- if(listitem == 1)
- {
- PlayerInfo[playerid][pSkin] = 281;
- SetPlayerSkin(playerid, 281);
- PlayerInfo[playerid][pORG] = 5;
- AtualizarJogador(playerid);
- SpawnPlayer(playerid)
- }
- if(listitem == 2)
- {
- PlayerInfo[playerid][pSkin] = 284;
- SetPlayerSkin(playerid, 284);
- PlayerInfo[playerid][pORG] = 5;
- AtualizarJogador(playerid);
- SpawnPlayer(playerid)
- }
- }
- return 1;
- }
- if(dialogid == SKINCV)
- {
- if(response == 0)
- {
- ShowPlayerDialog(playerid, 11, DIALOG_STYLE_LIST, "{FFFF00}Escolha sua organização", "{00D900}Grove Street Families\n{FFC801}Los Santos Vagos\n{D900D3}Front Yard Ballas\n{2641FE}Los Varrios Aztecas\n{7491F6}San Fierro Department\n{FF5B5B}Comando Vermelho", "Escolher", "Sair");
- return 1;
- }
- if(response >= 1)
- {
- TogglePlayerControllable(playerid, 1);
- if(listitem == 0)
- {
- PlayerInfo[playerid][pSkin] = 19;
- SetPlayerSkin(playerid, 19);
- GivePlayerWeapon(playerid, 22, 120);
- GivePlayerWeapon(playerid, 5, 1);
- PlayerInfo[playerid][pORG] = 6;
- AtualizarJogador(playerid);
- SpawnPlayer(playerid)
- }
- if(listitem == 1)
- {
- PlayerInfo[playerid][pSkin] = 22;
- SetPlayerSkin(playerid, 22);
- GivePlayerWeapon(playerid, 22, 120);
- GivePlayerWeapon(playerid, 5, 1);
- PlayerInfo[playerid][pORG] = 6;
- AtualizarJogador(playerid);
- SpawnPlayer(playerid)
- }
- if(listitem == 2)
- {
- SetPlayerSkin(playerid, 170);
- PlayerInfo[playerid][pSkin] = 170;
- GivePlayerWeapon(playerid, 22, 120);
- GivePlayerWeapon(playerid, 5, 1);
- PlayerInfo[playerid][pORG] = 6;
- AtualizarJogador(playerid);
- SpawnPlayer(playerid)
- }
- }
- return 1;
- }
- if(dialogid == 18)
- {
- if(response == 0)
- {
- TogglePlayerControllable(playerid, 1);
- return 1;
- }
- if(response >= 1)
- {
- TogglePlayerControllable(playerid, 1);
- if(listitem == 0)
- {
- SetPlayerPos(playerid,-2724.1653,-313.6700,7.1872);
- format(string, sizeof(string), "{33CCFF}[ADMIN]{D2D2FF}: %s foi para HQ {2AFC00}Grove", NomeDoJogador(playerid));
- SendClientMessageToAll(COR_INFO, string);
- return 1;
- }
- if(listitem == 1)
- {
- SetPlayerPos(playerid,-2756.5557,375.2302,4.3358);
- format(string, sizeof(string), "{33CCFF}[ADMIN]{D2D2FF}: %s foi para HQ {4300FC}Ballas", NomeDoJogador(playerid));
- SendClientMessageToAll(COR_INFO, string);
- return 1;
- }
- if(listitem == 2)
- {
- SetPlayerPos(playerid,-2523.7625,1216.6310,37.4283);
- format(string, sizeof(string), "{33CCFF}[ADMIN]{D2D2FF}: %s foi para HQ{FCFC00} Vagos", NomeDoJogador(playerid));
- SendClientMessageToAll(COR_INFO, string);
- return 1;
- }
- if(listitem == 3)
- {
- SetPlayerPos(playerid,-1791.7559,567.2145,35.1641);
- format(string, sizeof(string), "{33CCFF}[ADMIN]{D2D2FF}: %s foi para HQ {3F00FC}Azteca", NomeDoJogador(playerid));
- SendClientMessageToAll(COR_INFO, string);
- return 1;
- }
- if(listitem == 4)
- {
- SetPlayerPos(playerid,-1638.5295,661.6255,7.1875);
- format(string, sizeof(string), "{33CCFF}[ADMIN]{D2D2FF}: %s foi para HQ {7491F6}SF:PD", NomeDoJogador(playerid));
- SendClientMessageToAll(COR_INFO, string);
- return 1;
- }
- if(listitem == 5)
- {
- SetPlayerPos(playerid,-2355.7173,998.4549,50.8984);
- format(string, sizeof(string), "{33CCFF}[ADMIN]{D2D2FF}: %s foi para HQ {7491F6}Comando Vermelho", NomeDoJogador(playerid));
- SendClientMessageToAll(COR_INFO, string);
- return 1;
- }
- }
- return 1;
- }
- if(dialogid == 19)
- {
- if(response == 0)
- {
- TogglePlayerControllable(playerid, 1);
- return 1;
- }
- if(response == 1)
- {
- TogglePlayerControllable(playerid, 1);
- if(listitem == 0)
- {
- SetPlayerPos(playerid, -2070.2171, 242.9599, 35.3125);
- format(string, sizeof(string), "{33CCFF}[ADMIN]{D2D2FF}: %s foi para a Construção(Território).", NomeDoJogador(playerid));
- SendClientMessageToAll(COR_INFO, string);
- return 1;
- }
- }
- return 1;
- }
- //falta por eventos, caso tenha.
- if(dialogid == 21)
- {
- if(response == 0)
- {
- TogglePlayerControllable(playerid, 1);
- return 1;
- }
- if(response == 1)
- {
- TogglePlayerControllable(playerid, 1);
- if(listitem == 0)
- {
- SetPlayerPos(playerid,-2272.6733,43.8462,35.3125);
- format(string, sizeof(string), "{33CCFF}[ADMIN]{D2D2FF}: %s foi para a Loja de armas", NomeDoJogador(playerid));
- SendClientMessageToAll(COR_INFO, string);
- return 1;
- }
- }
- return 1;
- }
- return 0;
- }
- //========== [ OnPlayerConnect ] ==================
- public OnPlayerConnect(playerid)
- {
- //--------------- Player entrou ---------------------
- new string[256];
- format(string, sizeof(string), "~w~FusioN TDM: ~g~Seja bem-vindo ~r~~n~%s",NomeDoJogador(playerid));
- GameTextForPlayer(playerid,string,5000,1);
- TextDrawShowForPlayer(playerid, textdraw);
- TextDrawShowForPlayer(playerid, Textdraw1)
- DisableInteriorEnterExits();
- Jogador[playerid] = INVALID_PLAYER_ID;
- UsePlayerPedAnims();
- TextDrawShowForPlayer(playerid, Textdrawdebaixodoradar);
- if(PlayerInfo[playerid][pAdmin] == 0)
- {
- Online++;
- SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: USE: {8470FF}/ajuda");
- format(string,sizeof(string),"{90EE90}[FusioN TDM]{D2D2FF}: [{006400}+{D2D2FF}] O jogador %s entrou no servidor, %d/%d jogadores online.",NomeDoJogador(playerid),Online,GetMaxPlayers());
- SendClientMessageToAll(COR_INFO, string);
- }
- //---------------------------------------------------
- else if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- Online++;
- AdminsOnline++;
- SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: USE: {8470FF}/ajuda");
- format(string,sizeof(string),"{90EE90}[FusioN TDM]{D2D2FF}: [{006400}+{D2D2FF}] O Administrador %s entrou no servidor, %d/%d jogadores online.",NomeDoJogador(playerid),Online,GetMaxPlayers());
- SendClientMessageToAll(COR_INFO, string);
- }
- //=============== [ VISITANTES ] =================
- Visitantes ++;
- format(string, sizeof(string), "{90EE90}[FusioN TDM]{D2D2FF}: Esse servidor teve %d visitantes desde o momento em que foi ligado.", Visitantes);
- SendClientMessage(playerid, COR_INFO, string);
- //=========== [ Sistema de registro ] ===============
- MostrarIconesMapa[playerid] = 0;
- PlayerInfo[playerid][pUltimoLoginAno] = 0;
- PlayerInfo[playerid][pUltimoLoginMes] = 0;
- PlayerInfo[playerid][pUltimoLoginDia] = 0;
- PlayerInfo[playerid][pUltimoLoginHora] = 0;
- PlayerInfo[playerid][pUltimoLoginMinuto] = 0;
- PlayerInfo[playerid][pUltimoLoginSegundo] = 0;
- PlayerInfo[playerid][pLugar] = 0;
- PlayerInfo[playerid][pLevel] = 0;
- PlayerInfo[playerid][pMoney] = 0;
- PlayerInfo[playerid][pMortes] = 0;
- PlayerInfo[playerid][pKills] = 0;
- PlayerInfo[playerid][pSkin] = 1;
- PlayerInfo[playerid][pAdmin] = 0;
- PlayerInfo[playerid][pLogado] = 0;
- PlayerInfo[playerid][pORG] = 0;
- gPlayerConta[playerid] = 0;
- new string2[64];
- format(string2, sizeof(string2), "Contas/%s.ini", NomeDoJogador(playerid));
- SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Aguarde alguns segundos...");
- //================ [ICONES HQ'S] ====================
- SetPlayerMapIcon(playerid, 1, -2719.8328,-318.2808,7.8438, 62, 0xE6E6E6E6);// GROVE STREET
- SetPlayerMapIcon(playerid, 2, -2765.0029,375.4214,6.3431, 59, 0xE6E6E6E6);// BALLAS
- SetPlayerMapIcon(playerid, 3, -2523.7625,1216.6310,37.4283, 60, 0xE6E6E6E6);// VAGOS
- SetPlayerMapIcon(playerid, 4, -1783.8490,572.2196,35.1641, 58, 0xE6E6E6E6); // AZTECAS
- SetPlayerMapIcon(playerid, 5, -1606.2655,673.0223,-5.2422, 30, 0xE6E6E6E6); // SF PD
- SetPlayerMapIcon(playerid, 6, -2343.6538,1006.3931,55.9150, 13, 0xE6E6E6E6); // COMANDO VERMELHO
- SetPlayerMapIcon(playerid, 7, -2272.9070,40.5258,35.3125, 6, 0xE6E6E6E6); // Ammunation
- SetPlayerMapIcon(playerid, 8, -2070.2171, 242.9599, 35.3125, 19,0xE6E6E6E6); // Construção
- //===================================================
- /*TextDrawShowForPlayer(playerid, topoescuro); ~> DESABILITADO
- TextDrawShowForPlayer(playerid, embaixoescuro);*/ // ~> DESABILITADO
- //================= [ Dono GZ ] =====================
- //---- Construcao
- if(donodaconstrucao == 0)
- {
- GangZoneShowForPlayer(playerid, GZConstrucao, COR_GZ);
- }
- if(donodaconstrucao == 1)
- {
- GangZoneShowForPlayer(playerid, GZConstrucao, COR_GROVE);
- }
- if(donodaconstrucao == 2)
- {
- GangZoneShowForPlayer(playerid, GZConstrucao, COR_BALLAS);
- }
- if(donodaconstrucao == 3)
- {
- GangZoneShowForPlayer(playerid, GZConstrucao, COR_VAGOS);
- }
- if(donodaconstrucao == 4)
- {
- GangZoneShowForPlayer(playerid, GZConstrucao, COR_AZTECAS);
- }
- if(donodaconstrucao == 5)
- {
- GangZoneShowForPlayer(playerid, GZConstrucao, COR_SFPD);
- }
- if(donodaconstrucao == 6)
- {
- GangZoneShowForPlayer(playerid, GZConstrucao, COR_CV);
- }
- if(donodoputeiro == 0)
- {
- GangZoneShowForPlayer(playerid, GZPuteiro, COR_GZ);
- }
- if(donodoputeiro == 1)
- {
- GangZoneShowForPlayer(playerid, GZPuteiro, COR_GROVE);
- }
- if(donodoputeiro == 2)
- {
- GangZoneShowForPlayer(playerid, GZPuteiro, COR_BALLAS);
- }
- if(donodoputeiro == 3)
- {
- GangZoneShowForPlayer(playerid, GZPuteiro, COR_VAGOS);
- }
- if(donodoputeiro == 4)
- {
- GangZoneShowForPlayer(playerid, GZPuteiro, COR_AZTECAS);
- }
- if(donodoputeiro == 5)
- {
- GangZoneShowForPlayer(playerid, GZPuteiro, COR_SFPD);
- }
- if(donodoputeiro == 6)
- {
- GangZoneShowForPlayer(playerid, GZPuteiro, COR_CV);
- }
- if(fexist(string2))
- {
- gPlayerConta[playerid] = 1;
- }
- else
- {
- gPlayerConta[playerid] = 0;
- }
- return 1;
- }
- //====================[OnPlayer Spawn]===================
- public OnPlayerSpawn(playerid)
- {
- if(PlayerInfo[playerid][pORG] == 0)
- {
- TogglePlayerControllable(playerid, 0);
- Registrado[playerid] = 1;
- LimparChat(playerid, 125);
- SetPlayerVirtualWorld(playerid,playerid+1);
- ShowPlayerDialog(playerid, 11, DIALOG_STYLE_LIST, "{FFFF00}Escolha sua organização", "{00D900}Grove Street Families\n{FFC801}Los Santos Vagos\n{D900D3}Front Yard Ballas\n{2641FE}Los Varrios Aztecas\n{7491F6}San Fierro Department\n{FF5B5B}Comando Vermelho", "Escolher", "");
- }
- if(PlayerInfo[playerid][pORG] == 1)
- {
- new skin = PlayerInfo[playerid][pSkin];
- SetPlayerSkin(playerid, skin);
- SetPlayerColor(playerid,COR_GROVE);
- SetPlayerPos(playerid, -2719.8328,-318.2808,7.8438);
- SetPlayerVirtualWorld(playerid, 0);
- }
- else if(PlayerInfo[playerid][pORG] == 2)
- {
- new skin = PlayerInfo[playerid][pSkin];
- SetPlayerSkin(playerid, skin);
- SetPlayerColor(playerid,COR_BALLAS);
- SetPlayerPos(playerid, -2765.0029,375.4214,6.3431);
- SetPlayerVirtualWorld(playerid, 0);
- }
- else if(PlayerInfo[playerid][pORG] == 3)
- {
- new skin = PlayerInfo[playerid][pSkin];
- SetPlayerSkin(playerid, skin);
- SetPlayerColor(playerid,COR_VAGOS);
- SetPlayerPos(playerid, -2523.7625,1216.6310,37.4283);
- SetPlayerVirtualWorld(playerid, 0);
- }
- else if(PlayerInfo[playerid][pORG] == 4)
- {
- new skin = PlayerInfo[playerid][pSkin];
- SetPlayerSkin(playerid, skin);
- SetPlayerColor(playerid,COR_AZTECAS);
- SetPlayerPos(playerid, -1783.8490,572.2196,35.1641);
- SetPlayerVirtualWorld(playerid, 0);
- }
- else if(PlayerInfo[playerid][pORG] == 5)
- {
- new skin = PlayerInfo[playerid][pSkin];
- SetPlayerSkin(playerid, skin);
- SetPlayerColor(playerid,COR_SFPD);
- SetPlayerPos(playerid, -1606.2655,673.0223,-5.2422);
- SetPlayerVirtualWorld(playerid, 0);
- }
- else if(PlayerInfo[playerid][pORG] == 6)
- {
- new skin = PlayerInfo[playerid][pSkin];
- SetPlayerSkin(playerid, skin);
- SetPlayerColor(playerid,COR_CV);
- SetPlayerPos(playerid, -2357.7964,1008.2492,50.8984);
- SetPlayerVirtualWorld(playerid, 0);
- }
- PlayerPlaySound(playerid, 1069, 0.0, 0.0, 0.0);
- return 1;
- }
- //=============== [ OnPlayerDisconnect ] ================
- public OnPlayerDisconnect(playerid, reason)
- {
- //new string[128];
- /*if(TaNoX1[playerid] == 1) ~> DESABILITADO
- {
- Limitex12 -= 1;
- } */
- PlayerInfo[playerid][pLogado] = 0;
- TextDrawHideForPlayer(playerid, textdraw);
- DestroyVehicle(veiculonovo);
- Online --;
- switch(reason)
- {
- case 0: format(gstring, sizeof(gstring), "{90EE90}[FusioN TDM]{D2D2FF}: [{FF0000}-{D2D2FF}] O jogador '%s' saiu do server por erro de conexão ou crash, %d/%d jogadores online.", NomeDoJogador(playerid),Online,GetMaxPlayers());
- case 1: format(gstring, sizeof(gstring), "{90EE90}[FusioN TDM]{D2D2FF}: [{FF0000}-{D2D2FF}] O jogador '%s' saiu por vontade propria, %d/%d jogadores online.", NomeDoJogador(playerid),Online,GetMaxPlayers());
- case 2: format(gstring, sizeof(gstring), "{90EE90}[FusioN TDM]{D2D2FF}: [{FF0000}-{D2D2FF}] O jogador '%s' Saiu do servidor kickado ou banido, %d/%d jogadores online.", NomeDoJogador(playerid),Online,GetMaxPlayers());
- }
- SendClientMessageToAll(COR_INFO, gstring);
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- if(IsPlayerConnected(playerid))
- {
- AdminsOnline--;
- format(gstring,sizeof(gstring),"{90EE90}[FusioN TDM]{D2D2FF}: [{FF0000}-{D2D2FF}] O Administrador %s saiu do servidor, %d/%d jogadores online.",NomeDoJogador(playerid),Online,GetMaxPlayers());
- SendClientMessageToAll(COR_INFO, gstring);
- }
- }
- if(ProvocouConstrucao[playerid] == 1)
- {
- GangZoneStopFlashForAll(GZConstrucao);
- GangZoneShowForAll(GZConstrucao, COR_GZ);
- GuerranaConstrucao = 0;
- ProvocouConstrucao[playerid] = 0;
- donodaconstrucao = 0;
- Dominando[playerid] = 0;
- KillTimer(TempoDeGuerraNaConstrucao);
- }
- if(ProvocouPuteiro[playerid] == 1)
- {
- GangZoneStopFlashForAll(GZPuteiro);
- GangZoneShowForAll(GZPuteiro, COR_GZ);
- GuerranoPuteiro = 0;
- ProvocouPuteiro[playerid] = 0;
- donodoputeiro = 0;
- Dominando[playerid] = 0;
- KillTimer(TempoDeGuerraNoPuteiro);
- }
- }
- //===============[ OnPlayerRequestClass ] ===============
- public OnPlayerRequestClass(playerid,classid)
- {
- new arquivodini[256];
- format(arquivodini, 64, "Contas/%s.ini", NomeDoJogador(playerid));
- if(dini_Exists(arquivodini))
- {
- TogglePlayerControllable(playerid, 0);
- SetPlayerCameraPos(playerid, -2974.0347,455.1507,7.9141);
- SetPlayerCameraLookAt(playerid,-2948.5391,395.5059,2.6122);
- SetPlayerPos(playerid, -2948.5391,395.5059,-5.6122);
- SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Seu nick está registrado, logue.");
- ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "{90EE90}FusioN TeamDeath Match", "Digite sua senha para logar-se", "Logar", "Esperar");
- }
- else
- {
- TogglePlayerControllable(playerid, 0);
- SetPlayerCameraPos(playerid, -2974.0347,455.1507,7.9141);
- SetPlayerCameraLookAt(playerid,-2948.5391,395.5059,2.6122);
- SetPlayerPos(playerid, -2948.5391,395.5059,-5.6122);
- SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Você não está registrado. Registre-se Para jogar");
- ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "{90EE90}FusioN TeamDeath Match", "Crie sua senha para registrar-se", "Registrar", "Esperar");
- }
- return 1;
- }
- //================= [ OnGameModeInit ] ==================
- public OnGameModeInit()
- {
- CreatePickup(1318, 1,-318.0935,7.8438,220.0164, -1);
- SetGameModeText("FusioN ~ Team DeathMatch");
- textdraw = TextDrawCreate(206,11,"~u~ ~r~www.-fusion-games.forumeiros.com ~u~");
- TextDrawFont(textdraw,3);
- TextDrawUseBox(textdraw,0);
- SetTimer("NomeServer",1000,1);
- SendRconCommand("mapname San Fierro");
- //=================[ STUNT ] ========================
- AddStaticVehicleEx(468,1902.36669922,-2233.57446289,13.30687523,180.00000000,1,-1,15); //Sanchez (stunt)
- AddStaticVehicleEx(468,1903.61901855,-2233.62988281,13.30687523,180.00000000,1,-1,15); //Sanchez (stunt)
- AddStaticVehicleEx(468,1904.71862793,-2233.65747070,13.30687523,180.00000000,1,-1,15); //Sanchez (stunt)
- AddStaticVehicleEx(468,1905.88964844,-2233.73559570,13.30687523,180.00000000,1,-1,15); //Sanchez (stunt)
- AddStaticVehicleEx(468,1907.23449707,-2233.85009766,13.30687523,180.00000000,1,-1,15); //Sanchez (stunt)
- AddStaticVehicleEx(468,1908.38476562,-2233.87646484,13.30687523,180.00000000,1,-1,15); //Sanchez (stunt)
- AddStaticVehicleEx(468,1909.53466797,-2233.95703125,13.30687523,180.00000000,1,-1,15); //Sanchez (stunt)
- AddStaticVehicleEx(468,1910.63452148,-2233.92578125,13.30687523,180.00000000,1,-1,15); //Sanchez (stunt)
- AddStaticVehicleEx(468,1911.78027344,-2233.84082031,13.30687523,180.00000000,1,-1,15); //Sanchez (stunt)
- AddStaticVehicleEx(560,1914.63720703,-2233.93359375,13.35185051,180.00000000,6,1,15); //Sultan (stunt)
- AddStaticVehicleEx(560,1918.00927734,-2234.00659180,13.35185051,180.00000000,6,1,15); //Sultan (stunt)
- AddStaticVehicleEx(560,1921.49938965,-2234.04663086,13.35185051,180.00000000,6,1,15); //Sultan (stunt)
- AddStaticVehicleEx(560,1924.90844727,-2233.97924805,13.35185051,180.00000000,6,1,15); //Sultan (stunt)
- AddStaticVehicleEx(560,1928.20776367,-2234.11450195,13.35185051,180.00000000,6,1,15); //Sultan (stunt)
- AddStaticVehicleEx(560,1931.50683594,-2234.19873047,13.35185051,180.00000000,6,1,15); //Sultan (stunt)
- AddStaticVehicleEx(560,1935.15124512,-2234.24951172,13.35185051,180.00000000,6,1,15); //Sultan (stunt)
- AddStaticVehicleEx(560,1935.15124512,-2234.24951172,13.35185051,180.00000000,6,1,15); //Sultan (stunt)(17 veículos)
- CreateObject(3270,1921.74804688,-2299.01171875,11.77188683,0.00000000,0.00000000,33.99169922); //object(bonyrd_block2_) (1) (stunt)
- CreateObject(3270,1972.17187500,-2335.70507812,11.72188759,0.00000000,0.00000000,139.99328613); //object(bonyrd_block2_) (1) (stunt)
- CreateObject(12956,1840.17187500,-2438.99609375,15.93293381,0.00000000,0.00000000,15.99609375); //object(sw_trailerjump) (1) (stunt)
- CreateObject(13590,2008.15917969,-2623.00976562,13.79773521,0.00000000,0.00000000,90.50000000); //object(kickbus04) (1) (stunt)
- CreateObject(13641,1966.18164062,-2619.84960938,12.93423462,0.00000000,0.00000000,353.99597168); //object(kickramp04) (1) (stunt)
- CreateObject(13592,1957.39843750,-2623.80957031,22.29250908,0.00000000,0.00000000,1.74621582); //object(loopbig) (1) (stunt)
- CreateObject(13592,1858.38671875,-2417.88671875,22.34250832,0.00000000,0.00000000,26.24084473); //object(loopbig) (2) (stunt)
- CreateObject(13592,1723.34179688,-2487.20141602,22.53225327,0.00000000,0.00000000,4.24621582); //object(loopbig) (3) (stunt)
- CreateObject(13592,1708.88061523,-2495.04492188,22.53225327,0.00000000,0.00000000,4.24621582); //object(loopbig) (4) (stunt)
- CreateObject(13592,1738.27026367,-2478.83422852,22.38225555,0.00000000,0.00000000,184.49621582); //object(loopbig) (4) (stunt)
- CreateObject(13592,1750.78454590,-2471.00390625,22.33225632,0.00000000,0.00000000,184.49340820); //object(loopbig) (4) (stunt)
- CreateObject(13638,1954.87194824,-2445.50390625,15.11154938,0.00000000,0.00000000,0.00000000); //object(stunt1) (1) (stunt)
- CreateObject(5244,1747.46887207,-2593.84985352,15.01988602,0.00000000,0.00000000,0.00000000); //object(lasntrk1im03) (1) (stunt)
- CreateObject(13636,1776.09985352,-2550.19067383,14.70226860,0.00000000,0.00000000,0.00000000); //object(logramps) (1) (stunt)
- CreateObject(1634,1778.79418945,-2593.54321289,13.61919594,0.00000000,0.00000000,90.00000000); //object(landjump2) (1) (stunt)
- CreateObject(1634,1704.45129395,-2593.70581055,13.61919594,0.00000000,0.00000000,272.00000000); //object(landjump2) (2) (stunt)
- CreateObject(5244,1742.32971191,-2593.68188477,15.01988602,0.00000000,0.00000000,0.00000000); //object(lasntrk1im03) (2) (stunt)(17 objetos)
- //==================[ TEXT DRAW ] ====================
- fusion = TextDrawCreate(512.000000,99.000000,"~g ~g[FUSION TDM]~g"); // Mude para o nome que deseja
- TextDrawFont(fusion,0);
- TextDrawColor(fusion,16711935); // Cor da letra
- TextDrawLetterSize(fusion,0.599999,1.000000);
- TextDrawSetOutline(fusion,1);
- TextDrawSetShadow(fusion,1);
- TextDrawSetProportional(fusion,1);
- TextDrawBackgroundColor(fusion,0x000000ff);
- //==================[ ARENA TDM ] ===========
- CreateObject(16771,3133.73266602,-1661.36303711,10.25000000,0.00000000,0.00000000,0.00000000); //arena x1 mar
- CreateObject(9108,3125.31445312,-1565.62402344,-24.68946075,0.00000000,0.00000000,0.00000000); //arena x1 mar
- CreateObject(987,3118.06079102,-1639.73901367,3.69531250,0.00000000,0.00000000,0.00000000); //arena x1 mar
- CreateObject(987,3130.00927734,-1639.75256348,3.69531250,0.00000000,0.00000000,0.00000000); //arena x1 mar
- CreateObject(987,3139.06811523,-1639.69921875,3.69531250,0.00000000,0.00000000,0.00000000); //arena x1 mar (5 objects)
- //==================[ TEXT DRAW RADAR BY BLACK ] ==================
- // CASO RODNEY QUEIRA MUDAR
- Textdrawdebaixodoradar= TextDrawCreate(1.0, 433.0,"~b~ ~b~[FusioN] Team Death Match Brasil] Versao 1.0~b~");
- TextDrawAlignment(Textdrawdebaixodoradar,0);
- TextDrawBackgroundColor(Textdrawdebaixodoradar,0x000000ff);
- TextDrawFont(Textdrawdebaixodoradar,2);//
- TextDrawLetterSize(Textdrawdebaixodoradar,0.2999, 1.4);
- TextDrawBoxColor(Textdrawdebaixodoradar,0x00000050);
- TextDrawColor(Textdrawdebaixodoradar,0xffffffff);
- TextDrawSetOutline(Textdrawdebaixodoradar,1);
- TextDrawSetProportional(Textdrawdebaixodoradar,1);
- TextDrawSetShadow(Textdrawdebaixodoradar,1);//
- for(new i; i < MAX_PLAYERS; i ++)
- {
- if(IsPlayerConnected(i))
- {
- TextDrawShowForPlayer(i, Textdrawdebaixodoradar);
- }
- }
- //---- gangzones
- //-- Construcao
- donodaconstrucao = 0;
- GZConstrucao = GangZoneCreate(-2132.02, 136.4459, -2008.414, 325.8042);
- //-- Puteiro
- donodoputeiro = 0;
- GZPuteiro = GangZoneCreate(-2645.757, 1343.605, -2545.327, 1442.229);
- //-- pickups --
- AddStaticPickup(1318, 1, -2272.9070,40.5258,35.3125, -1); // Entrada Ammunation
- AddStaticPickup(1318, 1, 316.3856,-169.3918,999.6010, -1) // Saída Ammunation
- //-- TEXTLABEL --
- Create3DTextLabel("Ammunation\nPressione 'F' para entrar.",COR_TEXTO3D,-2272.9070,40.5258,35.3125,10.0,0); // Entrada Ammunation
- //==================[ HQ ~ COMANDO VERMELHO ] ==================
- AddStaticVehicleEx(603,-2320.95214844,986.93457031,50.69798660,0.00000000,3,3,15); // [ 1 ]
- AddStaticVehicleEx(560,-2319.96289062,1032.06738281,50.50028610,90.00000000,3,1,15); // [ 2 ]
- AddStaticVehicleEx(603,-2324.22778320,987.20489502,50.69798660,0.00000000,3,3,15); // [ 3 ]
- AddStaticVehicleEx(541,-2319.57446289,1021.85137939,50.39531326,92.00000000,3,3,15); // [ 4 ]
- AddStaticVehicleEx(415,-2319.50463867,1011.50189209,50.54483414,90.00000000,3,1,15); // [ 5 ]
- AddStaticVehicleEx(415,-2319.68432617,1008.17047119,50.54483414,90.00000000,3,1,15); // [ 6 ]
- AddStaticVehicleEx(415,-2319.61718750,1004.88183594,50.54483414,90.00000000,3,1,15); // [ 7 ]
- AddStaticVehicleEx(522,-2319.03271484,1000.32855225,50.36326981,86.00000000,3,3,15); // [ 8 ]
- AddStaticVehicleEx(522,-2319.15063477,999.08361816,50.36326981,85.99548340,3,3,15); // [ 9 ]
- AddStaticVehicleEx(522,-2319.31542969,997.33984375,50.36326981,85.99548340,3,3,15); //[ 10 ]
- //==================[ HQ ~ AZTECAS ] ===========================
- AddStaticVehicleEx(576,-1794.80786133,589.08135986,34.73905182,151.99987793,103,1,15); // [ 11 ]
- AddStaticVehicleEx(566,-1799.23657227,589.32037354,34.91405487,152.00000000,103,1,15); // [ 12 ]
- AddStaticVehicleEx(480,-1803.36633301,589.87097168,35.01406097,156.00000000,103,1,15); // [ 13 ]
- AddStaticVehicleEx(474,-1790.48449707,589.29730225,35.06406403,150.00000000,103,1,15); // [ 14 ]
- AddStaticVehicleEx(581,-1789.15783691,582.23168945,34.86655426,126.00000000,103,1,15); // [ 15 ]
- AddStaticVehicleEx(461,-1788.39062500,580.60449219,34.73722839,121.99768066,103,1,15); // [ 16 ]
- AddStaticVehicleEx(581,-1787.23120117,578.93188477,34.86655426,125.99670410,103,1,15); // [ 17 ]
- //caros
- AddStaticVehicleEx(597,-1573.34704590,706.07995605,-5.37218761,90.00000000,-1,1,15); // [ 18 ]
- AddStaticVehicleEx(597,-1573.33911133,710.23583984,-5.37218761,90.00000000,-1,1,15); // [ 19 ]
- AddStaticVehicleEx(597,-1573.29125977,714.26330566,-5.37218761,90.00000000,-1,1,15); // [ 20 ]
- AddStaticVehicleEx(597,-1573.33264160,718.26977539,-5.37218761,90.00000000,-1,1,15); // [ 21 ]
- AddStaticVehicleEx(597,-1573.35119629,722.34051514,-5.37218761,90.00000000,-1,1,15); // [ 22 ]
- AddStaticVehicleEx(523,-1573.11083984,726.75653076,-5.58181000,92.00000000,-1,-1,15); // [ 23 ]
- AddStaticVehicleEx(523,-1573.10961914,730.85595703,-5.58181000,91.99951172,-1,-1,15); // [ 24 ]
- AddStaticVehicleEx(523,-1573.18872070,734.73895264,-5.58181000,91.99951172,-1,-1,15); // [ 25 ]
- AddStaticVehicleEx(523,-1572.97363281,738.75109863,-5.58181000,91.99951172,-1,-1,15); // [ 26 ]
- AddStaticVehicleEx(523,-1573.14709473,742.95953369,-5.58181000,91.99951172,-1,-1,15); // [ 27 ]
- //============ [ CV ] ===========
- CreateObject(3749,-2364.57031250,965.27441406,50.36738586,0.00000000,0.00000000,0.00000000); //object(clubgate01_lax) (1)
- CreateObject(3092,-2364.53637695,962.77508545,51.90036011,0.00000000,0.00000000,179.99993896); //object(dead_tied_cop) (1)
- CreateObject(3092,-2363.81054688,962.77441406,51.95886230,0.00000000,0.00000000,179.99450684); //object(dead_tied_cop) (3)
- CreateObject(980,-2433.41503906,497.28482056,31.70606232,0.00000000,0.00000000,22.00000000); //object(airportgate) (2)
- //=================== [ ARENA X1 ] ====================== 18 objetos
- CreateObject(987, 1491.1190185547, -1113.9378662109, 134.828125, 0, 0, 0); //arena x1
- CreateObject(987, 1503.1105957031, -1113.9516601563, 134.828125, 0, 0, 0); //arena x1
- CreateObject(987, 1515.0943603516, -1113.9479980469, 134.828125, 0, 0, 0); //arena x1
- CreateObject(987, 1527.1196289063, -1113.9428710938, 134.828125, 0, 0, 0); //arena x1
- CreateObject(987, 1539.0938720703, -1113.9443359375, 134.828125, 0, 0, 0); //arena x1
- CreateObject(987, 1551.0864257813, -1114.0242919922, 134.828125, 0, 0, 270); //arena x1
- CreateObject(987, 1551.0949707031, -1126.0083007813, 134.828125, 0, 0, 270); //arena x1
- CreateObject(987, 1551.0816650391, -1137.9957275391, 134.828125, 0, 0, 270); //arena x1
- CreateObject(987, 1551.0782470703, -1141.0017089844, 134.828125, 0, 0, 270); //arena x1
- CreateObject(987, 1551.0194091797, -1151.6549072266, 134.828125, 0, 0, 180); //arena x1
- CreateObject(987, 1539.0758056641, -1151.6381835938, 134.828125, 0, 0, 179.99450683594); //arena x1
- CreateObject(987, 1527.142578125, -1151.6578369141, 134.828125, 0, 0, 179.99450683594); //arena x1
- CreateObject(987, 1515.1802978516, -1151.66796875, 134.828125, 0, 0, 179.99450683594); //arena x1
- CreateObject(987, 1503.1853027344, -1151.6451416016, 134.828125, 0, 0, 179.99450683594); //arena x1
- CreateObject(987, 1491.6091308594, -1151.5003662109, 134.828125, 0, 0, 89.994506835938); //arena x1
- CreateObject(987, 1491.6375732422, -1139.5330810547, 134.828125, 0, 0, 89.994506835938); //arena x1
- CreateObject(987, 1491.6551513672, -1127.5769042969, 134.828125, 0, 0, 89.994506835938); //arena x1
- CreateObject(987, 1491.64453125, -1124.5695800781, 134.828125, 0, 0, 89.994506835938); //arena x1
- //================ [ GangZone ~ Puteiro ] ============== 6 objetos
- CreateObject(18246,-2638.71411133,1346.57275391,9.09152603,0.00000000,0.00000000,0.00000000);
- CreateObject(2890,-2604.63256836,1369.27990723,6.09966183,0.00000000,0.00000000,38.00000000);
- CreateObject(12957,-2638.89038086,1356.62609863,7.01930809,0.00000000,0.00000000,310.00000000);
- CreateObject(12957,-2625.32617188,1371.72070312,7.01930809,0.00000000,0.00000000,47.99572754);
- CreateObject(13591,-2638.19311523,1371.89904785,9.29472828,0.00000000,0.00000000,284.00000000);
- CreateObject(12957,-2645.56591797,1317.61914062,7.01930809,0.00000000,0.00000000,255.99572754);
- //============== [ GangZone ~ Construção ] ============= 14 objetos
- //---- objetos em volta - EXTRA -qq 6 objetos
- CreateObject(3594, -2245.9370117188, 222.5230255127, 34.951488494873, 0, 0, 8); //Objetos em volta tr 001
- CreateObject(3593, -2160.7009277344, -57.094345092773, 35.022686004639, 0, 0, 16); //Objetos em volta tr 001
- CreateObject(3594, -2078.8850097656, 21.305450439453, 34.951488494873, 0, 0, 310); //Objetos em volta tr 001
- CreateObject(3594, -2131.505859375, 496.63024902344, 34.803050994873, 0, 0, 306); //Objetos em volta tr 001
- CreateObject(3594, -2021.6226806641, 557.35620117188, 34.795253753662, 0, 0, 252); //Objetos em volta tr 001
- CreateObject(1358, -2235.8374023438, 517.00482177734, 35.375419616699, 0, 0, 28); //Objetos em volta tr 001
- //----
- CreateObject(2890, -2123.982421875, 216.05436706543, 34.305191040039, 0, 0, 270); //TR 001
- CreateObject(12957, -2125.4948730469, 211.31047058105, 35.164348602295, 0, 0, 174); //TR 001
- CreateObject(12957, -2126.2312011719, 206.04020690918, 35.164348602295, 0, 0, 357.99597167969); //TR 001
- CreateObject(12957, -2135.4562988281, 200.49903869629, 35.164348602295, 0, 0, 179.99499511719); //TR 001
- CreateObject(12957, -2135.9846191406, 206.48287963867, 35.164348602295, 0, 0, 359.99450683594); //TR 001
- CreateObject(12957, -2135.1196289063, 211.57006835938, 35.164348602295, 0, 0, 179.98901367188); //TR 001
- CreateObject(3461, -2125.8615722656, 203.87991333008, 34.606369018555, 0, 0, 0); //TR 001
- CreateObject(3461, -2135.4636230469, 213.7407989502, 34.556365966797, 0, 0, 0); //TR 001
- CreateObject(3573, -2075.8190917969, 201.4518737793, 37.354564666748, 0, 0, 308); //TR 001
- CreateObject(3575, -2058.2839355469, 281.59628295898, 36.799289703369, 0, 0, 0); //TR 001
- CreateObject(7317, -2051.07421875, 228.15628051758, 40.26473236084, 0, 0, 270); //TR 001
- CreateObject(3575, -2111.8032226563, 251.64399719238, 37.524333953857, 0, 356, 16); //TR 001
- CreateObject(3573, -2099.3676757813, 166.29258728027, 36.704524993896, 0, 0, 27.996215820313); //TR 001
- CreateObject(3575, -2120.2541503906, 296.54943847656, 36.799289703369, 0, 0, 40); //TR 001
- //---- ammunation ~ 10 objetos
- CreateObject(944, 310.99899291992, -160.2159576416, 999.478515625, 0, 0, 0);
- CreateObject(3014, 312.08880615234, -160.57638549805, 1000.2758178711, 0, 0, 0);
- CreateObject(3014, 310.88705444336, -159.73852539063, 1000.2758178711, 0, 0, 0);
- CreateObject(3014, 310.13067626953, -160.67391967773, 1000.2758178711, 0, 0, 0);
- CreateObject(1224, 307.84002685547, -166.40014648438, 999.20867919922, 0, 0, 0);
- CreateObject(1224, 308.38012695313, -165.67610168457, 1000.3283081055, 0, 0, 0);
- CreateObject(1224, 308.94448852539, -164.72091674805, 999.20867919922, 0, 0, 0);
- CreateObject(1230, 311.90603637695, -166.78846740723, 1000.0914306641, 0, 0, 0);
- CreateObject(1230, 311.59396362305, -169.7569732666, 999.01776123047, 0, 0, 0);
- CreateObject(1299, 316.83779907227, -164.7844543457, 999.05688476563, 0, 0, 0);
- //----
- return 1;
- }
- public GameModeInitExitFunc()
- {
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- GameTextForPlayer(i, "> GMX <", 4000, 5);
- TogglePlayerControllable(i, 0);
- SetPlayerCameraPos(i, -2974.0347,455.1507,7.9141);
- TextDrawHideForAll(Textdraw1);
- TextDrawDestroy(Textdraw1);
- SetPlayerCameraLookAt(i,-2948.5391,395.5059,2.6122);
- SetPlayerPos(i, -2948.5391,395.5059,-5.6122);
- PlayerInfo[i][pLogado] = 0;
- }
- }
- KillTimer(TempoDeGuerraNaConstrucao);
- KillTimer(TempoDeGuerraNoPuteiro);
- SetTimer("GameModeExitFunc", 4000, 0);
- return 1;
- }
- public GameModeExitFunc()
- {
- GameModeExit();
- }
- //================== [ OnPlayerDeath ] ==================
- public OnPlayerDeath(playerid, killerid, reason)
- {
- new string[256];
- SendDeathMessage(killerid,playerid,reason);
- DropWeapons( playerid );
- //================== [ Morte no x1 ] ==================== ~> DESABILITADO
- /*if(TaNoX1[playerid] == 1)
- {
- new
- string[50+MAX_PLAYER_NAME],
- Nome[40][MAX_PLAYERS],
- Nomi[40][MAX_PLAYERS]
- ;
- PlayerInfo[playerid][pMortes]++;
- TaNoX1[playerid] = 0;
- TaNoX1[killerid] = 0;
- Limitex12 = 0;
- format(string, sizeof(string),"{0000FF}[X1]{D2D2FF}: %s ganhou no x1 contra %s.",Nomi[killerid], Nome[killerid]);
- SendClientMessageToAll(COR_BRANCA, string);
- SpawnarJogador(killerid);
- SpawnarJogador(playerid);
- } */
- if(ProvocouConstrucao[playerid] == 1)
- {
- AtualizarJogador(playerid);
- AtualizarJogador(killerid);
- GangZoneStopFlashForAll(GZConstrucao);
- GangZoneShowForAll(GZConstrucao, COR_GZ);
- GuerranaConstrucao = 0;
- ProvocouConstrucao[playerid] = 0;
- donodaconstrucao = 0;
- Dominando[playerid] = 0;
- KillTimer(TempoDeGuerraNaConstrucao);
- }
- if(ProvocouPuteiro[playerid] == 1)
- {
- AtualizarJogador(playerid);
- AtualizarJogador(killerid);
- GangZoneStopFlashForAll(GZPuteiro);
- GangZoneShowForAll(GZPuteiro, COR_GZ);
- GuerranoPuteiro = 0;
- ProvocouPuteiro[playerid] = 0;
- donodoputeiro = 0;
- Dominando[playerid] = 0;
- KillTimer(TempoDeGuerraNoPuteiro);
- }
- GetPlayerName(killerid, TKmatador, sizeof(TKmatador));
- if(killerid == INVALID_PLAYER_ID)
- {
- SendDeathMessage(INVALID_PLAYER_ID,playerid,reason);
- }
- else if(PlayerInfo[killerid][pORG] == PlayerInfo[playerid][pORG])
- {
- format(string, sizeof(string),"{FFFF00}[INFO]{D2D2FF}: O jogador %s da sua organização, te matou", TKmatador);
- SendClientMessage(killerid, COR_INFO,"{FFFF00}[INFO]{D2D2FF}: Você perdeu 1 ponto e 10000 R$ por ter cometido TK(Team-Kill).");
- SendClientMessage(playerid, COR_INFO, string);
- SetPlayerScore(killerid,GetPlayerScore(killerid) -1);
- GivePlayerMoney(killerid, -10000);
- PlayerInfo[killerid][pKills]++;
- PlayerInfo[playerid][pMortes]++;
- AtualizarJogador(playerid);
- AtualizarJogador(killerid);
- SetPlayerScore(killerid, GetPlayerScore(playerid) + 1);
- SetPlayerScore(playerid, GetPlayerScore(playerid) - 1);
- }
- if(IsPlayerInAnyVehicle(killerid))
- {
- new NomeDoMatador[40][MAX_PLAYERS];
- GetPlayerName(killerid, NomeDoMatador[killerid], 40);
- format(string, sizeof(string), "{33CCFF}[ADMIN] %s cometeu Drive-by em %s e foi kickado automaticamente.",NomeDoMatador[killerid],NomeDoJogador(playerid));
- SendClientMessageToAll(COR_INFO, string);
- Kick(killerid);
- AtualizarJogador(playerid);
- AtualizarJogador(killerid);
- }
- return 1;
- }
- //================= [ OnPlayerCommand ] =================
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- new idx;
- new string[256];
- new cmd[256];
- new tmp[256];
- new giveplayerid;
- cmd = strtok(cmdtext, idx);
- //============= [ Ganhar admin(provisório) ] ==============
- if(strcmp(NomeDoJogador(playerid),"KeneD_FusioN",true)==0)
- {
- AdminsOnline ++;
- PlayerInfo[playerid][pAdmin] = 1;
- }
- if(strcmp(NomeDoJogador(playerid),"[rLz]Aleeemaao",true)==0)
- {
- AdminsOnline ++;
- PlayerInfo[playerid][pAdmin] = 1;
- }
- if(strcmp(NomeDoJogador(playerid),"Black_Shift",true)==0)
- {
- AdminsOnline ++;
- PlayerInfo[playerid][pAdmin] = 1;
- }
- //============== [ CHUCK ] ================================
- if(strcmp(cmdtext, "/chuck", true) == 0)
- {
- GivePlayerWeapon(playerid, 4, 1);
- GivePlayerWeapon(playerid, 24, 999);
- GivePlayerWeapon(playerid, 25, 999);
- GivePlayerWeapon(playerid, 31, 999);
- GivePlayerWeapon(playerid, 29, 999);
- GivePlayerWeapon(playerid, 34, 999);
- SetPlayerArmour(playerid, 100);
- SetPlayerHealth(playerid, 100);
- format(string, sizeof(string), "Você virou Chuck Norris", playerid);
- GameTextForPlayer(playerid, string, 5000, 3);
- SetPlayerName(playerid, "Chuck_Norris");
- return 1;
- }
- //============== [ Info Player ] ===============
- if(strcmp(cmd,"/teleportes", true) == 0)
- {
- ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, "Info", "{FFFFFF}Recuperar Vida\n{FFFFFF}Reparar Carro\n{FFFFFF}Ban Automatico", "Escolher", " ");
- return 1;
- }
- //============== [ Comandos do FusioN TDM ] ===============
- if(strcmp(cmd,"/teleportes", true) == 0)
- {
- if(!(PlayerInfo[playerid][pAdmin] != 0)) return SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você não é administrador.");
- ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "Escolha o tipo de lugar", "Head Quarters(HQ)\nTerritórios*{FFFF00}NOVO\nEventos*{FF0000}DESATIVADO\nOutros*{FFFF00}NOVO", "Escolher", "Cancelar");
- return 1;
- }
- //================= [ INFO DB ] ========================
- if (strcmp("/infodb", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, Amarelo,"INFORMAÇÕES SOBRE 'DRIVE-BY'");
- SendClientMessage(playerid, Amarelo, "Drive-by é o ato de ficar atropelando e matando jogadores usando");
- SendClientMessage(playerid, Amarelo, "veículos terrestres. Isso, implica em o jogador ser ejetado");
- SendClientMessage(playerid, Amarelo, "do carro e na segunda vez ser 'kickado' do server. Se alguem está te ");
- SendClientMessage(playerid, Amarelo,"atropelando, avise os Admins ( /reportar [mensagem] )");
- SendClientMessage(playerid, Amarelo,"INFO: DB é atropelar com o veículo, NÃO É atirar de dentro do veículo!");
- return 1;
- }
- //================ [ REGRAS ] ==========================
- if(strcmp(cmdtext, "/regras", true) == 0 || strcmp(cmdtext, "/rules", true) == 0)
- {
- SendClientMessage(playerid,COR_VERDE,"••• REGRAS •••");
- SendClientMessage(playerid,COR_AZULCLARO,"1ª Proibido o Racismo, seja ele de Cor, Raça ou Religião. (KICK)");
- SendClientMessage(playerid,COR_AMARELA,"2ª Proibido xingar outros jogadores. E matá-los em areas de lazer (KICK) ");
- SendClientMessage(playerid,COR_AZULCLARO,"3ª Proibido utilizar cheater, ou outros MODs que tragam vantagem sua sobre os outros. (BAN)");
- SendClientMessage(playerid,COR_VERMELHA,"4ª Proibido fazer denúncias falsas. (KICK)");
- SendClientMessage(playerid,COR_AZULCLARO,"5ª Proibido aproveitar-se de jogadores iniciantes. (KICK)");
- SendClientMessage(playerid,COR_VERMELHA,"6ª Proibido divulgar outros servidores. (BAN)");
- SendClientMessage(playerid,COR_AMARELA,"7ª Proibido fazer Drive-By (DB) e Flood. Se não sabe o que é leia ( /infodb ) (KICK)");
- SendClientMessage(playerid,COR_AZULCLARO,"8ª Proibido teclar ESC em áreas de Ganhar Dinheiro. (KICK)");
- SendClientMessage(playerid,COR_VERDE,"9ª Proibido bater e atirar dentro de Ammunation e Banco. (KICK)");
- SendClientMessage(playerid,COR_AMARELA,"•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••");
- return 1;
- }
- //================= [ HOT COFFE ] =========================
- if(strcmp(cmd,"/hotcoffe", true) == 0)
- {
- SendClientMessage(playerid, COR_VERMELHA, "|__________ Comandos HOTCOFFE FUSION TDM |__________");
- SendClientMessage(playerid, COR_VERMELHA, "Para ficar em posição de transar (para mulheres): /mulhersexo");
- SendClientMessage(playerid, COR_VERMELHA, "Para comer a mulher: /comermulher");
- SendClientMessage(playerid, COR_VERMELHA, "Para ficar de 4: /de4");
- SendClientMessage(playerid, COR_VERMELHA, "Para rolar e deitar: /mulherfudida ");
- SendClientMessage(playerid, COR_VERMELHA, "Para bater uma punheta: /punheta (NEGO PUNHETERO) ¬¬");
- SendClientMessage(playerid, COR_VERMELHA, "••••••••••••••••••••••••••••••••••••••••••••");
- return 1;
- }
- //================= [ PEGAR ARMAS ] =====================
- if(strcmp(cmdtext, "/pegararma", true) == 0)
- {
- GivePlayerWeapon(playerid,30,200);
- GivePlayerWeapon(playerid,24,150);
- GivePlayerMoney(playerid,-500);
- SendClientMessage(playerid, COR_VERMELHA, "Armas Compradas ");
- SendClientMessage(playerid, COR_VERMELHA, "Se quiser armas melhores,vá até a loja de armas ");
- return 1;
- }
- //================= [ Entrar e sair ] ====================
- if (strcmp(cmdtext, "/open", true)==0)
- {
- if(PlayerToPoint(10, playerid, 1106.039794 , -1740.868041 , 11.745720))
- {
- SetPlayerInterior(playerid,6);
- SetPlayerVirtualWorld(playerid, 0);
- SetPlayerPos(playerid,316.2087,-166.7301,999.5938);
- }
- //================ [ GODMODE ] ==================
- /*if(strcmp(cmdtext,"/god", true) == 0)
- {
- if(!(PlayerInfo[playerid][pAdmin] != 0)) return SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você não é administrador.");
- SendClientMessage(playerid, COR_BRANCA, "Agora você esta em modo Deus!");
- SetPlayerArmour(playerid, 99999);
- SetPlayerHealth(playerid, 99999);
- return 1;
- } */
- //===========[ Loja System 1.0 ] ==================
- if(strcmp(cmdtext,"/loja", true) == 0)
- {
- if(!(PlayerInfo[playerid][pLugar] == 101)) return SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você não está na loja de armas");
- ShowPlayerDialog(playerid, 4, DIALOG_STYLE_LIST, "{FFFF00}Escolha seu kit", "{FFFFFF}Kit básico (R$ {4169E1}3000{FFFFFF})\n{FFFFFF}Kit intermediário (R$ {4169E1}4000{FFFFFF})\n{FFFFFF}Kit avançado(R$ {4169E1}5000{FFFFFF})", "Ok", "Cancelar");
- return 1;
- }
- //============= [ KIT DE ARMAS ] =========
- /* if(strcmp(cmdtext, "/kits", true) == 0)
- {
- TextDrawAlignment(textdraw0,0);
- TextDrawBackgroundColor(textdraw0,0x000000ff);
- TextDrawFont(textdraw0,1);
- TextDrawLetterSize(textdraw0,0.399999,1.600000);
- TextDrawColor(textdraw0,white);
- TextDrawSetOutline(textdraw0,1);
- TextDrawSetProportional(textdraw0,1);
- TextDrawSetShadow(textdraw0,1);
- TextDrawShowForPlayer(playerid, textdraw0);
- TextDrawAlignment(textdraw1,0);
- TextDrawBackgroundColor(textdraw1,0x000000ff);
- TextDrawFont(textdraw1,1);
- TextDrawLetterSize(textdraw1,0.399999,1.600000);
- TextDrawColor(textdraw1,white);
- TextDrawSetOutline(textdraw1,1);
- TextDrawSetProportional(textdraw1,1);
- TextDrawSetShadow(textdraw1,1);
- TextDrawShowForPlayer(playerid, textdraw1);
- TextDrawAlignment(textdraw2,0);
- TextDrawBackgroundColor(textdraw2,0x000000ff);
- TextDrawFont(textdraw2,1);
- TextDrawLetterSize(textdraw2,0.399999,1.600000);
- TextDrawColor(textdraw2,white);
- TextDrawSetOutline(textdraw2,1);
- TextDrawSetProportional(textdraw2,1);
- TextDrawSetShadow(textdraw2,1);
- TextDrawShowForPlayer(playerid, textdraw2);
- TextDrawAlignment(textdraw3,0);
- TextDrawBackgroundColor(textdraw3,0x000000ff);
- TextDrawFont(textdraw3,1);
- TextDrawLetterSize(textdraw3,0.399999,1.600000);
- TextDrawColor(textdraw3,white);
- TextDrawSetOutline(textdraw3,1);
- TextDrawSetProportional(textdraw3,1);
- TextDrawSetShadow(textdraw3,1);
- TextDrawShowForPlayer(playerid, textdraw3);
- TextDrawAlignment(textdraw4,0);
- TextDrawBackgroundColor(textdraw4,0x000000ff);
- TextDrawFont(textdraw4,1);
- TextDrawLetterSize(textdraw4,0.399999,1.600000);
- TextDrawColor(textdraw4,white);
- TextDrawSetOutline(textdraw4,1);
- TextDrawSetProportional(textdraw4,1);
- TextDrawSetShadow(textdraw4,1);
- TextDrawShowForPlayer(playerid, textdraw4);
- TextDrawAlignment(textdraw5,0);
- TextDrawBackgroundColor(textdraw5,0x000000ff);
- TextDrawFont(textdraw5,1);
- TextDrawLetterSize(textdraw5,0.399999,1.600000);
- TextDrawColor(textdraw5,white);
- TextDrawSetOutline(textdraw5,1);
- TextDrawSetProportional(textdraw5,1);
- TextDrawSetShadow(textdraw5,1);
- TextDrawShowForPlayer(playerid, textdraw5);
- ShowMenuForPlayer(kits,playerid);
- return 1;
- }
- return 1;
- }
- */
- //================= [ Anti-Queda ~ MOTO ] =================
- if(strcmp(cmd, "/setint", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}:{8470FF} /setint {D2D2FF}[ID do interior]");
- return 1;
- }
- new intid;
- intid = strval(tmp);
- SetPlayerInterior(playerid,intid);
- format(string, sizeof(string), "{FFFF00}[INFO]{D2D2FF}: Interior setado para: %d.", intid);
- SendClientMessage(playerid, COR_INFO, string);
- }
- return 1;
- }
- if(strcmp("/antiqueda", cmdtext, true) == 0 || strcmp(cmd, "/aq", true) == 0)
- {
- if(ModoAntiQueda[playerid] > 0)
- {
- ModoAntiQueda[playerid] = 0;
- GameTextForPlayer(playerid, "~w~Modo Anti-queda ~r~desligado", 5000, 5);
- return 1;
- }
- else
- {
- ModoAntiQueda[playerid] = 1;
- GameTextForPlayer(playerid, "~w~Modo Anti-queda ~g~ligado", 5000, 5);
- return 1;
- }
- }
- //=================== [ ANUNCIAR ] ================
- if(strcmp(cmd,"/avisar",true)==0 || strcmp(cmd, "/av", true)==0)
- {
- if(!(IsPlayerConnected(playerid))) return SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Logue primeiro, para poder usar o comando.");
- if(!(PlayerInfo[playerid][pAdmin] != 0)) return SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você não é administrador.");
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[64];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: USE: {8470FF}(/av)isar {D2D2FF}[AVISO]");
- return 1;
- }
- format(string, sizeof(string), "{FFFF00}[INFO{D2D2FF}/{33CCFF}ADMIN]{D2D2FF} %s: {33CCFF}%s", NomeDoJogador(playerid), result);
- SendClientMessageToAll(COR_INFO, string);
- return 1;
- }
- //=================== [ Desvirar carro ] ==================
- if(strcmp(cmdtext, "/flip", true) == 0)
- {
- if(!(IsPlayerInAnyVehicle(playerid))) return SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você não está em um veículo.");
- new Float:angulo;
- GetPlayerVehicleID(playerid);
- GetVehicleZAngle(GetPlayerVehicleID(playerid), angulo);
- SetVehicleZAngle(GetPlayerVehicleID(playerid), angulo);
- SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Veículo desvirado.");
- return 1;
- }
- //=================== [ Reparar Carro ] ===================
- if(strcmp(cmdtext, "/reparar", true) == 0)
- {
- if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você não está em um veículo.");
- new veiculoid = GetPlayerVehicleID(playerid);
- RepairVehicle(veiculoid);
- SetVehicleHealth(veiculoid,1000);
- SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Seu veículo foi reparado.");
- return 1;
- }
- //==================== [ DM ] ============================
- if(strcmp(cmd, "/dm1", true) == 0 || strcmp(cmd, "/arenadm1", true) == 0)
- {
- format(string, sizeof(string), "~r~ARENA ~g~DM", playerid);
- GameTextForPlayer(playerid, string, 8000, 3);
- format(string, sizeof(string), "[INFO] %s foi para a arena dm1 (/dm1)", NomeDoJogador(playerid));
- SendClientMessageToAll(COR_INFO, string);
- SetPlayerArmour(playerid, 100);
- SetPlayerHealth(playerid, 100);
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 24, 999);
- GivePlayerWeapon(playerid, 29, 999);
- GivePlayerWeapon(playerid, 30, 999);
- GivePlayerWeapon(playerid, 34, 999);
- SetPlayerPos(playerid, 3132.1828613281,-1662.2854003906,4.6953125);
- return 1;
- }
- //==================== [ DM ] ============================
- if(strcmp(cmd, "/stunt", true) == 0 || strcmp(cmd, "/stunt1", true) == 0)
- {
- format(string, sizeof(string), "~r~BEM VINDO AO ~g~STUNT", playerid);
- GameTextForPlayer(playerid, string, 8000, 3);
- format(string, sizeof(string), "[INFO] %s foi para arena stunt (/stunt)", NomeDoJogador(playerid));
- SendClientMessageToAll(COR_INFO, string);
- SetPlayerArmour(playerid, 100);
- SetPlayerHealth(playerid, 100);
- ResetPlayerWeapons(playerid);
- SetPlayerPos(playerid, 1916.4108886719,-2248.2448730469,13.546875);
- return 1;
- }
- //==================== [ Arena X1 ] ===================== ~> DESABILITADO
- /*if(strcmp(cmdtext, "/x1", true) == 0)
- {
- if(AFK[playerid] == 1) return SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você está ausente, digite {8470FF}/afk{D2D2FF} para ficar online.");
- if(TaNoX1[playerid] == 1) return SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você já está na arena x1.");
- if(PlayerInfo[playerid][pLogado] == 1)
- {
- if(Limitex12 == 2) return SendClientMessage(playerid, COR_INFO,"{FF0000}[ERRO]{D2D2FF}: A arena x1 está cheia, aguarde um dos players morrerem/desistirem.");
- if(Limitex12 == 0)
- {
- GetPlayerName(playerid, Desafiador, sizeof(Desafiador));
- format(string,sizeof(string),"{0000FF}[X1]{D2D2FF}: %s está desafiando alguém na arena x1. {8470FF}(/x1){D2D2FF}.",Desafiador);
- SendClientMessageToAll(COR_INFO,string);
- SetPlayerPos(playerid,1496.9868,-1134.0276,135.8281);
- TogglePlayerControllable(playerid,0);
- SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Aguarde até que outro jogador aceite o desafio.");
- Limitex12 = 1;
- SetPlayerFacingAngle(playerid,270);
- SetCameraBehindPlayer(playerid);
- TaNoX1[playerid] = 1;
- }
- else if(Limitex12 == 1)
- {
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(TaNoX1[i] == 1)
- {
- TogglePlayerControllable(playerid,0);
- format(string, sizeof(string), "{0000FF}[X1]{D2D2FF}: %s aceitou o desafio de %s na arena x1. {8470FF}(/x1){D2D2FF}.", NomeDoJogador(playerid), Desafiador);
- SendClientMessageToAll(COR_INFO,string);
- SetPlayerPos(playerid,1545.8910,-1133.5770,135.8281);
- Limitex12 = 2;
- SetPlayerFacingAngle(playerid,90);
- SetCameraBehindPlayer(playerid);
- contagemx1 = SetTimer("IniciarContagem",1000,true);
- TaNoX1[i] = 1;
- }
- }
- }
- }
- return 1;
- } */
- //================== [ /sair do evento ] ================ ~> DESABILITADO
- /*if(strcmp(cmdtext, "/sair", true) == 0)
- {
- if(PlayerInfo[playerid][pLogado] == 1)
- {
- if(TaNoX1[playerid] == 1)
- {
- if(Limitex12 == 2)
- {
- Limitex12 = 1;
- TaNoX1[playerid] = 0;
- SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Você desistiu do desafio na arena x1.");
- format(string, sizeof(string), "{0000FF}[X1]{D2D2FF}: %s desistiu do duelo de x1. {8470FF}(/sair){D2D2FF}.",NomeDoJogador(playerid));
- SendClientMessageToAll(COR_INFO,string);
- SpawnarJogador(playerid);
- }
- else if(Limitex12 == 1)
- {
- Limitex12 = 0;
- TaNoX1[playerid] = 0;
- SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Você saiu da arena x1.");
- format(string, sizeof(string), "{0000FF}[X1]{D2D2FF}: %s não quis mais aguardar nenhum jogador e saiu da arena. {8470FF}(/sair){D2D2FF}.",NomeDoJogador(playerid));
- SendClientMessageToAll(COR_INFO,string);
- SpawnarJogador(playerid);
- }
- TogglePlayerControllable(playerid,1);
- }
- }
- return 1;
- } */
- //====================== [ AFK ] ========================
- if(strcmp(cmdtext,"/afk",true)==0)
- {
- //if(TaNoX1[playerid] != 0) return SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você está na arena x1 e não pode ficar ausente."); ~> DESABILITADO
- if(AFK[playerid] == 0)
- {
- AFK[playerid] = 1;
- SendClientMessage(playerid,COR_INFO,"{FFFF00}[INFO]{D2D2FF}: Você está ausente, digite {8470FF}/afk {D2D2FF}novamente para ficar online.");
- format(string,sizeof(string),"{FFFF00}[INFO]{D2D2FF}: O jogador %s está {FFA500}ausente{D2D2FF}.",NomeDoJogador(playerid));
- SendClientMessageToAll(COR_INFO,string);
- TogglePlayerControllable(playerid,0);
- }
- else
- {
- AFK[playerid] = 0;
- SendClientMessage(playerid,COR_INFO,"{FFFF00}[INFO]{D2D2FF}: Você está online, digite {8470FF}/afk {D2D2FF}novamente para ficar ausente.");
- format(string,sizeof(string),"{FFFF00}[INFO]{D2D2FF}: O jogador %s está {00FF00}online{D2D2FF}.",NomeDoJogador(playerid));
- SendClientMessageToAll(COR_INFO,string);
- TogglePlayerControllable(playerid,1);
- return 1;
- }
- }
- //===================== [ Suicídio ] ====================
- if(strcmp(cmdtext, "/kill", true) == 0)
- {
- //if(TaNoX1[playerid] != 0) return SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você está na arena x1 e não pode se matar."); ~> DESABILITADO
- SetPlayerHealth(playerid,0);
- SendClientMessage(playerid,COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Você se matou.");
- return 1;
- }
- //================ [ Comandos do player ] =================
- //=================== [ GangsZone ] =======================
- if(strcmp(cmd, "/dominar", true) == 0 || strcmp(cmd, "/do", true) == 0)
- {
- if(!(Dominando[playerid] == 0)) return SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você já está dominando um território");
- if(PlayerInfo[playerid][pORG] == 1)
- {
- if(JogadorNaConstrucao(playerid))
- {
- if(!(GuerranaConstrucao == 0)) return SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Já está tendo guerra na construção");
- format(string, sizeof(string), "{0000FF}[GANGZONE]{D2D2FF}: %s e a {00D900}Grove Street{D2D2FF} estão dominando a Construção.",NomeDoJogador(playerid));
- SendClientMessageToAll(COR_INFO, string);
- SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Aguarde até que sua organização tenha total controle sobre a Construção.");
- GangZoneFlashForAll(GZConstrucao,0xFF0000AA);
- Dominando[playerid] = 1;
- ProvocouConstrucao[playerid] = 1;
- GuerranaConstrucao = 1;
- TempoDeGuerraNaConstrucao = SetTimerEx("GuerraConstrucao", 50000, 0, "i", playerid);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você não está em nenhum território.");
- }
- return 1;
- }
- if(PlayerInfo[playerid][pORG] == 2)
- {
- if(JogadorNaConstrucao(playerid))
- {
- if(!(GuerranaConstrucao == 0)) return SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Já está tendo guerra na construção");
- format(string, sizeof(string), "{0000FF}[GANGZONE]{D2D2FF}: %s e os {D900D3}Ballas{D2D2FF} estão dominando a Construção.",NomeDoJogador(playerid));
- SendClientMessageToAll(COR_INFO, string);
- SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Aguarde até que sua organização tenha total controle sobre a Construção.");
- GangZoneFlashForAll(GZConstrucao,0xFF0000AA);
- Dominando[playerid] = 1;
- ProvocouConstrucao[playerid] = 1;
- GuerranaConstrucao = 1;
- TempoDeGuerraNaConstrucao = SetTimerEx("GuerraConstrucao", 50000, 0, "i", playerid);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você não está em nenhum território.");
- }
- return 1;
- }
- if(PlayerInfo[playerid][pORG] == 3)
- {
- if(JogadorNaConstrucao(playerid))
- {
- if(!(GuerranaConstrucao == 0)) return SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Já está tendo guerra na construção");
- format(string, sizeof(string), "{0000FF}[GANGZONE]{D2D2FF}: %s e o {FFC801}Los Vagos{D2D2FF} estão dominando a Construção.",NomeDoJogador(playerid));
- SendClientMessageToAll(COR_INFO, string);
- SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Aguarde até que sua organização tenha total controle sobre a Construção.");
- GangZoneFlashForAll(GZConstrucao,0xFF0000AA);
- Dominando[playerid] = 1;
- ProvocouConstrucao[playerid] = 1;
- GuerranaConstrucao = 1;
- TempoDeGuerraNaConstrucao = SetTimerEx("GuerraConstrucao", 50000, 0, "i", playerid);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você não está em nenhum território.");
- }
- return 1;
- }
- if(PlayerInfo[playerid][pORG] == 4)
- {
- if(JogadorNaConstrucao(playerid))
- {
- if(!(GuerranaConstrucao == 0)) return SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Já está tendo guerra na construção");
- format(string, sizeof(string), "{0000FF}[GANGZONE]{D2D2FF}: %s e o {2641FE}Los Aztecas{D2D2FF} estão dominando a Construção.",NomeDoJogador(playerid));
- SendClientMessageToAll(COR_INFO, string);
- SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Aguarde até que sua organização tenha total controle sobre a Construção.");
- GangZoneFlashForAll(GZConstrucao,0xFF0000AA);
- Dominando[playerid] = 1;
- ProvocouConstrucao[playerid] = 1;
- GuerranaConstrucao = 1;
- TempoDeGuerraNaConstrucao = SetTimerEx("GuerraConstrucao", 50000, 0, "i", playerid);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você não está em nenhum território.");
- }
- return 1;
- }
- if(PlayerInfo[playerid][pORG] == 5)
- {
- if(JogadorNaConstrucao(playerid))
- {
- if(!(GuerranaConstrucao == 0)) return SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Já está tendo guerra na construção");
- format(string, sizeof(string), "{0000FF}[GANGZONE]{D2D2FF}: %s e a {7491F6}San Fierro PD{D2D2FF} estão controlando a Construção.",NomeDoJogador(playerid));
- SendClientMessageToAll(COR_INFO, string);
- SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Aguarde até que sua organização tenha total controle sobre a Construção.");
- GangZoneFlashForAll(GZConstrucao,0xFF0000AA);
- Dominando[playerid] = 1;
- ProvocouConstrucao[playerid] = 1;
- GuerranaConstrucao = 1;
- TempoDeGuerraNaConstrucao = SetTimerEx("GuerraConstrucao", 50000, 0, "i", playerid);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você não está em nenhum território.");
- }
- return 1;
- }
- if(PlayerInfo[playerid][pORG] == 6)
- {
- if(JogadorNaConstrucao(playerid))
- {
- if(!(GuerranaConstrucao == 0)) return SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Já está tendo guerra na construção");
- format(string, sizeof(string), "{0000FF}[GANGZONE]{D2D2FF}: %s e o {FF5B5B}Comando Vermelho{D2D2FF} estão dominando a Construção.",NomeDoJogador(playerid));
- SendClientMessageToAll(COR_INFO, string);
- SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Aguarde até que sua organização tenha total controle sobre a Construção.");
- GangZoneFlashForAll(GZConstrucao,0xFF0000AA);
- Dominando[playerid] = 1;
- ProvocouConstrucao[playerid] = 1;
- GuerranaConstrucao = 1;
- TempoDeGuerraNaConstrucao = SetTimerEx("GuerraConstrucao", 50000, 0, "i", playerid);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você não está em nenhum território.");
- }
- return 1;
- }
- if(PlayerInfo[playerid][pORG] == 1)
- {
- if(JogadorNoPuteiro(playerid))
- {
- if(!(GuerranoPuteiro == 0)) return SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Já está tendo guerra na Puteiro");
- format(string, sizeof(string), "{0000FF}[GANGZONE]{D2D2FF}: %s e a {00D900}Grove Street{D2D2FF} estão dominando o Puteiro.",NomeDoJogador(playerid));
- SendClientMessageToAll(COR_INFO, string);
- SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Aguarde até que sua organização tenha total controle sobre o Puteiro.");
- GangZoneFlashForAll(GZPuteiro,0xFF0000AA);
- Dominando[playerid] = 1;
- ProvocouPuteiro[playerid] = 1;
- GuerranoPuteiro = 1;
- TempoDeGuerraNoPuteiro = SetTimerEx("GuerraPuteiro", 50000, 0, "i", playerid);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você não está em nenhum território.");
- }
- return 1;
- }
- if(PlayerInfo[playerid][pORG] == 2)
- {
- if(JogadorNoPuteiro(playerid))
- {
- if(!(GuerranoPuteiro == 0)) return SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Já está tendo guerra no Puteiro");
- format(string, sizeof(string), "{0000FF}[GANGZONE]{D2D2FF}: %s e os {D900D3}Ballas{D2D2FF} estão dominando o Puteiro.",NomeDoJogador(playerid));
- SendClientMessageToAll(COR_INFO, string);
- SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Aguarde até que sua organização tenha total controle sobre o Puteiro.");
- GangZoneFlashForAll(GZPuteiro,0xFF0000AA);
- Dominando[playerid] = 1;
- ProvocouPuteiro[playerid] = 1;
- GuerranoPuteiro = 1;
- TempoDeGuerraNoPuteiro = SetTimerEx("GuerraPuteiro", 50000, 0, "i", playerid);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você não está em nenhum território.");
- }
- return 1;
- }
- if(PlayerInfo[playerid][pORG] == 3)
- {
- if(JogadorNoPuteiro(playerid))
- {
- if(!(GuerranoPuteiro == 0)) return SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Já está tendo guerra no Puteiro");
- format(string, sizeof(string), "{0000FF}[GANGZONE]{D2D2FF}: %s e o {FFC801}Los Vagos{D2D2FF} estão dominando o Puteiro.",NomeDoJogador(playerid));
- SendClientMessageToAll(COR_INFO, string);
- SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Aguarde até que sua organização tenha total controle sobre o Puteiro.");
- GangZoneFlashForAll(GZPuteiro,0xFF0000AA);
- Dominando[playerid] = 1;
- ProvocouPuteiro[playerid] = 1;
- GuerranoPuteiro = 1;
- TempoDeGuerraNoPuteiro = SetTimerEx("GuerraPuteiro", 50000, 0, "i", playerid);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você não está em nenhum território.");
- }
- return 1;
- }
- if(PlayerInfo[playerid][pORG] == 4)
- {
- if(JogadorNoPuteiro(playerid))
- {
- if(!(GuerranoPuteiro == 0)) return SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Já está tendo guerra no Puteiro");
- format(string, sizeof(string), "{0000FF}[GANGZONE]{D2D2FF}: %s e o {2641FE}Los Aztecas{D2D2FF} estão dominando o Puteiro.",NomeDoJogador(playerid));
- SendClientMessageToAll(COR_INFO, string);
- SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Aguarde até que sua organização tenha total controle sobre o Puteiro.");
- GangZoneFlashForAll(GZPuteiro,0xFF0000AA);
- Dominando[playerid] = 1;
- ProvocouPuteiro[playerid] = 1;
- GuerranoPuteiro = 1;
- TempoDeGuerraNoPuteiro = SetTimerEx("GuerraPuteiro", 50000, 0, "i", playerid);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você não está em nenhum território.");
- }
- return 1;
- }
- if(PlayerInfo[playerid][pORG] == 5)
- {
- if(JogadorNoPuteiro(playerid))
- {
- if(!(GuerranoPuteiro == 0)) return SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Já está tendo guerra no Puteiro");
- format(string, sizeof(string), "{0000FF}[GANGZONE]{D2D2FF}: %s e a {7491F6}San Fierro PD{D2D2FF} estão controlando o Puteiro.",NomeDoJogador(playerid));
- SendClientMessageToAll(COR_INFO, string);
- SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Aguarde até que sua organização tenha total controle sobre o Puteiro.");
- GangZoneFlashForAll(GZPuteiro,0xFF0000AA);
- Dominando[playerid] = 1;
- ProvocouPuteiro[playerid] = 1;
- GuerranoPuteiro = 1;
- TempoDeGuerraNoPuteiro = SetTimerEx("GuerraPuteiro", 50000, 0, "i", playerid);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você não está em nenhum território.");
- }
- return 1;
- }
- if(PlayerInfo[playerid][pORG] == 6)
- {
- if(JogadorNoPuteiro(playerid))
- {
- if(!(GuerranoPuteiro == 0)) return SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Já está tendo guerra no Puteiro");
- format(string, sizeof(string), "{0000FF}[GANGZONE]{D2D2FF}: %s e o {FF5B5B}Comando Vermelho{D2D2FF} estão dominando o Puteiro.",NomeDoJogador(playerid));
- SendClientMessageToAll(COR_INFO, string);
- SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Aguarde até que sua organização tenha total controle sobre o Puteiro.");
- GangZoneFlashForAll(GZPuteiro,0xFF0000AA);
- Dominando[playerid] = 1;
- ProvocouPuteiro[playerid] = 1;
- GuerranoPuteiro = 1;
- TempoDeGuerraNoPuteiro = SetTimerEx("GuerraPuteiro", 50000, 0, "i", playerid);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você não está em nenhum território.");
- }
- return 1;
- }
- return 1;
- }
- //====================== [ Status ] =======================
- if(strcmp(cmd, "/stats", true) == 0)
- {
- new stringkills[256];
- new stringmortes[256];
- SendClientMessage(playerid,COR_INFO," * ~ {FFFF00} = Status = {D2D2FF} ~ *");
- format(string, sizeof(string),"Jogador: %s", NomeDoJogador(playerid));
- format(stringkills,sizeof(stringkills),"Assassinatos: %d", PlayerInfo[playerid][pKills]);
- SendClientMessage(playerid,COR_INFO, stringkills);
- format(stringmortes,sizeof(stringmortes),"Mortes: %d", PlayerInfo[playerid][pMortes]);
- SendClientMessage(playerid, COR_INFO, stringmortes);
- SendClientMessage(playerid,COR_INFO," * ~ {FFFF00} ========= {D2D2FF} ~ *");
- return 1;
- }
- //================== [ Trocar gang ] ====================
- if(strcmp(cmd, "/trocargang", true) == 0)
- {
- format(string, sizeof(string), "{0000FF}[GANG]{D2D2FF}: O jogador %s requisitou a troca de organização {8470FF}( /trocargang )", NomeDoJogador(playerid));
- SendClientMessageToAll(COR_INFO, string);
- ShowPlayerDialog(playerid, 11,DIALOG_STYLE_LIST,"Escolha sua organização","{00D900}Grove Street Families\n{FFC801}Los Santos Vagos\n{D900D3}Front Yard Ballas\n{2641FE}Varrios Los Aztecas\n{7491F6}San Fierro Police Department\n{FF5B5B}Comando Vermelho","Selecionar","");
- return 1;
- }
- //================== [ Info server ] ====================
- //===================== [ AJUDA ] =======================
- if(strcmp(cmd, "/ajuda", true) == 0 || strcmp(cmd, "/comandos", true) == 0)
- {
- if(PlayerInfo[playerid][pLogado] == 1)
- {
- SendClientMessage(playerid, COR_INFO," * ~ {FFFF00} = Ajuda/Comandos = {D2D2FF} ~ *");
- SendClientMessage(playerid, COR_INFO,"{FFFF00}[INFO]{D2D2FF}: Digite o comando desejado para mais informações.");
- SendClientMessage(playerid, COR_INFO,"{90EE90}[FusioN TDM]{D2D2FF}: ~ Comandos [Info Server] ~");
- SendClientMessage(playerid, COR_INFO,"{90EE90}[FusioN TDM]{D2D2FF}: {8470FF}/creditos /forum /orgs /ts3");
- SendClientMessage(playerid, COR_INFO,"{90EE90}[FusioN TDM]{D2D2FF}: ~ Comandos [Organização] ~");
- SendClientMessage(playerid, COR_INFO,"{90EE90}[FusioN TDM]{D2D2FF}: {8470FF}/radio /trocargang");
- SendClientMessage(playerid, COR_INFO,"{90EE90}[FusioN TDM]{D2D2FF}: ~ Comandos [Servidor] ~");
- SendClientMessage(playerid, COR_INFO,"{90EE90}[FusioN TDM]{D2D2FF}: {8470FF}/x1 /logar /registrar /kill /afk /setint");
- SendClientMessage(playerid, COR_INFO,"{90EE90}[FusioN TDM]{D2D2FF}: {8470FF}/sair /reparar /flip /(a)nti(q)ueda /stats");
- SendClientMessage(playerid, COR_INFO,"{90EE90}[FusioN TDM]{D2D2FF}: ~ Comandos [Administrador] ~");
- SendClientMessage(playerid, COR_INFO,"{90EE90}[FusioN TDM]{D2D2FF}: {8470FF}/lc /dararmasall /setpos /teleportes");
- SendClientMessage(playerid, COR_INFO,"{90EE90}[FusioN TDM]{D2D2FF}: {8470FF}/(v)eiculo /avisar /kitadm");
- SendClientMessage(playerid, COR_INFO,"{90EE90}[FusioN TDM]{D2D2FF}: {8470FF} /infodb /regras");
- SendClientMessage(playerid, COR_INFO," * ~ {FFFF00} ================== {D2D2FF} ~ *");
- return 1;
- }
- }
- //================== [ Organizaçoes ] ===================
- if(strcmp(cmdtext, "/orgs", true) == 0)
- {
- SendClientMessage(playerid, COR_INFO, " * ~ {FFFF00} = Organizações = {D2D2FF} ~ *");
- SendClientMessage(playerid, COR_INFO, " * ~ Gangues: {00D900}Grove Street{D2D2FF}, {D900D3}Ballas{D2D2FF}.");
- SendClientMessage(playerid, COR_INFO, " * ~ Gangues: {FFC801}Los Vagos{D2D2FF}, {2641FE}Los Aztecas{D2D2FF}.");
- SendClientMessage(playerid, COR_INFO, " * ~ Gangues: {FF5B5B}Comando Vermelho{D2D2FF}.");
- SendClientMessage(playerid, COR_INFO, " * ~ Governo: {7491F6}San Fierro Police Department{D2D2FF}.");
- return 1;
- }
- //===================== [ /admins ] =====================
- if(strcmp(cmdtext, "/admins", true) == 0)
- {
- if(AdminsOnline == 0) return SendClientMessage(playerid, COR_INFO, "{33CCFF}[FusioN TDM]{D2D2FF}: Nenhum administrador online.");
- SendClientMessage(playerid, COR_INFO, " * ~ {33CCFF} = Administração online = {D2D2FF} ~ *");
- for(new i = 0; i <= MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i) == 1 && PlayerInfo[i][pAdmin] > 0)
- {
- format(string, sizeof(string), "{FFFF00}Nome{D2D2FF}: {33CCFF}%s", NomeDoJogador(i));
- SendClientMessage(playerid, COR_INFO, string);
- }
- }
- return 1;
- }
- //===================== [ EVENTO ] ======================
- if(strcmp(cmdtext,"/1", true) == 0)
- {
- format(string, sizeof(string), "~w~1");
- GameTextForAll(string, 1000, 5);
- }
- if(strcmp(cmdtext,"/2", true) == 0)
- {
- format(string, sizeof(string), "~w~2");
- GameTextForAll(string, 1000, 5);
- }
- if(strcmp(cmdtext,"/3", true) == 0)
- {
- format(string, sizeof(string), "~w~3");
- GameTextForAll(string, 1000, 5);
- }
- if(strcmp(cmdtext,"/go", true) == 0)
- {
- format(string, sizeof(string), "~r~GO, GO, GO!");
- GameTextForAll(string, 1000, 5);
- }
- //==================== [ Creditos ] =====================
- if(strcmp(cmdtext, "/creditos", true) == 0)
- {
- if(PlayerInfo[playerid][pLogado] == 1)
- {
- SendClientMessage(playerid, COR_INFO," * ~ {FFFF00} = Créditos = {D2D2FF} ~ *");
- SendClientMessage(playerid, COR_INFO," * ~ Scripters: {FFFF00}Black_Shift {D2D2FF}| {FFFF00}Rodney Francalim {D2D2FF}| {FFFF00}KeneD_RuleZ");
- SendClientMessage(playerid, COR_INFO," * ~ Mappers: {FFFF00}Aleeemao");
- SendClientMessage(playerid, COR_INFO," * ~ GameMode exclusivo: {33CCFF}FusioN Games");
- SendClientMessage(playerid, COR_INFO," * ~ {FFFF00} =========== {D2D2FF} ~ *");
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COR_INFO,"{FF0000}[ERRO]{D2D2FF}: Você não escolheu qual a sua equipe");
- return 1;
- }
- }
- //===================== [ FORUM ] =======================
- if(strcmp(cmdtext, "/forum", true) == 0)
- {
- if(PlayerInfo[playerid][pLogado] == 1)
- {
- SendClientMessage(playerid, COR_INFO," * ~ {FFFF00} = FÓRUM = {D2D2FF} ~ *");
- SendClientMessage(playerid, COR_VERMELHA,"{90EE90}[FusioN TDM]: {D2D2FF}www.{33CCFF}fusionsamp{D2D2FF}.com");
- SendClientMessage(playerid, COR_INFO," * ~ {FFFF00} ========= {D2D2FF} ~ *");
- return 1;
- }
- }
- //====================== [ TS3 ] ========================
- if(strcmp(cmdtext, "/ts3", true) == 0)
- {
- if(PlayerInfo[playerid][pLogado] == 1)
- {
- SendClientMessage(playerid, COR_INFO," * ~ {FFFF00} = TeamSpeak 3 = {D2D2FF} ~ *");
- SendClientMessage(playerid, COR_VERMELHA,"{FFFF00}[INFO]: {D2D2FF}IP: {4169E1}187.45.233.13 {D2D2FF}PORTA: {4169E1}9994");
- SendClientMessage(playerid, COR_INFO," * ~ {FFFF00} =============== {D2D2FF} ~ *");
- return 1;
- }
- }
- //================= [ Comandos de admin ] ===============
- //================= [ GMX ] =============
- if(strcmp(cmd, "/gmx", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- format(string, sizeof(string), "{0000FF}[INFO]{D2D2FF}: %s deu GMX!.",NomeDoJogador(playerid));
- SendClientMessageToAll(COR_INFO,string);
- GameModeExit();
- }
- return 1;
- }
- //===================== [ banimento ] ===================
- if(strcmp(cmd, "/ban", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: USE: {8470FF}/ban {D2D2FF}[ID] [MOTIVO]");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if (PlayerInfo[playerid][pAdmin] >= 1)
- {
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if((strcmp(NomeDoJogador(playerid), "Rodney_Francalim", true ) == 0 || strcmp(NomeDoJogador(playerid), "Black_FusioN", true ) == 0))
- {
- SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você não pode banir um FusioN Admin.");
- format(string, sizeof(string),"{FFFF00}[INFO]{D2D2FF}: O administrador %s[%d] tentou te banir", NomeDoJogador(playerid), playerid);
- SendClientMessage(giveplayerid, COR_INFO, string);
- return 1;
- }
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[64];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: USE: {8470FF}/ban {D2D2FF}[ID] [MOTIVO]");
- return 1;
- }
- getdate(ano, mes, dia);
- format(string, sizeof(string), "{3CCFF}[ADMIN{D2D2FF}/{FF0000}LOG]{D2D2FF}: %s foi banido por %s, Motivo: %s (%d-%d-%d)", NomeDoJogador(giveplayerid), NomeDoJogador(playerid), (result),dia,mes,ano);
- BanLog(string);
- format(string, sizeof(string), "AdmCmd: %s foi banido por %s, Motivo: %s", NomeDoJogador(giveplayerid), NomeDoJogador(playerid), (result));
- SendClientMessageToAll(COR_INFO, string);
- SendClientMessage(giveplayerid, COR_INFO, "|________________ Instruções para revisão de Ban ________________|");
- SendClientMessage(giveplayerid, COR_INFO, "Tire uma SS da tela apertando F8 imediatamente após ser banido");
- SendClientMessage(giveplayerid, COR_INFO, "E acesse o nosso forum: www.brasilhardcity.forumeiros.com");
- SendClientMessage(giveplayerid, COR_INFO, "Atenção: Você só será desbanido caso for inocente");
- Ban(giveplayerid);
- return 1;
- }
- }//not connected
- }
- else
- {
- SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Esse não está online.");
- }
- }
- return 1;
- }
- //=================== [ Setar posição ] =================
- if(strcmp(cmd,"/setpos",true)==0)
- {
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- new plid,Float:setpos[3];
- tmp = strtok(cmdtext,idx);
- if(!strlen(tmp)) return SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}:{8470FF} /setpos [id] [X] [Y] [Z]");
- plid = strval(tmp);
- for(new x=0;x<3;x++)
- {
- tmp = strtok(cmdtext,idx);
- if(!strlen(tmp)) return SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}:{8470FF} /setpos [id] [X] [Y] [Z]");
- setpos[x] = floatstr(tmp);
- }
- SetPlayerPos(plid,setpos[0],setpos[1],setpos[2]);
- SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Posição setada.");
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você não é administrador.");
- return 1;
- }
- }
- //================[KITADMDONO]===============
- if(strcmp(cmdtext,"/kitdono", true) == 0)
- {
- if(strcmp(NomeDoJogador(playerid),"KeneD_FusioN",true)==0 || strcmp(NomeDoJogador(playerid),"Black_Shift",true)==0)
- {
- SendClientMessage(playerid, COR_BRANCA, "|| •Você pegou seu KIT DONO• ||");
- GivePlayerWeapon(playerid, 4, 1);
- GivePlayerWeapon(playerid, 24, 999);
- GivePlayerWeapon(playerid, 25, 999);
- GivePlayerWeapon(playerid, 31, 999);
- GivePlayerWeapon(playerid, 29, 999);
- GivePlayerWeapon(playerid, 34, 999);
- GivePlayerWeapon(playerid, 35, 10);
- SetPlayerArmour(playerid, 100);
- SetPlayerHealth(playerid, 100);
- }
- return 1;
- }
- //=============== [KIT ADM] ==========
- if(strcmp(cmd, "/kitadm", true) == 0)
- {
- if (PlayerInfo[playerid][pAdmin] >= 1)
- {
- GivePlayerWeapon(playerid, 46, 1);
- GivePlayerWeapon(playerid, 24, 750);
- GivePlayerWeapon(playerid, 31, 1500);
- GivePlayerWeapon(playerid, 29, 1000);
- GivePlayerWeapon(playerid, 25, 250);
- GivePlayerWeapon(playerid, 4, 1);
- GivePlayerWeapon(playerid, 1, 1);
- GivePlayerWeapon(playerid, 34, 250);
- SetPlayerArmour(playerid, 100);
- SetPlayerHealth(playerid, 100);
- SendClientMessage(playerid,COR_INFO,"{33CCFF}[ADMIN]{D2D2FF}: Voce pegou o seu KitAdmin.");
- }
- return 1;
- }
- //================ [ Limpar Chat Simples ] ==============
- if(strcmp(cmd, "/lc", true) == 0)
- {
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- LimparChat(playerid, 125);
- format(string, sizeof(string), "{33CCFF}[ADMIN]{D2D2FF}: O administrador %s, limpou o chat.", NomeDoJogador(playerid));
- SendClientMessageToAll(COR_INFO,string);
- }
- else
- {
- SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você não é administrador.");
- return 1;
- }
- }
- //=================== [ Criar veículo ] =================
- if(strcmp(cmd, "/veiculo", true) == 0 || strcmp(cmd, "/v", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(!(PlayerInfo[playerid][pAdmin] >= 1)) return SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você não é administrador.");
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você já está em um veículo.");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}:{8470FF} /veiculo [ID do veículo] [COR 1] [COR 2]");
- return 1;
- }
- new carrocriado;
- carrocriado = strval(tmp);
- if(carrocriado < 400 || carrocriado > 611)
- {
- SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: O ID do veículo não pode ser menor que {00FFFF}400 {D2D2FF}ou maior que {00FFFF}611{D2D2FF}.");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}:{8470FF} /veiculo [ID do veículo] [COR 1] [COR 2]");
- return 1;
- }
- new cor1;
- cor1 = strval(tmp);
- if(cor1 < 0 || cor1 > 126) { SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: O ID da cor {8470FF}1 {D2D2FF}não pode ser menor que {8470FF}0 {D2D2FF}ou maior que {8470FF}126{D2D2FF}."); return 1; }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}:{8470FF} /veiculo [ID do veículo] [COR 1] [COR 2]]");
- return 1;
- }
- new cor2;
- cor2 = strval(tmp);
- if(cor2 < 0 || cor2 > 126) { SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: O ID da cor {8470FF}1 {D2D2FF}não pode ser menor que {8470FF}0 {D2D2FF}ou maior que {8470FF}126{D2D2FF}."); return 1; }
- new Float:X,Float:Y,Float:Z;
- SetTimerEx("CarroGod", 1, 1, "i", playerid);
- GetPlayerPos(playerid, X,Y,Z);
- veiculonovo = CreateVehicle(carrocriado, X,Y,Z, 0.0, cor1, cor2, 60000);
- PutPlayerInVehicle(playerid, veiculonovo, 0);
- SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Veículo criado.");
- }
- return 1;
- }
- //================ [ Dar armas pra todos ] ==============
- if(strcmp(cmdtext, "/dararmasall", true) == 0)
- {
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- GivePlayerWeapon(i, 24, 999);
- GivePlayerWeapon(i, 25, 999);
- GivePlayerWeapon(i, 30, 999);
- GivePlayerWeapon(i, 34, 999);
- GivePlayerWeapon(i, 10, 999);
- GivePlayerWeapon(i, 4, 999);
- SetPlayerArmour(i, 100);
- SetPlayerHealth(i, 100);
- }
- format(string,sizeof(string),"{33CCFF}[ADMIN]{D2D2FF}: %s deu arma para todos os jogadores.",NomeDoJogador(playerid));
- SendClientMessageToAll(COR_VERMELHA,string);
- }
- else
- {
- SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Você não é administrador");
- return 1;
- }
- return 1;
- }
- //================ [ Comandos das orgs ] ================
- //================= [ Chat das ORG's ] ==================
- if(strcmp(cmd, "/radio", true) == 0 || strcmp(cmd, "/r", true) == 0)
- {
- if(PlayerInfo[playerid][pLogado] == 1)
- {
- if(IsPlayerConnected(playerid))
- {
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[64];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: USE: {8470FF}(/r)adio {D2D2FF}[ORG CHAT]");
- return 1;
- }
- if(PlayerInfo[playerid][pORG] > 0)
- {
- format(string,sizeof(string),"{FF6347}[RADIO]{D2D2FF}: %s disse: %s",NomeDoJogador(playerid),result);
- new org = PlayerInfo[playerid][pORG];
- for(new i=0; i < MAX_PLAYERS; i++)
- {
- if(org == 1)
- {
- if(PlayerInfo[i][pORG] == 1)
- {
- SendClientMessage(i,COR_INFO,string);
- }
- }
- if(org == 2)
- {
- if(PlayerInfo[i][pORG] == 2)
- {
- SendClientMessage(i,COR_INFO,string);
- }
- }
- if(org == 3)
- {
- if(PlayerInfo[i][pORG] == 3)
- {
- SendClientMessage(i,COR_INFO,string);
- }
- }
- if(org == 4)
- {
- if(PlayerInfo[i][pORG] == 4)
- {
- SendClientMessage(i,COR_INFO,string);
- }
- }
- if(org == 5)
- {
- if(PlayerInfo[i][pORG] == 5)
- {
- SendClientMessage(i,COR_INFO,string);
- }
- }
- if(PlayerInfo[i][pORG] == 6)
- {
- SendClientMessage(i,COR_INFO,string);
- }
- }
- }
- }
- }
- }
- return 1;
- }
- //=======================================================
- //return 1;
- //}
- //================== [ NomeServer ] =====================
- public NomeServer()
- {
- contagem++;
- if(contagem > 4)contagem = 0;
- new string[128];
- format(string, sizeof(string), "hostname %s", ServidorNome[contagem]);
- SendRconCommand(string);
- return 1;
- }
- //============[ OnGameModeExit ] ========================
- public OnGameModeExit()
- {
- TextDrawHideForAll(Textdrawdebaixodoradar);
- TextDrawDestroy(Textdrawdebaixodoradar);
- return 1;
- }
- //=============== [ OnPlayerExitVehicle ] ===============
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- veiculonovo = GetPlayerVehicleID(playerid);
- DestroyVehicle(veiculonovo);
- return 1;
- }
- //============== [ OnPlayerStateChange ] ================
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- if(ModoAntiQueda[playerid] == 1)
- {
- if(oldstate == PLAYER_STATE_DRIVER)
- {
- if(newstate == PLAYER_STATE_ONFOOT)
- {
- if(JogadorNoVeiculo[playerid] == 1)
- {
- PutPlayerInVehicle(playerid, QualCarro[playerid], Motorista);
- }
- }
- }
- if(oldstate == PLAYER_STATE_PASSENGER)
- {
- if(newstate == PLAYER_STATE_ONFOOT)
- {
- if(JogadorNoVeiculo[playerid] == 1)
- {
- PutPlayerInVehicle(playerid, QualCarro[playerid], Passageiro);
- }
- }
- }
- if(oldstate == PLAYER_STATE_ONFOOT)
- {
- if(newstate == PLAYER_STATE_DRIVER || PLAYER_STATE_PASSENGER)
- {
- JogadorNoVeiculo[playerid] = 1;
- QualCarro[playerid] = GetPlayerVehicleID(playerid);
- }
- }
- }
- return 1;
- }
- //=========== [ SetupPlayerForClassSelection ] ==========
- public SetupPlayerForClassSelection(playerid)
- {
- SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid,-1484.5535,692.9634,7.1782);
- SetPlayerFacingAngle(playerid, 42.2945);
- SetPlayerCameraPos(playerid,-1489.1276,698.4785,7.1805);
- SetPlayerCameraLookAt(playerid,-1484.5535,692.9634,7.1782);
- PlayerPlaySound(playerid, 1185, 0.0, 0.0, 0.0);
- return 1;
- }
- //=================== [ GangZones ] =====================
- public GuerraConstrucao(playerid)
- {
- new string[128];
- if(PlayerInfo[playerid][pORG] == 1)
- {
- if(ProvocouConstrucao[playerid] == 1)
- {
- if(JogadorNaConstrucao(playerid))
- {
- format(string, sizeof(string), "{0000FF}[GANGZONE]{D2D2FF}: %s e a Grove Street dominaram a Construção.",NomeDoJogador(playerid));
- SendClientMessageToAll(COR_INFO, string);
- SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Você dominou a Construção.");
- GangZoneStopFlashForAll(GZConstrucao);
- GangZoneShowForAll(GZConstrucao,COR_GROVE);
- Dominando[playerid] = 0;
- ProvocouConstrucao[playerid] = 0;
- GuerranaConstrucao = 0;
- donodaconstrucao = 1;
- KillTimer(TempoDeGuerraNaConstrucao);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COR_INFO, "{0000FF}[GANGZONE]{D2D2FF}: Você não está na Construção.");
- Dominando[playerid] = 0;
- GangZoneStopFlashForAll(GZConstrucao);
- GangZoneShowForAll(GZConstrucao, COR_GZ);
- ProvocouConstrucao[playerid] = 0;
- GuerranaConstrucao = 0;
- donodaconstrucao = 0;
- KillTimer(TempoDeGuerraNaConstrucao);
- return 1;
- }
- }
- return 1;
- }
- if(PlayerInfo[playerid][pORG] == 2)
- {
- if(ProvocouConstrucao[playerid] == 1)
- {
- if(JogadorNaConstrucao(playerid))
- {
- format(string, sizeof(string), "{0000FF}[GANGZONE]{D2D2FF}: %s e os Ballas dominaram a Construção.",NomeDoJogador(playerid));
- SendClientMessageToAll(COR_INFO, string);
- SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Você dominou a Construção.");
- GangZoneStopFlashForAll(GZConstrucao);
- GangZoneShowForAll(GZConstrucao,COR_BALLAS);
- Dominando[playerid] = 0;
- ProvocouConstrucao[playerid] = 0;
- GuerranaConstrucao = 0;
- donodaconstrucao = 2;
- KillTimer(TempoDeGuerraNaConstrucao);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COR_INFO, "{0000FF}[GANGZONE]{D2D2FF}: Você não está na Construção.");
- Dominando[playerid] = 0;
- GangZoneStopFlashForAll(GZConstrucao);
- GangZoneShowForAll(GZConstrucao, COR_GZ);
- ProvocouConstrucao[playerid] = 0;
- GuerranaConstrucao = 0;
- donodaconstrucao = 0;
- KillTimer(TempoDeGuerraNaConstrucao);
- return 1;
- }
- }
- return 1;
- }
- if(PlayerInfo[playerid][pORG] == 3)
- {
- if(ProvocouConstrucao[playerid] == 1)
- {
- if(JogadorNaConstrucao(playerid))
- {
- format(string, sizeof(string), "{0000FF}[GANGZONE]{D2D2FF}: %s e o Los Vagos dominaram a Construção.",NomeDoJogador(playerid));
- SendClientMessageToAll(COR_INFO, string);
- SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Você dominou a Construção.");
- GangZoneStopFlashForAll(GZConstrucao);
- GangZoneShowForAll(GZConstrucao,COR_VAGOS);
- Dominando[playerid] = 0;
- ProvocouConstrucao[playerid] = 0;
- GuerranaConstrucao = 0;
- donodaconstrucao = 3;
- KillTimer(TempoDeGuerraNaConstrucao);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COR_INFO, "{0000FF}[GANGZONE]{D2D2FF}: Você não está na Construção.");
- Dominando[playerid] = 0;
- GangZoneStopFlashForAll(GZConstrucao);
- GangZoneShowForAll(GZConstrucao, COR_GZ);
- ProvocouConstrucao[playerid] = 0;
- GuerranaConstrucao = 0;
- donodaconstrucao = 0;
- KillTimer(TempoDeGuerraNaConstrucao);
- return 1;
- }
- }
- return 1;
- }
- if(PlayerInfo[playerid][pORG] == 4)
- {
- if(ProvocouConstrucao[playerid] == 1)
- {
- if(JogadorNaConstrucao(playerid))
- {
- format(string, sizeof(string), "{0000FF}[GANGZONE]{D2D2FF}: %s e o Los Aztecas dominaram a Construção.",NomeDoJogador(playerid));
- SendClientMessageToAll(COR_INFO, string);
- SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Você dominou a Construção.");
- GangZoneStopFlashForAll(GZConstrucao);
- GangZoneShowForAll(GZConstrucao,COR_AZTECAS);
- Dominando[playerid] = 0;
- ProvocouConstrucao[playerid] = 0;
- GuerranaConstrucao = 0;
- donodaconstrucao = 4;
- KillTimer(TempoDeGuerraNaConstrucao);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COR_INFO, "{0000FF}[GANGZONE]{D2D2FF}: Você não está na Construção.");
- Dominando[playerid] = 0;
- GangZoneStopFlashForAll(GZConstrucao);
- GangZoneShowForAll(GZConstrucao, COR_GZ);
- ProvocouConstrucao[playerid] = 0;
- GuerranaConstrucao = 0;
- donodaconstrucao = 0;
- KillTimer(TempoDeGuerraNaConstrucao);
- return 1;
- }
- }
- return 1;
- }
- if(PlayerInfo[playerid][pORG] == 5)
- {
- if(ProvocouConstrucao[playerid] == 1)
- {
- if(JogadorNaConstrucao(playerid))
- {
- format(string, sizeof(string), "{0000FF}[GANGZONE]{D2D2FF}: %s e a San Fierro PD controlaram a Construção.",NomeDoJogador(playerid));
- SendClientMessageToAll(COR_INFO, string);
- SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Você controlou a Construção.");
- GangZoneStopFlashForAll(GZConstrucao);
- GangZoneShowForAll(GZConstrucao,COR_SFPD);
- Dominando[playerid] = 0;
- ProvocouConstrucao[playerid] = 0;
- GuerranaConstrucao = 0;
- donodaconstrucao = 5;
- KillTimer(TempoDeGuerraNaConstrucao);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COR_INFO, "{0000FF}[GANGZONE]{D2D2FF}: Você não está na Construção.");
- Dominando[playerid] = 0;
- GangZoneStopFlashForAll(GZConstrucao);
- GangZoneShowForAll(GZConstrucao, COR_GZ);
- ProvocouConstrucao[playerid] = 0;
- GuerranaConstrucao = 0;
- donodaconstrucao = 0;
- KillTimer(TempoDeGuerraNaConstrucao);
- return 1;
- }
- }
- return 1;
- }
- if(PlayerInfo[playerid][pORG] == 6)
- {
- if(ProvocouConstrucao[playerid] == 1)
- {
- if(JogadorNaConstrucao(playerid))
- {
- format(string, sizeof(string), "{0000FF}[GANGZONE]{D2D2FF}: %s e o Comando Vermelho dominaram a Construção.",NomeDoJogador(playerid));
- SendClientMessageToAll(COR_INFO, string);
- SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Você dominou a Construção.");
- GangZoneStopFlashForAll(GZConstrucao);
- GangZoneShowForAll(GZConstrucao,COR_CV);
- Dominando[playerid] = 0;
- ProvocouConstrucao[playerid] = 0;
- GuerranaConstrucao = 0;
- donodaconstrucao = 6;
- KillTimer(TempoDeGuerraNaConstrucao);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COR_INFO, "{0000FF}[GANGZONE]{D2D2FF}: Você não está na Construção.");
- Dominando[playerid] = 0;
- GangZoneStopFlashForAll(GZConstrucao);
- GangZoneShowForAll(GZConstrucao, COR_GZ);
- ProvocouConstrucao[playerid] = 0;
- GuerranaConstrucao = 0;
- donodaconstrucao = 0;
- KillTimer(TempoDeGuerraNaConstrucao);
- return 1;
- }
- }
- return 1;
- }
- return 1;
- }
- public GuerraPuteiro(playerid)
- {
- new string[128];
- if(PlayerInfo[playerid][pORG] == 1)
- {
- if(ProvocouPuteiro[playerid] == 1)
- {
- if(JogadorNoPuteiro(playerid))
- {
- format(string, sizeof(string), "{0000FF}[GANGZONE]{D2D2FF}: %s e a Grove Street dominaram o Puteiro.",NomeDoJogador(playerid));
- SendClientMessageToAll(COR_INFO, string);
- SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Você dominou o Puteiro.");
- GangZoneStopFlashForAll(GZPuteiro);
- GangZoneShowForAll(GZPuteiro,COR_GROVE);
- Dominando[playerid] = 0;
- ProvocouPuteiro[playerid] = 0;
- GuerranoPuteiro= 0;
- donodoputeiro= 1;
- KillTimer(TempoDeGuerraNoPuteiro);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COR_INFO, "{0000FF}[GANGZONE]{D2D2FF}: Você não está no Puteiro.");
- Dominando[playerid] = 0;
- GangZoneStopFlashForAll(GZPuteiro);
- GangZoneShowForAll(GZPuteiro, COR_GZ);
- ProvocouPuteiro[playerid] = 0;
- GuerranoPuteiro= 0;
- donodoputeiro = 0;
- KillTimer(TempoDeGuerraNoPuteiro);
- return 1;
- }
- }
- return 1;
- }
- if(PlayerInfo[playerid][pORG] == 2)
- {
- if(ProvocouPuteiro[playerid] == 1)
- {
- if(JogadorNoPuteiro(playerid))
- {
- format(string, sizeof(string), "{0000FF}[GANGZONE]{D2D2FF}: %s e os Ballas dominaram o Puteiro.",NomeDoJogador(playerid));
- SendClientMessageToAll(COR_INFO, string);
- SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Você dominou o Puteiro.");
- GangZoneStopFlashForAll(GZPuteiro);
- GangZoneShowForAll(GZPuteiro,COR_BALLAS);
- Dominando[playerid] = 0;
- ProvocouPuteiro[playerid] = 0;
- GuerranoPuteiro= 0;
- donodoputeiro = 2;
- KillTimer(TempoDeGuerraNoPuteiro);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COR_INFO, "{0000FF}[GANGZONE]{D2D2FF}: Você não está no Puteiro.");
- Dominando[playerid] = 0;
- GangZoneStopFlashForAll(GZPuteiro);
- GangZoneShowForAll(GZPuteiro, COR_GZ);
- ProvocouPuteiro[playerid] = 0;
- GuerranoPuteiro= 0;
- donodoputeiro = 0;
- KillTimer(TempoDeGuerraNoPuteiro);
- return 1;
- }
- }
- return 1;
- }
- if(PlayerInfo[playerid][pORG] == 3)
- {
- if(ProvocouPuteiro[playerid] == 1)
- {
- if(JogadorNoPuteiro(playerid))
- {
- format(string, sizeof(string), "{0000FF}[GANGZONE]{D2D2FF}: %s e o Los Vagos dominaram o Puteiro.",NomeDoJogador(playerid));
- SendClientMessageToAll(COR_INFO, string);
- SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Você dominou o Puteiro.");
- GangZoneStopFlashForAll(GZPuteiro);
- GangZoneShowForAll(GZPuteiro,COR_VAGOS);
- Dominando[playerid] = 0;
- ProvocouPuteiro[playerid] = 0;
- GuerranoPuteiro= 0;
- donodoputeiro = 3;
- KillTimer(TempoDeGuerraNoPuteiro);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COR_INFO, "{0000FF}[GANGZONE]{D2D2FF}: Você não está no Puteiro.");
- Dominando[playerid] = 0;
- GangZoneStopFlashForAll(GZPuteiro);
- GangZoneShowForAll(GZPuteiro, COR_GZ);
- ProvocouPuteiro[playerid] = 0;
- GuerranoPuteiro= 0;
- donodoputeiro = 0;
- KillTimer(TempoDeGuerraNoPuteiro);
- return 1;
- }
- }
- return 1;
- }
- if(PlayerInfo[playerid][pORG] == 4)
- {
- if(ProvocouPuteiro[playerid] == 1)
- {
- if(JogadorNoPuteiro(playerid))
- {
- format(string, sizeof(string), "{0000FF}[GANGZONE]{D2D2FF}: %s e o Los Aztecas dominaram o Puteiro.",NomeDoJogador(playerid));
- SendClientMessageToAll(COR_INFO, string);
- SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Você dominou o Puteiro.");
- GangZoneStopFlashForAll(GZPuteiro);
- GangZoneShowForAll(GZPuteiro,COR_AZTECAS);
- Dominando[playerid] = 0;
- ProvocouPuteiro[playerid] = 0;
- GuerranoPuteiro= 0;
- donodoputeiro = 4;
- KillTimer(TempoDeGuerraNoPuteiro);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COR_INFO, "{0000FF}[GANGZONE]{D2D2FF}: Você não está no Puteiro.");
- Dominando[playerid] = 0;
- GangZoneStopFlashForAll(GZPuteiro);
- GangZoneShowForAll(GZPuteiro, COR_GZ);
- ProvocouPuteiro[playerid] = 0;
- GuerranoPuteiro= 0;
- donodoputeiro = 0;
- KillTimer(TempoDeGuerraNoPuteiro);
- return 1;
- }
- }
- return 1;
- }
- if(PlayerInfo[playerid][pORG] == 5)
- {
- if(ProvocouPuteiro[playerid] == 1)
- {
- if(JogadorNoPuteiro(playerid))
- {
- format(string, sizeof(string), "{0000FF}[GANGZONE]{D2D2FF}: %s e a San Fierro PD controlaram o Puteiro.",NomeDoJogador(playerid));
- SendClientMessageToAll(COR_INFO, string);
- SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Você controlou o Puteiro.");
- GangZoneStopFlashForAll(GZPuteiro);
- GangZoneShowForAll(GZPuteiro,COR_SFPD);
- Dominando[playerid] = 0;
- ProvocouPuteiro[playerid] = 0;
- GuerranoPuteiro= 0;
- donodoputeiro = 5;
- KillTimer(TempoDeGuerraNoPuteiro);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COR_INFO, "{0000FF}[GANGZONE]{D2D2FF}: Você não está no Puteiro.");
- Dominando[playerid] = 0;
- GangZoneStopFlashForAll(GZPuteiro);
- GangZoneShowForAll(GZPuteiro, COR_GZ);
- ProvocouPuteiro[playerid] = 0;
- GuerranoPuteiro= 0;
- donodoputeiro = 0;
- KillTimer(TempoDeGuerraNoPuteiro);
- return 1;
- }
- }
- return 1;
- }
- if(PlayerInfo[playerid][pORG] == 6)
- {
- if(ProvocouPuteiro[playerid] == 1)
- {
- if(JogadorNoPuteiro(playerid))
- {
- format(string, sizeof(string), "{0000FF}[GANGZONE]{D2D2FF}: %s e o Comando Vermelho dominaram o Puteiro.",NomeDoJogador(playerid));
- SendClientMessageToAll(COR_INFO, string);
- SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Você dominou o Puteiro.");
- GangZoneStopFlashForAll(GZPuteiro);
- GangZoneShowForAll(GZPuteiro,COR_CV);
- Dominando[playerid] = 0;
- ProvocouPuteiro[playerid] = 0;
- GuerranoPuteiro= 0;
- donodoputeiro = 6;
- KillTimer(TempoDeGuerraNoPuteiro);
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COR_INFO, "{0000FF}[GANGZONE]{D2D2FF}: Você não está no Puteiro.");
- Dominando[playerid] = 0;
- GangZoneStopFlashForAll(GZPuteiro);
- GangZoneShowForAll(GZPuteiro, COR_GZ);
- ProvocouPuteiro[playerid] = 0;
- GuerranoPuteiro= 0;
- donodoputeiro = 0;
- KillTimer(TempoDeGuerraNoPuteiro);
- return 1;
- }
- }
- return 1;
- }
- return 1;
- }
- //=========== [ OnPlayerKeyStateChange ] ================
- public OnPlayerKeyStateChange(playerid,newkeys,oldkeys)
- {
- if(newkeys == 16 && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
- {
- OnPlayerCommandText(playerid,"/entrar");
- OnPlayerCommandText(playerid,"/sair");
- }
- }
- //=============== [ SpawnarJogador ] ====================
- public SpawnarJogador(playerid)
- {
- if(PlayerInfo[playerid][pORG] == 0)
- {
- TogglePlayerControllable(playerid, 0);
- Registrado[playerid] = 1;
- LimparChat(playerid, 125);
- SetPlayerVirtualWorld(playerid,playerid+1);
- SendClientMessage(playerid, COR_INFO, "{90EE90}[FusioN TDM]{D2D2FF}: Seja bem-vindo ao {90EE90}FusioN TDM{D2D2FF}.");
- ShowPlayerDialog(playerid, 11,DIALOG_STYLE_LIST,"Escolha sua organização","{00D900}Grove Street Families\n{FFC801}Los Santos Vagos\n{D900D3}Front Yard Ballas\n{2641FE}Varrios Los Aztecas\n{7491F6}San Fierro Police Department\n{FF5B5B}Comando Vermelho","Selecionar","");
- PlayerPlaySound(playerid, 1131, 0.0, 0.0, 0.0);
- }
- else if(PlayerInfo[playerid][pORG] == 1)
- {
- new skin = PlayerInfo[playerid][pSkin];
- SetPlayerSkin(playerid, skin);
- ResetPlayerWeapons(playerid);
- SetPlayerPos(playerid, -2719.8328,-318.2808,7.8438);
- }
- else if(PlayerInfo[playerid][pORG] == 2)
- {
- new skin = PlayerInfo[playerid][pSkin];
- SetPlayerSkin(playerid, skin);
- ResetPlayerWeapons(playerid);
- SetPlayerPos(playerid, -2765.0029,375.4214,6.3431);
- }
- else if(PlayerInfo[playerid][pORG] == 3)
- {
- new skin = PlayerInfo[playerid][pSkin];
- SetPlayerSkin(playerid, skin);
- ResetPlayerWeapons(playerid);
- SetPlayerPos(playerid, -2446.1750,523.2524,30.1791);
- }
- else if(PlayerInfo[playerid][pORG] == 4)
- {
- new skin = PlayerInfo[playerid][pSkin];
- SetPlayerSkin(playerid, skin);
- ResetPlayerWeapons(playerid);
- SetPlayerPos(playerid, -1783.8490,572.2196,35.1641);
- }
- else if(PlayerInfo[playerid][pORG] == 5)
- {
- new skin = PlayerInfo[playerid][pSkin];
- SetPlayerSkin(playerid, skin);
- ResetPlayerWeapons(playerid);
- SetPlayerPos(playerid, -1606.2655,673.0223,-5.2422);
- }
- else if(PlayerInfo[playerid][pORG] == 6)
- {
- new skin = PlayerInfo[playerid][pSkin];
- SetPlayerSkin(playerid, skin);
- ResetPlayerWeapons(playerid);
- SetPlayerPos(playerid, -2343.6538,1006.3931,55.9150);
- }
- return 1;
- }
- //=========== [ Contagem regressiva ~ x1 ] ============== ~> DESABILITADO
- /*forward IniciarContagem(playerid);
- public IniciarContagem(playerid)
- {
- contagem--;
- switch(contagem)
- {
- case 0:
- {
- GameTextForAll("~g~GOGOGO", 1000, 3);
- KillTimer(contagemx1);
- PlayerPlaySound(playerid, 1057, 0,0,0);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(TaNoX1[i] == 1)
- {
- TogglePlayerControllable(i,1);
- }
- }
- }
- case 1:{ GameTextForAll("~b~1", 1000, 3);PlayerPlaySound(playerid, 1056, 0,0,0); }
- case 2:{ GameTextForAll("~y~2", 1000, 3);PlayerPlaySound(playerid, 1056, 0,0,0); }
- case 3:{ GameTextForAll("~r~3", 1000, 3);PlayerPlaySound(playerid, 1056, 0,0,0); }
- }
- return 1;
- } */
- //============ [ Mensagens para admin ] =================
- stock SendAdminMessage(playerid, color, const message[])
- {
- new ret=0;
- for (new i=0; i<MAX_PLAYERS; i++)
- {
- if (IsPlayerConnected(i) && i!=playerid && PlayerInfo[i][pAdmin] > 0)
- {
- SendClientMessage(i, color, message);
- ret++;
- }
- }
- return ret;
- }
- //=============== [ Carro blindado ] ====================
- public CarroGod(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- SetVehicleHealth(veiculonovo,1000);
- RepairVehicle(veiculonovo);
- return 1;
- }
- return 1;
- }
- //============ [ Mensagens randômicas - public ] ========
- public MensagensRandomicas()
- {
- new string[265];
- new random1 = random(sizeof(Mensagens));
- new random2 = random(sizeof(Cores));
- format(string, sizeof(string), "%s", Mensagens[random1]);
- SendClientMessageToAll(Cores[random2],string);
- return 1;
- }
- //================== [ Limpar chat ] ====================
- forward LimparChat(playerid, lines);
- public LimparChat(playerid, lines)
- {
- if (IsPlayerConnected(playerid))
- {
- for(new i=0; i<lines; i++)
- {
- SendClientMessage(playerid, COR_INFO, " ");
- }
- }
- return 1;
- }
- //=============== [ Sistema de registro/login ] =================
- public RegistrarJogador(playerid, senha[])
- {
- if(IsPlayerConnected(playerid))
- {
- new string3[64];
- format(string3,sizeof(string3),"Contas/%s.ini",NomeDoJogador(playerid));
- dini_Create(string3);
- dini_Set(string3,"Senha",senha);
- dini_IntSet(string3,"Level", GetPlayerScore(playerid));
- dini_IntSet(string3,"Dinheiro", GetPlayerMoney(playerid));
- dini_IntSet(string3,"Admin", PlayerInfo[playerid][pAdmin]);
- dini_IntSet(string3,"ORG", PlayerInfo[playerid][pORG]);
- dini_IntSet(string3, "Skin",PlayerInfo[playerid][pSkin]);
- dini_IntSet(string3,"Morreu", PlayerInfo[playerid][pMortes]);
- dini_IntSet(string3,"Matou", PlayerInfo[playerid][pKills]);
- new d,m,a;
- getdate(a,m,d);
- dini_IntSet(string3,"AnoRegistrado",a);
- dini_IntSet(string3,"MesRegistrado",m);
- dini_IntSet(string3,"DiaRegistrado",d);
- SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Conta criada com sucesso.");
- ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "{90EE90}FusioN TeamDeath Match", "Digite sua senha para logar-se", "Logar", "Esperar");
- PlayerInfo[playerid][pReg] = 0;
- }
- return 1;
- }
- public CarregarJogador(playerid, senha[])
- {
- new string2[64];
- new stringultimologin[256];
- format(string2, sizeof(string2), "Contas/%s.ini", NomeDoJogador(playerid));
- if(dini_Exists(string2))
- {
- if(!strcmp(dini_Get(string2, "Senha"), senha, false))
- {
- PlayerInfo[playerid][pLogado] = 1;
- SetPlayerScore(playerid, dini_Int(string2,"Level"));
- GivePlayerMoney(playerid, dini_Int(string2,"Dinheiro"));
- PlayerInfo[playerid][pAdmin] = dini_Int(string2,"Admin");
- PlayerInfo[playerid][pORG] = dini_Int(string2,"ORG");
- PlayerInfo[playerid][pSkin] = dini_Int(string2,"Skin");
- PlayerInfo[playerid][pMortes] = dini_Int(string2,"Morreu");
- PlayerInfo[playerid][pKills] = dini_Int(string2,"Matou");
- format(stringultimologin, sizeof(stringultimologin), "Seu último login foi em: %d/%d/%d às %d:%d:%d", PlayerInfo[playerid][pUltimoLoginAno], PlayerInfo[playerid][pUltimoLoginMes], PlayerInfo[playerid][pUltimoLoginDia], PlayerInfo[playerid][pUltimoLoginHora], PlayerInfo[playerid][pUltimoLoginMinuto], PlayerInfo[playerid][pUltimoLoginSegundo]);
- SendClientMessage(playerid, COR_INFO, stringultimologin);
- getdate(ano,mes,dia);
- gettime(hora,minuto,segundo);
- dini_IntSet(string2,"UltimoLoginAno",ano);
- dini_IntSet(string2,"UltimoLoginMes",mes);
- dini_IntSet(string2,"UltimoLoginDia",dia);
- dini_IntSet(string2,"UltimoLoginHora",hora);
- dini_IntSet(string2,"UltimoLoginMinuto",minuto);
- dini_IntSet(string2,"UltimoLoginSegundo",segundo);
- PlayerInfo[playerid][pUltimoLoginAno] = dini_Int(string2,"UltimoLoginAno");
- PlayerInfo[playerid][pUltimoLoginMes] = dini_Int(string2,"UltimoLoginMes");
- PlayerInfo[playerid][pUltimoLoginDia] = dini_Int(string2,"UltimoLoginDia");
- PlayerInfo[playerid][pUltimoLoginHora] = dini_Int(string2,"UltimoLoginHora");
- PlayerInfo[playerid][pUltimoLoginMinuto] = dini_Int(string2,"UltimoLoginMinuto");
- PlayerInfo[playerid][pUltimoLoginSegundo] = dini_Int(string2,"UltimoLoginSegundo");
- SendClientMessage(playerid, COR_INFO, "{FFFF00}[INFO]{D2D2FF}: Você logou com sucesso.");
- SpawnPlayer(playerid);
- }
- else
- {
- ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "{90EE90}FusioN TeamDeath Match", "Você digitou uma senha incorreta", "Logar", "Esperar");
- SendClientMessage(playerid, COR_INFO, "{FF0000}[ERRO]{D2D2FF}: Sua senha/nick não coincidem.");
- return 1;
- }
- }
- return 1;
- }
- public AtualizarJogador(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pLogado] == 1)
- {
- new string3[256];
- format(string3, sizeof(string3), "Contas/%s.ini", NomeDoJogador(playerid));
- dini_IntSet(string3, "Level",PlayerInfo[playerid][pLevel]);
- dini_IntSet(string3,"Dinheiro", GetPlayerMoney(playerid))
- dini_IntSet(string3, "Admin",PlayerInfo[playerid][pAdmin]);
- dini_IntSet(string3, "ORG",PlayerInfo[playerid][pORG]);
- dini_IntSet(string3, "Skin",PlayerInfo[playerid][pSkin]);
- dini_IntSet(string3, "Morreu",PlayerInfo[playerid][pMortes]);
- dini_IntSet(string3, "Matou",PlayerInfo[playerid][pKills]);
- }
- }
- return 1;
- }
- forward BanLog(string[]);
- public BanLog(string[])
- {
- new entry[128];
- format(entry, sizeof(entry), "%s\n",string);
- new File:hFile;
- hFile = fopen("Logs/ban.log", io_append);
- fwrite(hFile, entry);
- fclose(hFile);
- }
- public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
- {
- if(IsPlayerConnected(playerid))
- {
- new Float:oldposx, Float:oldposy, Float:oldposz;
- new Float:tempposx, Float:tempposy, Float:tempposz;
- GetPlayerPos(playerid, oldposx, oldposy, oldposz);
- tempposx = (oldposx -x);
- tempposy = (oldposy -y);
- tempposz = (oldposz -z);
- if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
- {
- return 1;
- }
- }
- return 0;
- }
- IsNumeric(const string[])
- {
- for (new i = 0, j = strlen(string); i < j; i++)
- {
- if (string[i] > '9' || string[i] < '0') return 0;
- }
- return 1;
- }
- ReturnUser(text[], playerid = INVALID_PLAYER_ID)
- {
- new pos = 0;
- while (text[pos] < 0x21) // Strip out leading spaces
- {
- if (text[pos] == 0) return INVALID_PLAYER_ID; // No passed text
- pos++;
- }
- new userid = INVALID_PLAYER_ID;
- if (IsNumeric(text[pos])) // Check whole passed string
- {
- // If they have a numeric name you have a problem (although names are checked on id failure)
- userid = strval(text[pos]);
- if (userid >=0 && userid < MAX_PLAYERS)
- {
- if(!IsPlayerConnected(userid))
- {
- /*if (playerid != INVALID_PLAYER_ID)
- {
- SendClientMessage(playerid, 0xFF0000AA, "User not connected");
- }*/
- userid = INVALID_PLAYER_ID;
- }
- else
- {
- return userid; // A player was found
- }
- }
- /*else
- {
- if (playerid != INVALID_PLAYER_ID)
- {
- SendClientMessage(playerid, 0xFF0000AA, "Invalid user ID");
- }
- userid = INVALID_PLAYER_ID;
- }
- return userid;*/
- // Removed for fallthrough code
- }
- // They entered [part of] a name or the id search failed (check names just incase)
- new len = strlen(text[pos]);
- new count = 0;
- new name[MAX_PLAYER_NAME];
- for (new i = 0; i < MAX_PLAYERS; i++)
- {
- if (IsPlayerConnected(i))
- {
- GetPlayerName(i, name, sizeof (name));
- if (strcmp(name, text[pos], true, len) == 0) // Check segment of name
- {
- if (len == strlen(name)) // Exact match
- {
- return i; // Return the exact player on an exact match
- // Otherwise if there are two players:
- // Me and MeYou any time you entered Me it would find both
- // And never be able to return just Me's id
- }
- else // Partial match
- {
- count++;
- userid = i;
- }
- }
- }
- }
- if (count != 1)
- {
- if (playerid != INVALID_PLAYER_ID)
- {
- if (count)
- {
- SendClientMessage(playerid, 0xFF0000AA, "Multiple users found, please narrow earch");
- }
- else
- {
- SendClientMessage(playerid, 0xFF0000AA, "No matching user found");
- }
- }
- userid = INVALID_PLAYER_ID;
- }
- return userid;
- }
- DropWeapons( playerid )
- {
- new Float: px, Float: py, Float: pz;
- new hour,minute,second;
- new year, month,day;
- gettime(hour, minute, second);
- getdate(year, month, day);
- GetPlayerPos( playerid, px, py, pz );
- new weapon_slots[WEAPON_SLOTS + 1][2];
- new used_weapon_slots;
- for( new i = 0; i < WEAPON_SLOTS; i ++ )
- {
- GetPlayerWeaponData( playerid, i, weapon_slots[ i ][ 0 ], weapon_slots[ i ][ 1 ]);
- if( i == 0 && weapon_slots[ i ][ 0 ] == 0 ) weapon_slots[ i ][ 1 ] = 0; // no fist...
- if( weapon_slots[ i ][ 1 ] > 0 && weapon_slots[ i ][ 0 ] < sizeof( weapons ) && weapons[ weapon_slots[ i ][ 0 ] ] != -1 )
- {
- used_weapon_slots ++;
- }
- else
- {
- weapon_slots[ i ][ 0 ] = 0;
- weapon_slots[ i ][ 1 ] = 0;
- }
- }
- // Create the pickups
- new used_weapon_slots2 = used_weapon_slots;
- for( new i = 0; i < WEAPON_SLOTS; i ++ )
- {
- if( weapon_slots[ i ][ 1 ] > 0 )
- {
- new Float:angle = 360.0 - float(used_weapon_slots--) * ( 360.0 / float(used_weapon_slots2) );
- // see... if there's a pickup we create by any chance
- new p = CreatePickup( weapons[ weapon_slots[ i ][ 0 ] ], PICKUP_TYPE, px + floatsin(angle,degrees) * (used_weapon_slots2/2 + 1.0), py + floatcos(angle,degrees) * (used_weapon_slots2/2 + 1.0), pz );
- if( p == INVALID_PICKUP )
- {
- new lowest_time;
- new _id;
- for( new j = 0; j < MAX_PICKUPS; j ++ )
- {
- if( pickups[ j ][ creation_time ] < lowest_time )
- {
- lowest_time = pickups[ j ][ creation_time ];
- _id = j;
- }
- }
- DestroyPickupEx( _id );
- KillTimer( pickups[ _id ][ timer ] );
- p = CreatePickup( weapons[ weapon_slots[ i ][ 0 ] ], PICKUP_TYPE, px + floatsin(angle,degrees) * (used_weapon_slots2/2 + 1.0), py + floatcos(angle,degrees) * (used_weapon_slots2/2 + 1.0), pz );
- }
- pickups[ p ][ creation_time ] = mktime(hour,minute,second,day,month,year);
- pickups[ p ][ weapon ] = weapon_slots[ i ][ 0 ];
- pickups[ p ][ ammo ] = weapon_slots[ i ][ 1 ];
- #if MAX_DROP_AMOUNT != -1
- if( pickups[ p ][ ammo ] > MAX_DROP_AMOUNT )
- {
- pickups[ p ][ ammo ] = MAX_DROP_AMOUNT;
- }
- #endif
- pickups[ p ][ timer ] = SetTimerEx("DestroyPickupEx", MAX_DROP_LIFETIME * 1000, 0, "i", p);
- }
- }
- }
- // by mabako :D
- time(hour,minute,second,day,month,year) {
- new timestamp;
- timestamp = second;
- timestamp += minute * 60;
- timestamp += hour * 3600;
- new days_of_month[12];
- if(((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0)) {
- days_of_month = {31,29,31,30,31,30,31,31,30,31,30,31}; // Schaltjahr
- } else {
- days_of_month = {31,28,31,30,31,30,31,31,30,31,30,31}; // keins
- }
- new days_this_year = 0;
- days_this_year = day;
- if(month > 1) { // No January Calculation, because its always the 0 past months
- for(new i=0; i<month-1;i++) {
- days_this_year += days_of_month[i];
- }
- }
- timestamp += days_this_year * 86400;
- for(new j=1970;j<year;j++) {
- timestamp += 31536000;
- if(((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0)) timestamp += 86400; // Schaltjahr + 1 Tag
- }
- return timestamp;
- }
- public DestroyPickupEx( p )
- {
- DestroyPickup( p );
- pickups[ p ][ creation_time ] = 0;
- pickups[ p ][ weapon ] = 0;
- pickups[ p ][ ammo ] = 0;
- }
- public OnPlayerPickUpPickup( playerid, pickupid )
- {
- if( pickups[ pickupid ][ creation_time ] != 0 )
- {
- GivePlayerWeapon( playerid, pickups[ pickupid ][ weapon ], pickups[ pickupid ][ ammo ] );
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement