Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //==============================[Includes]======================================
- #include < a_samp >
- #include < Dini >
- #include < foreach >
- #include < zcmd >
- #include < sscanf2 >
- //==============================[Defines]=======================================
- //[Dialogos]
- #define REGISTRO 1
- #define LOGIN 2
- #define CREDITOS 3
- //[Cores]
- #define CorVagos 0xE8E300AA // Amarelo
- #define CorBallas 0x7E0C97AA // Roxo
- #define CorAztecas 0x0068E1AA // Azul
- #define CorGroove 0x1A8600AA // Verde
- //[Salvamentos]
- #define CONTAS "Contas/%s.ini"
- #define BANIDOS "Banidos/%s.ini"
- #define LOGS "Logs/"
- //[Creditos do Gamemode]
- #define ScripterGM "Gustavo_Guerino"
- #define Scripter2GM "RedTube_xD"
- #define Scripter3GM "Ninguem"
- #define MapperGM "Ninguem"
- #define ResponsavelGM "Diego"
- //[Mensagens principais]
- #define ADMININVALIDO "{5F6264}[Erro >>] {F60000}Você não tem autorização para usar este comando!"
- //=================================[Pragmas]====================================
- //===============================[New's]========================================
- //[Foreash]
- //[Text Draws]
- new Text:InfosPlayer[MAX_PLAYERS];
- new Text:LogoServer;
- new Text:velo[MAX_PLAYERS];
- //[Outros]
- new String[150], StringDialogos[400];
- new PrimeiroSpawn[MAX_PLAYERS];
- enum pInfo
- {
- Level,
- Matou,
- Morreu,
- Admin,
- Time,
- Titulo
- };
- new Info[MAX_PLAYERS][pInfo];
- new Vagos[28], Groove[28], Ballas[28], Aztecas[28];
- new GZAztecas, GZVagos, GZBallas, GZGroove;
- new Ano, Mes, Dia, Hora, Minuto, Segundo;
- new MensagensRandomicas[4][128] = /*ao colocar as mensagens substitua o [4] pelo número de mensagens. que vocês colocou*/
- {
- "{F66D00}[Mensagem >>]{959399} Adicione nosso ip aos favoritos: 127.0.0.1",
- "{F66D00}[Mensagem >>]{959399} Nossa equipe esta fazendo o melhor por você!",
- "{F66D00}[Mensagem >>]{959399} Aqui não permitimos hacks ou qualquer derivado!",
- "{F66D00}[Mensagem >>]{959399} Mesmo sendo servidor de DM é proibido DB" //Lembre-se que a última mensagem não deve conter ','
- };
- new NomeCarro[212][] =
- {
- "Landstalker", "Bravura", "Buffalo", "Linerunner", "Perrenial", "Sentinel", "Dumper", "Firetruck", "Trashmaster", "Stretch", "Manana",
- "Infernus", "Voodoo", "Pony", "Mule", "Cheetah", "Ambulance", "Leviathan", "Moonbeam", "Esperanto", "Taxi", "Washington", "Bobcat",
- "Whoopee", "BF Injection", "Hunter", "Premier", "Enforcer", "Securicar", "Banshee", "Predator", "Bus", "Rhino", "Barracks", "Hotknife",
- "Trailer 1", "Previon", "Coach", "Cabbie", "Stallion", "Rumpo", "RC Bandit", "Romero", "Packer", "Monster", "Admiral", "Squalo",
- "Seasparrow", "Pizzaboy", "Tram", "Trailer 2", "Turismo", "Speeder", "Reefer", "Tropic", "Flatbed", "Yankee", "Caddy", "Solair",
- "Berkley's RC Van", "Skimmer", "PCJ-600", "Faggio", "Freeway", "RC Baron", "RC Raider", "Glendale", "Oceanic", "Sanchez", "Sparrow",
- "Patriot", "Quad", "Coastguard", "Dinghy", "Hermes", "Sabre", "Rustler", "ZR-350", "Walton", "Regina", "Comet", "BMX", "Burrito",
- "Camper", "Marquis", "Baggage", "Dozer", "Maverick", "News Chopper", "Rancher", "FBI Rancher", "Virgo", "Greenwood", "Jetmax", "Hotring",
- "Sandking", "Blista Compact", "Police Maverick", "Boxville", "Benson", "Mesa", "RC Goblin", "Hotring Racer A", "Hotring Racer B",
- "Bloodring Banger", "Rancher", "Super GT", "Elegant", "Journey", "Bike", "Mountain Bike", "Beagle", "Cropduster","Stunt", "Tanker",
- "Roadtrain", "Nebula", "Majestic", "Buccaneer", "Shamal", "Hydra", "FCR-900", "NRG-500", "HPV1000", "Cement Truck", "Tow Truck", "Fortune",
- "Cadrona", "FBI Truck", "Willard", "Forklift", "Tractor", "Combine", "Feltzer", "Remington", "Slamvan", "Blade", "Freight", "Streak",
- "Vortex", "Vincent", "Bullet", "Clover", "Sadler", "Firetruck LA", "Hustler", "Intruder", "Primo", "Cargobob", "Tampa", "Sunrise", "Merit",
- "Utility", "Nevada", "Yosemite", "Windsor", "Monster A", "Monster B", "Uranus", "Jester", "Sultan", "Stratum", "Elegy", "Raindance",
- "RC Tiger", "Flash", "Tahoma", "Savanna", "Bandito", "Freight Flat", "Streak Carriage", "Kart", "Mower", "Dune", "Sweeper", "Broadway",
- "Tornado", "AT-400", "DFT-30", "Huntley", "Stafford", "BF-400", "News Van", "Tug", "Trailer 3", "Emperor", "Wayfarer", "Euros", "Hotdog",
- "Club", "Freight Carriage", "Trailer 4", "Andromada", "Dodo", "RC Cam", "Launch", "Police Car (LSPD)", "Police Car (SFPD)",
- "Police Car (LVPD)", "Police Ranger", "Picador", "S.W.A.T", "Alpha", "Phoenix", "Glendale", "Sadler", "Luggage Trailer A",
- "Luggage Trailer B", "Stairs", "BoxVille", "Tiller", "Utility Trailer"
- };
- //==========================[Forwards]==========================================
- forward ChecarRank(killerid);
- forward PularLinhas(quantidade, playerid);
- forward MensagemAdmins(COR, const Mensagem[]);
- forward SpawnKill(id);
- forward Velocimetro();
- forward Mensagens();
- main()
- {
- print("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n");
- print("------------------------------------------------------------");
- print("|MM MM MM MM AAAAA TTTTT AAAAA |");
- print("|M M M M M MMM M A A T A A |");
- print("|M M M M M M M AAAAA T AAAAA |");
- print("|M M M M M M A A T A A |");
- print("|M M M AAAAA TTTTT AAAAA |");
- print("|M M A A T A A Projeto feito por:|");
- print("|M M AAAAA T AAAAA - Gustavo Guerino |");
- print("|M M A A T A A - Marcelo Ferreira|");
- print("------------------------------------------------------------");
- }
- public Mensagens()
- {
- SendClientMessageToAll(-1,MensagensRandomicas[random(sizeof(MensagensRandomicas))]);
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- new veiculo;
- veiculo = GetPlayerVehicleID(playerid);
- if(newstate == PLAYER_STATE_DRIVER)
- {
- for (new carro = 0; carro != 28; ++carro)
- {
- if(veiculo == Vagos[carro] )
- {
- if(Info[playerid][Time] != 1)
- {
- SendClientMessage(playerid,-1,"{5F6264}[Atenção >>] {F60000}Este carro pertence aos Vagos!");
- RemovePlayerFromVehicleEx(playerid);
- }
- }
- else if(veiculo == Ballas[carro])
- {
- if(Info[playerid][Time] != 0)
- {
- SendClientMessage(playerid,-1,"{5F6264}[Atenção >>] {F60000}Este carro pertence aos Ballas!");
- RemovePlayerFromVehicleEx(playerid);
- }
- }
- else if(veiculo == Groove[carro])
- {
- if(Info[playerid][Time] != 2)
- {
- SendClientMessage(playerid,-1,"{5F6264}[Atenção >>] {F60000}Este carro pertence aos Groove!");
- RemovePlayerFromVehicleEx(playerid);
- }
- }
- else if(veiculo == Aztecas[carro])
- {
- if(Info[playerid][Time] != 3)
- {
- SendClientMessage(playerid,-1,"{5F6264}[Atenção >>] {F60000}Este carro pertence aos Aztecas!");
- RemovePlayerFromVehicleEx(playerid);
- }
- }
- }
- }
- return 1;
- }
- stock RemovePlayerFromVehicleEx(playerid)
- {
- RemovePlayerFromVehicle(playerid);
- TogglePlayerControllable(playerid, 1);
- }
- public OnPlayerCommandPerformed(playerid, cmdtext[], success)
- {
- if(!success) return SendClientMessage(playerid,-1,"Comando Nao Reconhecido.");//quando o comando nao existe ou nao e executado com sucesso returna a mensagem
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- switch(Info[playerid][Time])
- {
- case 0://Balas // Posição, Vida, Colete e armas deles
- {
- SetPlayerHealth(playerid, 100.0);
- SetPlayerArmour(playerid, 100.0);
- ArmasBasicas(playerid);
- SetPlayerPos(playerid,1150.6455,-1180.9176,32.0275);
- }
- case 1://Vagos // Posição, Vida, Colete e armas deles
- {
- SetPlayerHealth(playerid, 100.0);
- SetPlayerArmour(playerid, 100.0);
- ArmasBasicas(playerid);
- SetPlayerPos(playerid,2266.8694,-1096.7681,42.6484);
- }
- case 2://Groove // Posição, Vida, Colete e armas deles
- {
- SetPlayerHealth(playerid, 100.0);
- SetPlayerArmour(playerid, 100.0);
- ArmasBasicas(playerid);
- SetPlayerPos(playerid,2519.4255,-1678.6809,14.7228);
- }
- case 3://Aztecas // Posição, Vida, Colete e armas deles
- {
- SetPlayerHealth(playerid, 100.0);
- SetPlayerArmour(playerid, 100.0);
- ArmasBasicas(playerid);
- SetPlayerPos(playerid,1876.0376,-2020.8409,13.5391);
- }
- }
- DarSkils(playerid);
- PularLinhas(50, playerid);
- if(PrimeiroSpawn[playerid] == 0)
- {
- PrimeiroSpawn[playerid] = 1;
- SendClientMessage(playerid,0x3F1583AA,"{979C9C}[Mensagem >>] Bem vindo ao {E8F600}Brasil {8CE000}Mata{F6F6F6}-{0072F6}Mata {F6F6F6}2012");
- SendClientMessage(playerid,0x3F1583AA,"{E88E00}Caso tenha alguma duvida sobre nosso servidor contate um admin online!, {E80000}Nossa equipe:");
- MostrarCreditos(2, playerid);
- }
- SetPlayerHealth(playerid, 9999);
- SetTimerEx("SpawnKill", 15000, false, "i", playerid);
- GameTextForPlayer(playerid, "~g~Ant-Spawn Kill ~y~ativado ~w~por ~r~15 ~w~segundos", 5000, 1);
- return 1;
- }
- public SpawnKill(id)
- {
- SendClientMessage(id,0x3F1583AA,"{7F7A73}[Ant-Spawn Kill >>] {F60000}15 segundos se passaram e agora você pode ser morto!");
- SetPlayerHealth(id, 100);
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {//GetPlayerColor(playerid)
- if(text[0] == '!')
- {
- foreach (Player, i)
- {
- if(Info[i][Time] == Info[playerid][Time])
- {
- strdel(text, 0, 1);
- format(String, sizeof (String), "..:: Time: %s - %s diz: {C8C8DE}%s ::..", NomeTime(Info[playerid][Time]), PlayerName(playerid), text);
- SendClientMessage(i,GetPlayerColor(playerid), String);
- }
- }
- return 0;
- }
- format(String, sizeof (String), "[%d]%s diz: {C8C8DE}%s", playerid, PlayerName(playerid), text);
- SendClientMessageToAll(GetPlayerColor(playerid), String);
- return 0;
- }
- public OnGameModeInit()
- {
- UsePlayerPedAnims();
- SetGameModeText("Mata-Mata 2012");
- SendRconCommand("hostname [BR] Mata-Mata [2012]");
- //Ballas
- AddPlayerClass(103, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
- //Vagos
- AddPlayerClass(110, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
- //Groove
- AddPlayerClass(105, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
- //Aztecas
- AddPlayerClass(115, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
- //Text Draws variadas ======================================================
- LogoServer = TextDrawCreate(2.000000, 430.000000, "~y~Brasil~g~ Mata~w~-~b~Mata ~w~ [2012]");
- TextDrawBackgroundColor(LogoServer, 255);
- TextDrawFont(LogoServer, 3);
- TextDrawLetterSize(LogoServer, 0.460000, 1.799999);
- TextDrawColor(LogoServer, -1);
- TextDrawSetOutline(LogoServer, 1);
- TextDrawSetProportional(LogoServer, 1);
- TextDrawUseBox(LogoServer, 1);
- TextDrawBoxColor(LogoServer, 16843108);
- TextDrawTextSize(LogoServer, 228.000000, 0.000000);
- //Gang Zones ===============================================================
- GZAztecas = GangZoneCreate(1806.7534,-2011.6721, 1960.0278,-2062.0476);
- GZVagos = GangZoneCreate(2236.2129,-1106.0194, 2300.6370,-1133.2113);
- GZBallas = GangZoneCreate(1081.4655,-1122.3550, 1124.0198,-1295.3240);
- GZGroove = GangZoneCreate(2471.0310,-1652.1807, 2509.3789,-1689.2802);
- //Timmers ==================================================================
- SetTimer("Mensagens", 240000, true);// 4 minutos
- SetTimer("AtualizarTextos", 1000, true);// 1 segundo
- SetTimer("Velocimetro", 500, true);// 1/2 segundos
- //[CARROS] Ballas
- Ballas[0] = AddStaticVehicleEx(506,1085.39941406,-1225.50000000,15.60000038,181.99951172,115,1,15); //Super GT
- Ballas[1] = AddStaticVehicleEx(560,1092.39941406,-1226.00000000,15.60000038,180.00000000,22,1,15); //Sultan
- Ballas[2] = AddStaticVehicleEx(560,1096.09997559,-1226.09997559,15.60000038,180.00000000,22,1,15); //Sultan
- Ballas[3] = AddStaticVehicleEx(517,1099.40002441,-1226.09997559,15.80000019,180.00000000,22,1,15); //Majestic
- Ballas[4] = AddStaticVehicleEx(517,1102.39941406,-1226.19921875,15.80000019,180.00000000,22,1,15); //Majestic
- Ballas[5] = AddStaticVehicleEx(567,1107.00000000,-1225.69921875,15.80000019,177.99499512,22,1,15); //Savanna
- Ballas[6] = AddStaticVehicleEx(567,1110.80004883,-1225.80004883,15.80000019,177.99499512,22,1,15); //Savanna
- Ballas[7] = AddStaticVehicleEx(521,1105.09997559,-1191.09997559,17.89999962,182.00000000,22,1,15); //FCR-900
- Ballas[8] = AddStaticVehicleEx(521,1106.59997559,-1191.19995117,17.89999962,181.99951172,22,1,15); //FCR-900
- Ballas[9] = AddStaticVehicleEx(521,1108.80004883,-1191.30004883,17.89999962,181.99951172,22,1,15); //FCR-900
- Ballas[10] = AddStaticVehicleEx(522,1109.59997559,-1191.19995117,17.79999924,184.00000000,22,1,15); //NRG-500
- Ballas[11] = AddStaticVehicleEx(522,1110.80004883,-1191.30004883,17.79999924,183.99902344,22,1,15); //NRG-500
- Ballas[12] = AddStaticVehicleEx(522,1113.30004883,-1191.40002441,17.79999924,183.99902344,22,1,15); //NRG-500
- Ballas[13] = AddStaticVehicleEx(567,1114.59997559,-1249.59997559,15.80000019,357.99499512,22,1,15); //Savanna
- Ballas[14] = AddStaticVehicleEx(522,1111.80004883,-1191.30004883,17.79999924,183.99902344,22,1,15); //NRG-500
- Ballas[15] = AddStaticVehicleEx(522,1114.50000000,-1191.30004883,17.79999924,183.99902344,22,1,15); //NRG-500
- Ballas[16] = AddStaticVehicleEx(521,1107.80004883,-1191.30004883,17.89999962,181.99951172,22,1,15); //FCR-900
- Ballas[17] = AddStaticVehicleEx(521,1105.80004883,-1191.30004883,17.89999962,181.99951172,22,1,15); //FCR-900
- Ballas[18] = AddStaticVehicleEx(506,1084.19995117,-1236.19995117,15.60000038,181.99951172,115,1,15); //Super GT
- Ballas[19] = AddStaticVehicleEx(506,1084.30004883,-1250.00000000,15.60000038,359.99951172,115,1,15); //Super GT
- Ballas[20] = AddStaticVehicleEx(560,1088.50000000,-1249.80004883,15.60000038,358.00000000,22,1,15); //Sultan
- Ballas[21] = AddStaticVehicleEx(560,1091.50000000,-1250.00000000,15.60000038,357.99499512,22,1,15); //Sultan
- Ballas[22] = AddStaticVehicleEx(517,1095.19995117,-1250.00000000,15.80000019,0.00000000,22,1,15); //Majestic
- Ballas[23] = AddStaticVehicleEx(517,1098.40002441,-1250.00000000,15.80000019,0.00000000,22,1,15); //Majestic
- Ballas[24] = AddStaticVehicleEx(567,1102.40002441,-1249.69995117,15.80000019,357.99499512,22,1,15); //Savanna
- Ballas[25] = AddStaticVehicleEx(567,1106.30004883,-1249.59997559,15.80000019,357.99499512,22,1,15); //Savanna
- Ballas[26] = AddStaticVehicleEx(567,1110.69995117,-1249.69995117,15.80000019,357.99499512,22,1,15); //Savanna
- //[CARROS] Vagos
- Vagos[0] = AddStaticVehicleEx(506,2257.69995117,-1107.80004883,37.79999924,244.00000000,6,1,15); //Super GT
- Vagos[1] = AddStaticVehicleEx(555,2259.19995117,-1105.19995117,37.79999924,244.00000000,6,1,15); //Windsor
- Vagos[2] = AddStaticVehicleEx(560,2260.29980469,-1102.19921875,37.79999924,243.99536133,6,1,15); //Sultan
- Vagos[3] = AddStaticVehicleEx(517,2262.29980469,-1098.69921875,37.90000153,243.99536133,6,1,15); //Majestic
- Vagos[4] = AddStaticVehicleEx(535,2274.00000000,-1106.79980469,37.79999924,191.99707031,6,1,15); //Slamvan
- Vagos[5] = AddStaticVehicleEx(567,2277.89990234,-1108.90002441,38.00000000,190.00000000,6,1,15); //Savanna
- Vagos[6] = AddStaticVehicleEx(576,2281.69921875,-1110.50000000,37.70000076,191.99707031,6,1,15); //Tornado
- Vagos[7] = AddStaticVehicleEx(581,2284.69995117,-1106.90002441,37.70000076,168.00000000,6,1,15); //BF-400
- Vagos[8] = AddStaticVehicleEx(581,2285.69995117,-1106.90002441,37.70000076,167.99743652,6,1,15); //BF-400
- Vagos[9] = AddStaticVehicleEx(581,2286.50000000,-1107.00000000,37.70000076,167.99743652,6,1,15); //BF-400
- Vagos[10] = AddStaticVehicleEx(522,2288.69995117,-1107.30004883,37.59999847,176.00000000,6,1,15); //NRG-500
- Vagos[11] = AddStaticVehicleEx(522,2289.89990234,-1107.30004883,37.59999847,175.99548340,6,1,15); //NRG-500
- Vagos[12] = AddStaticVehicleEx(522,2291.09960938,-1107.29980469,37.59999847,175.99548340,6,1,15); //NRG-500
- Vagos[13] = AddStaticVehicleEx(522,2292.10009766,-1107.40002441,37.59999847,175.99548340,6,1,15); //NRG-500
- Vagos[14] = AddStaticVehicleEx(522,2293.10009766,-1107.50000000,37.59999847,175.99548340,6,1,15); //NRG-500
- Vagos[15] = AddStaticVehicleEx(522,2294.30004883,-1107.40002441,37.59999847,175.99548340,6,1,15); //NRG-500
- Vagos[16] = AddStaticVehicleEx(581,2287.50000000,-1106.90002441,37.70000076,167.99743652,6,1,15); //BF-400
- Vagos[17] = AddStaticVehicleEx(535,2272.69995117,-1100.09997559,37.79999924,155.99707031,6,1,15); //Slamvan
- Vagos[18] = AddStaticVehicleEx(576,2283.89990234,-1119.09997559,37.70000076,269.99707031,6,1,15); //Tornado
- Vagos[19] = AddStaticVehicleEx(560,2275.00000000,-1116.19995117,37.79999924,237.99536133,6,1,15); //Sultan
- Vagos[20] = AddStaticVehicleEx(517,2273.30004883,-1138.90002441,26.70000076,261.99536133,6,1,15); //Majestic
- Vagos[21] = AddStaticVehicleEx(517,2281.10009766,-1139.80004883,26.70000076,261.99096680,6,1,15); //Majestic
- Vagos[22] = AddStaticVehicleEx(405,2256.60009766,-1136.30004883,26.70000076,254.00000000,6,1,15); //Sentinel
- Vagos[23] = AddStaticVehicleEx(405,2249.60009766,-1134.50000000,26.39999962,253.99841309,6,1,15); //Sentinel
- Vagos[24] = AddStaticVehicleEx(576,2291.89990234,-1119.09997559,37.70000076,271.99707031,6,1,15); //Tornado
- Vagos[25] = AddStaticVehicleEx(535,2252.30004883,-1150.30004883,26.79999924,253.99707031,6,1,15); //Slamvan
- Vagos[26] = AddStaticVehicleEx(535,2261.69995117,-1153.19995117,26.79999924,253.99291992,6,1,15); //Slamvan
- //[CARROS]Groove
- Groove[0] = AddStaticVehicleEx(522,2485.39990234,-1686.19995117,13.19999981,0.00000000,86,1,15); //NRG-500
- Groove[1] = AddStaticVehicleEx(522,2486.59960938,-1686.19921875,13.22999954,0.00000000,86,1,15); //NRG-500
- Groove[2] = AddStaticVehicleEx(522,2487.60009766,-1686.19995117,13.19999981,0.00000000,86,1,15); //NRG-500
- Groove[3] = AddStaticVehicleEx(581,2488.50000000,-1686.30004883,13.19999981,0.00000000,86,1,15); //BF-400
- Groove[4] = AddStaticVehicleEx(581,2489.30004883,-1686.30004883,13.19999981,0.00000000,86,1,15); //BF-400
- Groove[5] = AddStaticVehicleEx(581,2490.00000000,-1686.29980469,13.22999954,0.00000000,86,1,15); //BF-400
- Groove[6] = AddStaticVehicleEx(600,2473.39990234,-1691.50000000,13.39999962,0.00000000,86,1,15); //Picador
- Groove[7] = AddStaticVehicleEx(560,2478.89990234,-1654.59997559,13.30000019,90.00000000,86,1,15); //Sultan
- Groove[8] = AddStaticVehicleEx(562,2486.89990234,-1654.00000000,13.00000000,88.00000000,86,1,15); //Elegy
- Groove[9] = AddStaticVehicleEx(506,2504.39990234,-1651.50000000,13.50000000,140.00000000,86,1,15); //Super GT
- Groove[10] = AddStaticVehicleEx(567,2504.60009766,-1674.40002441,13.39999962,64.00000000,86,1,15); //Savanna
- Groove[11] = AddStaticVehicleEx(405,2498.30004883,-1682.09997559,13.39999962,104.00000000,86,1,15); //Sentinel
- Groove[12] = AddStaticVehicleEx(550,2469.80004883,-1671.50000000,13.19999981,10.00000000,86,1,15); //Sunrise
- Groove[13] = AddStaticVehicleEx(522,2481.69995117,-1686.00000000,13.19999981,0.00000000,86,1,15); //NRG-500
- Groove[14] = AddStaticVehicleEx(560,2479.30004883,-1660.30004883,13.30000019,90.00000000,86,1,15); //Sultan
- Groove[15] = AddStaticVehicleEx(560,2479.10009766,-1665.80004883,13.30000019,90.00000000,86,1,15); //Sultan
- Groove[16] = AddStaticVehicleEx(562,2486.89990234,-1660.30004883,13.00000000,91.99499512,86,1,15); //Elegy
- Groove[17] = AddStaticVehicleEx(562,2486.89990234,-1665.80004883,13.00000000,91.99401855,86,1,15); //Elegy
- Groove[18] = AddStaticVehicleEx(405,2496.10009766,-1655.69995117,13.39999962,91.99658203,86,1,15); //Sentinel
- Groove[19] = AddStaticVehicleEx(405,2495.60009766,-1660.00000000,13.39999962,91.99401855,86,1,15); //Sentinel
- Groove[20] = AddStaticVehicleEx(405,2495.39990234,-1665.30004883,13.39999962,91.99401855,86,1,15); //Sentinel
- Groove[21] = AddStaticVehicleEx(550,2486.89990234,-1668.69995117,13.19999981,89.99755859,86,1,15); //Sunrise
- Groove[22] = AddStaticVehicleEx(550,2481.69995117,-1692.40002441,13.19999981,169.99700928,86,1,15); //Sunrise
- Groove[23] = AddStaticVehicleEx(567,2504.69995117,-1663.50000000,13.39999962,125.99536133,86,1,15); //Savanna
- Groove[24] = AddStaticVehicleEx(581,2491.10009766,-1686.50000000,13.19999981,0.00000000,86,1,15); //BF-400
- Groove[25] = AddStaticVehicleEx(581,2492.19995117,-1686.69995117,13.19999981,0.00000000,86,1,15); //BF-400
- Groove[26] = AddStaticVehicleEx(522,2484.30004883,-1686.00000000,13.19999981,0.00000000,86,1,15); //NRG-500
- Groove[27] = AddStaticVehicleEx(522,2483.00000000,-1686.00000000,13.19999981,0.00000000,86,1,15); //NRG-500
- //[CARROS]AztecaS
- Aztecas[1] = AddStaticVehicleEx(411,1886.50000000,-2021.09997559,13.19999981,180.00000000,2,1,15); //Infernus
- Aztecas[2] = AddStaticVehicleEx(506,1886.59960938,-2029.59960938,13.19999981,180.00000000,2,1,15); //Super GT
- Aztecas[3] = AddStaticVehicleEx(560,1886.79980469,-2038.19921875,13.19999981,181.99951172,2,1,15); //Sultan
- Aztecas[4] = AddStaticVehicleEx(567,1878.90002441,-2021.09997559,13.39999962,180.00000000,2,1,15); //Savanna
- Aztecas[5] = AddStaticVehicleEx(540,1878.69921875,-2029.59960938,13.50000000,180.00000000,2,1,15); //Vincent
- Aztecas[6] = AddStaticVehicleEx(550,1878.90002441,-2038.69995117,13.30000019,182.00000000,2,1,15); //Sunrise
- Aztecas[7] = AddStaticVehicleEx(522,1895.09997559,-2029.09997559,13.19999981,90.00000000,2,1,15); //NRG-500
- Aztecas[8] = AddStaticVehicleEx(522,1895.09997559,-2030.50000000,13.19999981,90.00000000,2,1,15); //NRG-500
- Aztecas[9] = AddStaticVehicleEx(522,1895.00000000,-2031.89941406,13.19999981,90.00000000,2,1,15); //NRG-500
- Aztecas[10] = AddStaticVehicleEx(581,1894.90002441,-2034.30004883,13.19999981,92.00000000,2,1,15); //BF-400
- Aztecas[11] = AddStaticVehicleEx(581,1894.80004883,-2035.59997559,13.19999981,91.99951172,2,1,15); //BF-400
- Aztecas[12] = AddStaticVehicleEx(581,1894.79980469,-2036.79980469,13.19999981,91.99951172,2,1,15); //BF-400
- Aztecas[13] = AddStaticVehicleEx(560,1893.90002441,-2048.50000000,13.19999981,267.99951172,2,1,15); //Sultan
- Aztecas[14] = AddStaticVehicleEx(560,1894.00000000,-2056.60009766,13.19999981,267.99499512,2,1,15); //Sultan
- Aztecas[15] = AddStaticVehicleEx(560,1871.30004883,-2055.89990234,13.19999981,267.99499512,2,1,15); //Sultan
- Aztecas[16] = AddStaticVehicleEx(560,1871.90002441,-2048.39990234,13.19999981,267.99499512,2,1,15); //Sultan
- Aztecas[17] = AddStaticVehicleEx(540,1865.09997559,-2044.80004883,13.50000000,180.00000000,2,1,15); //Vincent
- Aztecas[18] = AddStaticVehicleEx(540,1862.09997559,-2044.90002441,13.50000000,180.00000000,2,1,15); //Vincent
- Aztecas[19] = AddStaticVehicleEx(540,1859.00000000,-2044.80004883,13.50000000,180.00000000,2,1,15); //Vincent
- Aztecas[20] = AddStaticVehicleEx(506,1901.69995117,-2044.90002441,13.19999981,180.00000000,2,1,15); //Super GT
- Aztecas[21] = AddStaticVehicleEx(506,1905.19995117,-2045.00000000,13.19999981,180.00000000,2,1,15); //Super GT
- Aztecas[22] = AddStaticVehicleEx(506,1908.69995117,-2045.09997559,13.19999981,180.00000000,2,1,15); //Super GT
- Aztecas[23] = AddStaticVehicleEx(581,1894.69995117,-2037.80004883,13.19999981,91.99951172,2,1,15); //BF-400
- Aztecas[24] = AddStaticVehicleEx(581,1894.59997559,-2038.80004883,13.19999981,91.99951172,2,1,15); //BF-400
- Aztecas[25] = AddStaticVehicleEx(522,1894.90002441,-2033.09997559,13.19999981,90.00000000,2,1,15); //NRG-500
- Aztecas[26] = AddStaticVehicleEx(522,1892.69995117,-2027.69995117,13.19999981,90.00000000,2,1,15); //NRG-500
- Aztecas[27] = AddStaticVehicleEx(522,1892.80004883,-2026.19995117,13.19999981,90.00000000,2,1,15); //NRG-500
- //[Objetos x1 gaiolas[
- CreateObject(980,-2147.60009766,-753.20001221,33.79999924,0.00000000,0.00000000,0.00000000); //object(airportgate) (1)
- CreateObject(980,-2136.19995117,-753.09997559,33.79999924,0.00000000,0.00000000,0.00000000); //object(airportgate) (2)
- CreateObject(980,-2136.10009766,-768.09997559,33.79999924,0.00000000,0.00000000,0.00000000); //object(airportgate) (3)
- CreateObject(980,-2147.60009766,-768.09997559,33.79999924,0.00000000,0.00000000,0.00000000); //object(airportgate) (4)
- CreateObject(980,-2147.60009766,-780.29998779,33.79999924,0.00000000,0.00000000,0.00000000); //object(airportgate) (5)
- CreateObject(980,-2136.19995117,-780.29998779,33.79999924,0.00000000,0.00000000,0.00000000); //object(airportgate) (6)
- CreateObject(980,-2136.10009766,-792.09997559,33.79999924,0.00000000,0.00000000,0.00000000); //object(airportgate) (7)
- CreateObject(980,-2147.50000000,-792.09997559,33.79999924,0.00000000,0.00000000,0.00000000); //object(airportgate) (8)
- CreateObject(980,-2147.39990234,-804.09997559,33.79999924,0.00000000,0.00000000,0.00000000); //object(airportgate) (9)
- CreateObject(980,-2135.89990234,-804.00000000,33.79999924,0.00000000,0.00000000,0.00000000); //object(airportgate) (10)
- CreateObject(980,-2135.80004883,-816.29998779,33.79999924,0.00000000,0.00000000,0.00000000); //object(airportgate) (11)
- CreateObject(980,-2147.19995117,-816.29998779,33.79999924,0.00000000,0.00000000,0.00000000); //object(airportgate) (12)
- CreateObject(980,-2146.89990234,-829.50000000,33.79999924,0.00000000,0.00000000,0.00000000); //object(airportgate) (13)
- CreateObject(980,-2135.39990234,-829.50000000,33.79999924,0.00000000,0.00000000,0.00000000); //object(airportgate) (14)
- CreateObject(980,-2136.10009766,-842.40002441,33.79999924,0.00000000,0.00000000,0.00000000); //object(airportgate) (15)
- CreateObject(980,-2147.50000000,-842.40002441,33.79999924,0.00000000,0.00000000,0.00000000); //object(airportgate) (16)
- CreateObject(980,-2147.89990234,-855.59997559,33.79999924,0.00000000,0.00000000,0.00000000); //object(airportgate) (17)
- CreateObject(980,-2136.39990234,-855.59997559,33.79999924,0.00000000,0.00000000,0.00000000); //object(airportgate) (18)
- CreateObject(980,-2135.80004883,-870.79998779,33.79999924,0.00000000,0.00000000,0.00000000); //object(airportgate) (19)
- CreateObject(980,-2147.39990234,-883.79998779,33.79999924,0.00000000,0.00000000,0.00000000); //object(airportgate) (21)
- CreateObject(980,-2135.89990234,-883.79998779,33.79999924,0.00000000,0.00000000,0.00000000); //object(airportgate) (22)
- CreateObject(980,-2147.30004883,-870.79998779,33.79999924,0.00000000,0.00000000,0.00000000); //object(airportgate) (28)
- CreateObject(7371,-2153.10009766,-765.29998779,31.00000000,0.00000000,0.00000000,0.00000000); //object(vgsnelec_fence_02) (1)
- CreateObject(7371,-2129.89990234,-765.09997559,31.00000000,0.00000000,0.00000000,0.00000000); //object(vgsnelec_fence_02) (2)
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- Cameras(playerid);
- ApplyAnimation(playerid, "Dancing", "Dan_Loop_A", 5.0, 1, 0, 0, 0, 0);
- if(classid == 0)
- {
- GameTextForPlayer(playerid, "~n~~r~Ballas", 2000, 3);
- SetPlayerColor(playerid, CorBallas);
- Info[playerid][Time] = 0;
- }
- else if(classid == 1)
- {
- GameTextForPlayer(playerid, "~n~~r~Vagos", 2000, 3);
- SetPlayerColor(playerid, CorVagos);
- Info[playerid][Time] = 1;
- }
- else if(classid == 2)
- {
- GameTextForPlayer(playerid, "~n~~r~Groove", 2000, 3);
- SetPlayerColor(playerid, CorGroove);
- Info[playerid][Time] = 2;
- }
- else if(classid == 3)
- {
- GameTextForPlayer(playerid, "~n~~r~Aztecas", 2000, 3);
- SetPlayerColor(playerid, CorAztecas);
- Info[playerid][Time] = 3;
- }
- return 1;
- }
- public OnPlayerConnect(playerid)//{F6D600}Brasil {95F600}Mata{F6F6F6}-{0080F6}Mata {F6F6F6}[2012]\n
- {
- new BanidoString[100];
- SendDeathMessage(playerid, GetPlayerColor(playerid), 200);//ChatKill
- format(String, sizeof(String), CONTAS, PlayerName(playerid));
- format(BanidoString, sizeof(BanidoString), BANIDOS, PlayerName(playerid));
- if(dini_Exists(BanidoString))
- {
- format(StringDialogos, sizeof(StringDialogos), "{F6D600}Brasil {95F600}Mata{F6F6F6}-{0080F6}Mata {F6F6F6}[2012]\n{F60000}Você está banido do servidor!\n{F68D00} - Motivo: %s\n{F68D00} - Admin: %s\n{F68D00} - Data: %s\n{F68D00} - Horario: %s", dini_Get(BanidoString,"Motivo"), dini_Get(BanidoString,"Admin"), dini_Get(BanidoString,"Data"), dini_Get(BanidoString,"Hora"));
- ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Banimentos - Mata-Mata TEM REGRA", StringDialogos, "Sair", "Sair");
- Kick(playerid);
- return 1;
- }
- if(!dini_Exists(String))
- {
- format(StringDialogos, sizeof(StringDialogos), "{F6D600}Brasil {95F600}Mata{F6F6F6}-{0080F6}Mata {F6F6F6}[2012]\n{737373}Status da Conta:{F60000} Não Registrada\n{00F600}Digite sua senha para registrar");
- ShowPlayerDialog(playerid, REGISTRO, DIALOG_STYLE_INPUT, "Registro", StringDialogos, "Registrar", "Cancelar");
- }
- else
- {
- format(StringDialogos, sizeof(StringDialogos), "{F6D600}Brasil {95F600}Mata{F6F6F6}-{0080F6}Mata {F6F6F6}[2012]\n{737373}Status da Conta:{9CF600} Registrada\n{00F600}Digite sua senha para logar");
- ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "Logar", StringDialogos, "Logar", "Cancelar");
- }
- Cameras(playerid);
- GameTextForPlayer(playerid, "~g~BRASIL ~y~MATA~w~-~b~MATA ~w~ 2012", 5000, 1);
- //[Text Draws]
- InfosPlayer[playerid] = TextDrawCreate(498.000000, 107.000000, "~b~Matou: ~w~00000~n~~y~Morreu: ~w~00000");
- TextDrawBackgroundColor(InfosPlayer[playerid], 255);
- TextDrawFont(InfosPlayer[playerid], 3);
- TextDrawLetterSize(InfosPlayer[playerid], 0.460000, 1.799999);
- TextDrawColor(InfosPlayer[playerid], -1);
- TextDrawSetOutline(InfosPlayer[playerid], 1);
- TextDrawSetProportional(InfosPlayer[playerid], 1);
- TextDrawShowForPlayer(playerid, LogoServer);
- velo[playerid] = TextDrawCreate(466.000000, 413.000000, "~l~-~w~ Velocidade: ~g~%i KM/h ~n~~l~- ~w~Carro: ~b~%s ~n~~l~- ~w~Lataria: ~r~%.0f%");
- TextDrawBackgroundColor(velo[playerid], 255);
- TextDrawFont(velo[playerid], 1);
- TextDrawLetterSize(velo[playerid], 0.300000, 0.899999);
- TextDrawColor(velo[playerid], -1);
- TextDrawSetOutline(velo[playerid], 1);
- TextDrawSetProportional(velo[playerid], 1);
- TextDrawUseBox(velo[playerid], 1);
- TextDrawBoxColor(velo[playerid], 336860220);
- TextDrawTextSize(velo[playerid], 625.000000, -31.000000);
- //[Gzs]
- GangZoneShowForPlayer(playerid, GZAztecas, CorAztecas);
- GangZoneShowForPlayer(playerid, GZVagos, CorVagos);
- GangZoneShowForPlayer(playerid, GZBallas, CorBallas);
- GangZoneShowForPlayer(playerid, GZGroove, CorGroove);
- return 1;
- }
- public Velocimetro()
- {
- foreach (Player, i)
- {
- new aname[MAX_PLAYER_NAME];
- GetPlayerName(i, aname, MAX_PLAYER_NAME);
- if(IsPlayerInAnyVehicle(i))
- {
- new Float:X, Float:Y, Float:Z, Float:Speed, Float:vcarro, velocidade, string[256], nocarro[30];
- new PlayerVehicleModelID = GetVehicleModel(GetPlayerVehicleID(i));
- GetVehicleVelocity(GetPlayerVehicleID(i), X, Y, Z);
- Speed = floatmul(floatsqroot(floatadd(floatadd(floatpower(X, 2), floatpower(Y, 2)), floatpower(Z, 2))), 200.0);
- GetVehicleHealth(GetPlayerVehicleID(i), vcarro);
- velocidade = floatround(Speed, floatround_floor);
- PlayerVehicleModelID -= 400;
- format(nocarro,30,NomeCarro[PlayerVehicleModelID]);
- format(string, 256,"~l~~>~~w~ Velocidade: ~g~%i KM/h ~n~~l~~>~ ~w~Carro: ~b~%s ~n~~l~~>~ ~w~Lataria: ~r~%.0f%",velocidade,nocarro,vcarro);
- TextDrawSetString(velo[i],string);
- TextDrawShowForPlayer(i,velo[i]);
- }
- else
- {
- TextDrawHideForPlayer(i, velo[i]);
- }
- }
- }
- public OnGameModeExit()
- {
- TextDrawHideForAll(LogoServer);
- TextDrawDestroy(LogoServer);
- foreach (Player, playerid)
- {
- TextDrawHideForAll(InfosPlayer[playerid]);
- TextDrawDestroy(InfosPlayer[playerid]);
- SalvarPlayer(playerid);
- }
- return 1;
- }
- forward AtualizarTextos();
- public AtualizarTextos()
- {
- foreach (Player, i)
- {
- TextDrawHideForPlayer(i, InfosPlayer[i]);
- format(String, sizeof(String), "~w~Matou: ~r~%05d~n~~w~Morreu: ~r~%05d", Info[i][Matou], Info[i][Morreu]);
- TextDrawSetString(InfosPlayer[i], String);
- TextDrawShowForPlayer(i, InfosPlayer[i]);
- }
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- SendDeathMessage(playerid, GetPlayerColor(playerid), 201);//ChatKill
- PrimeiroSpawn[playerid] = 0;
- SalvarPlayer(playerid);
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- SendDeathMessage(killerid, playerid, reason);
- if(IsPlayerConnected(killerid))
- {
- Info[killerid][Matou] += 1;
- }
- Info[playerid][Morreu] += 1;
- ChecarRank(killerid);
- return 1;
- }
- public ChecarRank(killerid)
- {
- switch(Info[killerid][Matou])
- {
- case 50://Balas
- {
- SendClientMessage(killerid,0x3F1583AA,"{979C9C}[Info >>] {E80000}Você ganhou titulo de: {E88E00}Assasino Oportuno");
- GivePlayerMoney(killerid, 10000);
- Info[killerid][Titulo] = 1;
- }
- case 100://Vagos
- {
- SendClientMessage(killerid,0x3F1583AA,"{979C9C}[Info >>] {E80000}Você ganhou titulo de: {E88E00}Assasino Profissional");
- GivePlayerMoney(killerid, 30000);
- Info[killerid][Titulo] = 2;
- }
- case 300://Groove
- {
- SendClientMessage(killerid,0x3F1583AA,"{979C9C}[Info >>] {E80000}Você ganhou titulo de: {E88E00}Matador de Aluguel");
- GivePlayerMoney(killerid, 90000);
- Info[killerid][Titulo] = 3;
- }
- case 600://Aztecas
- {
- SendClientMessage(killerid,0x3F1583AA,"{979C9C}[Info >>] {E80000}Você ganhou titulo de: {E88E00}Inspirante a Chefão");
- GivePlayerMoney(killerid, 200000);
- Info[killerid][Titulo] = 4;
- }
- case 1100://Aztecas
- {
- SendClientMessage(killerid,0x3F1583AA,"{979C9C}[Info >>] {E80000}Você ganhou titulo de: {E88E00}Vice-Chefão");
- GivePlayerMoney(killerid, 500000);
- Info[killerid][Titulo] = 6;
- }
- case 1500://Aztecas
- {
- format(String, sizeof(String), "{979C9C}[Info >>] {E80000}Cuidado! {979C9C}%s {E80000}já matou tanta gente, que virou {E88E00}chefão dos assasinos!(2000+)", PlayerName(killerid));
- SendClientMessage(killerid,0x3F1583AA,"{979C9C}[Info >>] {E80000}Você ganhou titulo de: {E88E00}Chefão");
- GivePlayerMoney(killerid, 1000000);
- Info[killerid][Titulo] = 7;
- }
- }
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- switch(dialogid)
- {
- case REGISTRO:
- {
- if(response)
- {
- if(!strlen(inputtext))
- {
- new Nome[MAX_PLAYER_NAME];
- GetPlayerName(playerid, Nome, sizeof(Nome));
- format(String, sizeof(String), "{F6D600}Brasil {95F600}Mata{F6F6F6}-{0080F6}Mata {F6F6F6}[2012]\n{F60000}Senha invalida, digite uma senha válida\n{737373}Status da Conta:{F60000} Não Registrada\n{00F600}Digite Sua Senha Para Registrar", Nome);
- ShowPlayerDialog(playerid, REGISTRO, DIALOG_STYLE_INPUT, "Registro", String, "Registrar", "Cancelar");
- return 1;
- }
- new Nome[MAX_PLAYER_NAME];
- GetPlayerName(playerid, Nome, sizeof(Nome));
- format(String, sizeof(String), CONTAS, Nome);
- dini_Create(String);
- dini_Set(String,"Senha",inputtext);
- dini_IntSet(String,"Dinheiro",0);
- dini_IntSet(String,"Level",0);
- dini_IntSet(String,"Matou",0);
- dini_IntSet(String,"Morreu",0);
- dini_IntSet(String,"Admin",0);
- dini_IntSet(String,"Titulo",0);
- ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "Login", "{F6D600}Brasil {95F600}Mata{F6F6F6}-{0080F6}Mata {F6F6F6}[2012]\n{737373}Status da Conta:{9CF600} Registrada\n{00F600}Digite Sua Senha Para Logar", "Logar", "Cancelar");
- return 1;
- }
- else
- {
- SendClientMessage(playerid, 0xFF0000AA, "Você Foi Kickado Porque Não Quis Se Registrar!!");
- Kick(playerid);
- return 1;
- }
- }
- case LOGIN:
- {
- if(response)
- {
- if(!strlen(inputtext))
- {
- format(String, sizeof(String), "{F6D600}Brasil {95F600}Mata{F6F6F6}-{0080F6}Mata {F6F6F6}[2012]\n{BFD100}%s:{F60000} sua senha está incorreta!\n{737373}Status da Conta:{9CF600}{F60000} Registrada\n{00F600}Digite Sua Senha Para Logar", PlayerName(playerid));
- ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "Login", String, "Logar", "Cancelar");
- return 1;
- }
- format(String, sizeof(String), CONTAS, PlayerName(playerid));
- if(!strcmp(inputtext,dini_Get(String,"Senha"),false))
- {
- SetarPlayer(playerid);
- PularLinhas(50, playerid);
- SendClientMessage(playerid,0x3F1583AA,"{F6F6F6}[Info >>]{979C9C}Você acaba de se logar, {E88E00}Bom Jogo!");
- return 1;
- }
- else
- {
- format(String, sizeof(String), "{F6D600}Brasil {95F600}Mata{F6F6F6}-{0080F6}Mata {F6F6F6}[2012]\n{F60000}Senha incorreta digite-a novamente\n{737373}Status da Conta:{9CF600} Registrada\n{00F600}Digite Sua Senha Para Logar");
- ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "Login", String, "Logar", "Cancelar");
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, 0xFF0000AA, "Você não quis se logar, por este motivo será Kickado");
- Kick(playerid);
- return 1;
- }
- }
- }
- return 1;
- }
- public PularLinhas(quantidade, playerid)
- {
- for (new linha = 0; linha != quantidade; ++linha)
- {
- SendClientMessage(playerid,0x3F1583AA," ");
- }
- return 1;
- }
- public MensagemAdmins(COR, const Mensagem[])
- {
- for(new i = 0; i < GetMaxPlayers(); i++)
- {
- if(IsPlayerConnected(i))
- {
- if (Info[i][Admin] > 0)
- {
- SendClientMessage(i, COR, Mensagem);
- }
- }
- }
- return true;
- }
- stock ArmasBasicas(playerid)
- {
- GivePlayerWeapon(playerid, 4, 1);
- GivePlayerWeapon(playerid, 24, 150);
- GivePlayerWeapon(playerid, 32, 200);
- }
- stock Logs(LogName[], Text[])
- {
- new LogFile[64], File:Log, Write_Text[128], Hoje[6];
- format(LogFile, sizeof(LogFile), "%s%s.txt", LOGS, LogName);
- if(fexist(LogFile)) Log = fopen(LogFile, io_append);
- else Log = fopen(LogFile, io_write);
- getdate(Hoje[2], Hoje[1], Hoje[0]);
- gettime(Hoje[3], Hoje[4], Hoje[5]);
- format(Write_Text, sizeof(Write_Text), "[%02d/%02d/%04d - %02d:%02d:%02d] %s\r\n", Hoje[0], Hoje[1], Hoje[2], Hoje[3], Hoje[4], Hoje[5], Text);
- fwrite(Log, Write_Text);
- fclose(Log);
- }
- stock Kickar(idplayer, motivo[])
- {
- Logs("Kicks", motivo);
- Kick(idplayer);
- }
- stock Banir(idplayer, idadmin, motivo[])
- {
- new StringData[50], StringHora[50];
- format(String, sizeof(String), BANIDOS, PlayerName(idplayer));
- getdate(Ano, Mes, Dia);
- format(StringData, sizeof(StringData), " %d/%d/%d", Ano, Mes, Dia);
- gettime(Hora, Minuto, Segundo);
- format(StringHora, sizeof(StringHora), " %d:%d:%d", Hora, Minuto, Segundo);
- dini_Create(String);
- dini_Set(String,"Admin",PlayerName(idadmin));
- dini_Set(String,"Data",StringData);
- dini_Set(String,"Hora",StringHora);
- dini_Set(String,"Motivo",motivo);
- Logs("Bans", motivo);
- Kick(idplayer);
- }
- stock DarSkils(playerid)
- {
- SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 999);
- SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL_SILENCED, 999);
- SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, 999);
- SetPlayerSkillLevel(playerid, WEAPONSKILL_SHOTGUN, 999);
- SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 999);
- SetPlayerSkillLevel(playerid, WEAPONSKILL_SPAS12_SHOTGUN, 999);
- SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 999);
- SetPlayerSkillLevel(playerid, WEAPONSKILL_MP5, 999);
- SetPlayerSkillLevel(playerid, WEAPONSKILL_AK47, 999);
- SetPlayerSkillLevel(playerid, WEAPONSKILL_M4, 999);
- SetPlayerSkillLevel(playerid, WEAPONSKILL_SNIPERRIFLE, 999);
- }
- stock NomeTimeID(playerid)
- {
- if(Info[playerid][Time] == 0)
- {
- String = "Ballas";
- }
- if(Info[playerid][Time] == 1)
- {
- String = "Vagos";
- }
- if(Info[playerid][Time] == 2)
- {
- String = "Groove";
- }
- if(Info[playerid][Time] == 3)
- {
- String = "Aztecas";
- }
- return String;
- }
- stock NomeTime(ID)
- {
- switch(ID)
- {
- case 0://Balas
- {
- String = "Ballas";
- }
- case 1://Vagos
- {
- String = "Vagos";
- }
- case 2://Groove
- {
- String = "Groove";
- }
- case 3://Aztecas
- {
- String = "Aztecas";
- }
- }
- return String;
- }
- stock Cameras(playerid)
- {
- SetPlayerPos(playerid, 1968.5687,1343.2820,10.8203);
- SetPlayerCameraPos(playerid, 1964.5570,1342.8541,12.2578);
- SetPlayerCameraLookAt(playerid, 1968.5687,1343.2820,10.8203);
- SetPlayerFacingAngle(playerid, 90.0);
- }
- stock SalvarPlayer(playerid)
- {
- format(String, sizeof(String), CONTAS, PlayerName(playerid));
- dini_IntSet(String,"Dinheiro", GetPlayerMoney(playerid));
- dini_IntSet(String,"Level", Info[playerid][Level]);
- dini_IntSet(String,"Matou", Info[playerid][Matou]);
- dini_IntSet(String,"Morreu",Info[playerid][Morreu]);
- dini_IntSet(String,"Admin", Info[playerid][Admin]);
- dini_IntSet(String,"Titulo", Info[playerid][Titulo]);
- return 1;
- }
- stock SetarPlayer(playerid)
- {
- format(String, sizeof(String), CONTAS, PlayerName(playerid));
- GivePlayerMoney(playerid, dini_Int(String,"Dinheiro"));
- Info[playerid][Level] = dini_Int(String, "Level");
- Info[playerid][Matou] = dini_Int(String, "Matou");
- Info[playerid][Morreu] = dini_Int(String, "Morreu");
- Info[playerid][Admin] = dini_Int(String,"Admin");
- Info[playerid][Titulo] = dini_Int(String,"Titulo");
- return 1;
- }
- stock PlayerName(playerid)
- {
- new Nome[MAX_PLAYER_NAME];
- GetPlayerName(playerid, Nome, sizeof(Nome));
- return Nome;
- }
- stock MostrarCreditos(tipo, playerid)
- {
- new s1[150],s2[150],s3[150],s4[150],s5[150];
- //[Scripters]
- format(s1, sizeof(s1), "{979C9C}Scripter Principal: {0072F6}%s", ScripterGM);
- format(s2, sizeof(s2), "{979C9C}Scripter Secundario: {0072F6}%s", Scripter2GM);
- format(s3, sizeof(s3), "{979C9C}Scripter Auxiliar: {0072F6}%s", Scripter3GM);
- //[Mappers]
- format(s4, sizeof(s4), "{979C9C}Mapper Primario: {0072F6}%s", MapperGM);
- format(s5, sizeof(s5), "{979C9C}Admin Responsavel: {0072F6}%s", ResponsavelGM);
- if(tipo == 1)//dialogo
- {
- format(String, sizeof(String), "{A5ACA8}Scripter Principal: {005EA8}%s\n{A5ACA8}Scripter Secundario: {005EA8}%s\n{A5ACA8}Scripter Auxiliar: {005EA8}%s\n{A5ACA8}Mapper Primario: {005EA8}%s\n{A5ACA8}Admin Responsavel: {005EA8}%s\n", ScripterGM, Scripter2GM, Scripter3GM, MapperGM, ResponsavelGM);
- ShowPlayerDialog(playerid, CREDITOS, DIALOG_STYLE_INPUT, "{8B8C8E}Brasil MATA-MATA {A500A8}[2012] - Creditos", String, "Sair", "Sair");
- }
- else if(tipo == 2)//Mensagem
- {
- SendClientMessage(playerid,0x3F1583AA,s1);
- SendClientMessage(playerid,0x3F1583AA,s2);
- SendClientMessage(playerid,0x3F1583AA,s3);
- SendClientMessage(playerid,0x3F1583AA,s4);
- SendClientMessage(playerid,0x3F1583AA,s5);
- }
- }
- CMD:ajudaadmin(playerid, params[])
- {
- if(Info[playerid][Admin] == 0) return SendClientMessage(playerid,-1, ADMININVALIDO);
- SendClientMessage(playerid,-1,"{000000}=======================================================");
- SendClientMessage(playerid,-1,"{49494C}---------------{C5F600}Comandos administrativos{49494C}----------------");
- SendClientMessage(playerid,-1,"{A9ABE3}/setvida - /setcolete - /a - /dardinheiro - /setdinheiro - /setadmin");
- SendClientMessage(playerid,-1,"{A9ABE3}/ban");
- SendClientMessage(playerid,-1,"{000000}=======================================================");
- return 1;
- }
- CMD:ajuda(playerid, params[])
- {
- SendClientMessage(playerid,-1,"{000000}=======================================================");
- SendClientMessage(playerid,-1,"{49494C}---------------{C5F600} Comandos Para Players {49494C}----------------");
- SendClientMessage(playerid,-1,"{A9ABE3}/admins - ");
- SendClientMessage(playerid,-1,"{000000}=======================================================");
- return 1;
- }
- CMD:setvida(playerid, params[])
- {
- new id,vida;
- if(Info[playerid][Admin] == 0) return SendClientMessage(playerid,-1, ADMININVALIDO);
- if(sscanf(params,"ud",id,vida)) return SendClientMessage(playerid,-1,"Use /SetVida [ID/Nome][Quantia]");
- SetPlayerHealth(id,vida);
- format(String, sizeof(String), "{F60000}[Info >>] {5F6264}O Administrador {86F600}%s {5F6264}setou sua vida para {86F600}%d!", PlayerName(playerid), vida);
- SendClientMessage(id,-1,String);
- format(String, sizeof(String), "{F60000}[Info >>] {5F6264}Você setou a vida de {86F600}%s, {5F6264}para {86F600}%d!", PlayerName(id), vida);
- SendClientMessage(playerid,-1,String);
- return 1;
- }
- CMD:admins(playerid, params[])
- {
- foreach (Player, i)
- {
- if(Info[i][Admin] >= 1)
- {
- SendClientMessage(playerid,-1,"{F60000}[Info >>] {86F600}Admins Onlines:");
- format(String, sizeof(String), "{5F6264}Admin {86F600}%s {5F6264}- Nivel {86F600}%d", PlayerName(i), Info[i][Admin]);
- SendClientMessage(playerid,-1,String);
- }
- }
- return 1;
- }
- CMD:setcolete(playerid, params[])
- {
- new id,colete;
- if(Info[playerid][Admin] == 0) return SendClientMessage(playerid,-1, ADMININVALIDO);
- if(sscanf(params,"ud",id,colete)) return SendClientMessage(playerid,-1,"Use /SetColete [ID/Nome][Quantia]");
- SetPlayerArmour(id,colete);
- format(String, sizeof(String), "{F60000}[Info >>] {5F6264}O Administrador {86F600}%s {5F6264}setou seu colete para {86F600}%d!", PlayerName(playerid), colete);
- SendClientMessage(id,-1,String);
- format(String, sizeof(String), "{F60000}[Info >>] {5F6264}Você setou o colete de {86F600}%s {5F6264}para {86F600}%d!", PlayerName(id), colete);
- SendClientMessage(playerid,-1,String);
- return 1;
- }
- CMD:dardinheiro(playerid, params[])
- {
- new id,dinheiro;
- if(Info[playerid][Admin] == 0) return SendClientMessage(playerid,-1, ADMININVALIDO);
- if(sscanf(params,"ud",id,dinheiro)) return SendClientMessage(playerid,-1,"Use /DarDinheiro [ID/Nome][Quantia]");
- format(String, sizeof(String), "{F60000}[Info >>] {5F6264}O Administrador {86F600}%s {5F6264}deu {86F600}%d {5F6264} de dinheiro para você!", PlayerName(playerid), dinheiro);
- SendClientMessage(id,-1,String);
- format(String, sizeof(String), "{F60000}[Info >>] {5F6264}Você deu para {86F600}%s ,%d {5F6264}de dinheiro!", PlayerName(id), dinheiro);
- SendClientMessage(playerid,-1,String);
- GivePlayerMoney(id ,dinheiro);
- return 1;
- }
- CMD:setdinheiro(playerid, params[])
- {
- new id,dinheiro;
- if(Info[playerid][Admin] == 0) return SendClientMessage(playerid,-1, ADMININVALIDO);
- if(sscanf(params,"ud",id,dinheiro)) return SendClientMessage(playerid,-1,"Use /SetDinheiro [ID/Nome][Quantia]");
- format(String, sizeof(String), "{F60000}[Info >>] {5F6264}O Administrador {86F600}%s {5F6264}setou {86F600}%d {5F6264} de dinheiro para você!", PlayerName(playerid), dinheiro);
- SendClientMessage(id,-1,String);
- format(String, sizeof(String), "{F60000}[Info >>] {5F6264}Você setou para {86F600}%s ,%d {5F6264}de dinheiro!", PlayerName(id), dinheiro);
- SendClientMessage(playerid,-1,String);
- ResetPlayerMoney(id);
- GivePlayerMoney(id ,dinheiro);
- return 1;
- }
- CMD:setadmin(playerid, params[])
- {
- new id,nivel;
- if(Info[playerid][Admin] <= 5) return SendClientMessage(playerid,-1, ADMININVALIDO);
- if(sscanf(params,"ud",id,nivel)) return SendClientMessage(playerid,-1,"Use /SetAdmin [ID/Nome][Nivel]");
- format(String, sizeof(String), "{F60000}[Info >>] {5F6264}O Administrador {86F600}%s {5F6264}setou nivel{86F600}%d {5F6264}de admin para você!", PlayerName(playerid), nivel);
- SendClientMessage(id,-1,String);
- format(String, sizeof(String), "{F60000}[Info >>] {5F6264}Você setou para {86F600}%s ,%d {5F6264}de nivel administrativo!", PlayerName(id), nivel);
- SendClientMessage(playerid,-1,String);
- Info[id][Admin] = nivel;
- return 1;
- }
- CMD:pegaradmin(playerid, params[])
- {
- if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1, ADMININVALIDO);
- format(String, sizeof(String), "{F60000}[Info >>] {5F6264}Você recebeu nivel {86F600}6 {5F6264}de administrador");
- SendClientMessage(playerid,-1,String);
- Info[playerid][Admin] = 6;
- return 1;
- }
- CMD:a(playerid, params[])
- {
- new Mensagem;
- if(Info[playerid][Admin] == 0) return SendClientMessage(playerid,-1, ADMININVALIDO);
- if(sscanf(params, "s[128]",Mensagem)) return SendClientMessage(playerid, -1,"Use: /a [Texto]");
- format(String, sizeof(String),"%s{2641FE} [Level: {33FF00}%d{2641FE}] -{33FF00} %s",PlayerName(playerid), Info[playerid][Admin], Mensagem);
- MensagemAdmins(0x2641FEAA, String);
- return 1;
- }
- CMD:ban(playerid, params[])
- {
- new id, motivo[300];
- if(Info[playerid][Admin] == 0) return SendClientMessage(playerid,-1, ADMININVALIDO);
- if(sscanf(params,"us",id,motivo)) return SendClientMessage(playerid,-1,"Use /Ban [ID/Nome] [Motivo]");
- format(String, sizeof(String), "{F60000}[Info >>] {5F6264}O Administrador {86F600}%s {5F6264}baniu você, Motivo: {86F600}%s!", PlayerName(playerid), motivo);
- SendClientMessage(id,-1,String);
- format(String, sizeof(String), "{F60000}[Info >>] {5F6264}Você baniu {86F600}%s!", PlayerName(id));
- SendClientMessage(playerid,-1,String);
- Banir(id, playerid, motivo);
- return 1;
- }
- CMD:kick(playerid, params[])
- {
- new id, motivo[300];
- if(Info[playerid][Admin] == 0) return SendClientMessage(playerid,-1, ADMININVALIDO);
- if(sscanf(params,"us",id,motivo)) return SendClientMessage(playerid,-1,"Use /Kick [ID/Nome] [Motivo]");
- format(String, sizeof(String), "{F60000}[Info >>] {5F6264}O Administrador {86F600}%s {5F6264}kick você, Motivo: {86F600}%s!", PlayerName(playerid), motivo);
- SendClientMessage(id,-1,String);
- format(String, sizeof(String), "{F60000}[Info >>] {5F6264}Você kick {86F600}%s!", PlayerName(id));
- SendClientMessage(playerid,-1,String);
- Kickar(id, motivo);
- return 1;
- }
- CMD:irguuh(playerid, params[])
- {
- SetPlayerPos(playerid,-2147.60009766,-753.20001221,33.79999924);
- return 1;
- }
- //Banir(idplayer, idadmin, motivo[])-2147.60009766,-753.20001221,33.79999924
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement