Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Includes
- #include <a_samp>
- //================== New / Static =================
- static gTeam[MAX_PLAYERS]; // Gangs !
- new Text:topblack, Text:bottomblack;
- new BallasTotal[MAX_PLAYERS], VagosTotal[MAX_PLAYERS], GroveTotal[MAX_PLAYERS], AztecasTotal[MAX_PLAYERS];
- new BallasOwna[MAX_PLAYERS], VagosOwna[MAX_PLAYERS], GroveOwna[MAX_PLAYERS], AztecasOwna[MAX_PLAYERS];
- new BallasFail[MAX_PLAYERS], VagosFail[MAX_PLAYERS], GroveFail[MAX_PLAYERS], AztecasFail[MAX_PLAYERS];
- // Defines
- #define Aztecas 1 // Gang Número 1 ( Aztecas )
- #define Grove 2 // Gang Número 2 ( Grove )
- #define Vagos 3 // Gang Número 3 ( Vagos )
- #define Ballas 4 // Gang Número 4 ( Ballas )
- #define CorAztecas 0x2641FEC8 // Gang Cor
- #define CorBallas 0x9900FFC8 // Gang Cor
- #define CorGrove 0x00D900C8 // Gang Cor
- #define CorVagos 0xFFC801C8 // Gang Cor
- // =========================================
- main()
- { // Créditos
- print("\n-----------------------------------------------");
- print(" >>>> GangWar Base Criado Por: Jonathan Feitosa <<<<");
- print("-----------------------------------------------\n");
- }
- // =========================================================
- public OnGameModeInit()
- {
- SetGameModeText("JFS GangWar Base");
- DisableInteriorEnterExits(); // Desativar Todos os Interiores Do Samp.
- Create3DTextLabel("Aperte 'F' Para Equipar", CorAztecas, 2210.7656,-1148.6774,25.7500, 60, 0); // Mensagem Voadora
- Create3DTextLabel("Aperte 'F' Para Equipar", CorBallas, 1152.6373,-1174.8339,32.0275, 60, 0); // Mensagem Voadora
- Create3DTextLabel("Aperte 'F' Para Equipar", CorVagos, 2755.6375,-1982.5222,13.5498, 60, 0); // Mensagem Voadora
- Create3DTextLabel("Aperte 'F' Para Equipar", CorGrove, 2513.3293,-1679.9669,13.4664, 60, 0); // Mensagem Voadora
- AddStaticPickup(356,23, 2513.3293,-1679.9669,13.4664); // Pickup Grove
- AddStaticPickup(356,23, 2755.6375,-1982.5222,13.5498); // Pickup Vagos
- AddStaticPickup(356,23, 2210.7656,-1148.6774,25.7500); // Pickup Aztecas
- AddStaticPickup(356,23,1152.5374,-1174.7839,32.0275); //ballas
- UsePlayerPedAnims(); // Andar Quen meo CJ.
- // Skins De Cada Org Abaixo
- // =========================== Grove ======================
- AddPlayerClass(105,2531.0586,-1666.2322,15.1678,183.9649,0,0,0,0,0,0); // [ 0 ]
- AddPlayerClass(106,2531.0586,-1666.2322,15.1678,183.9649,0,0,0,0,0,0); // [ 1 ]
- AddPlayerClass(107,2531.0586,-1666.2322,15.1678,183.9649,0,0,0,0,0,0); // [ 2 ]
- // =========================== Ballas ======================
- AddPlayerClass(102,1152.6373,-1174.8339,32.0275,183.9649,0,0,0,0,0,0); // [ 3 ]
- AddPlayerClass(103,1152.6373,-1174.8339,32.0275,183.9649,0,0,0,0,0,0); // [ 4 ]
- AddPlayerClass(104,1152.6373,-1174.8339,32.0275,183.9649,0,0,0,0,0,0); // [ 5 ]
- // =========================== Aztecas ======================
- AddPlayerClass(114,2232.2813,-1158.4985,29.7969,0.3858,0,0,0,0,0,0); // [ 6 ]
- AddPlayerClass(115,2232.2813,-1158.4985,29.7969,0.3858,0,0,0,0,0,0); // [ 7 ]
- AddPlayerClass(116,2232.2813,-1158.4985,29.7969,0.3858,0,0,0,0,0,0); // [ 8 ]
- // =========================== Vagos ======================
- AddPlayerClass(108,2752.3999,-1970.7333,17.3203,178.5558,0,0,0,0,0,0); // [ 9 ]
- AddPlayerClass(109,2752.3999,-1970.7333,17.3203,178.5558,0,0,0,0,0,0); // [ 10 ]
- AddPlayerClass(110,2752.3999,-1970.7333,17.3203,178.5558,0,0,0,0,0,0); // [ 11 ]
- // ========================== Carros Aztecas ================
- AddStaticVehicle(451,2228.0017,-1177.2207,25.5055,89.3594,7,7); // buffalo aztecas [ 0 ]
- AddStaticVehicle(451,2227.8584,-1173.3408,25.5143,89.3396,7,7); // buffalo aztecas [ 1 ]
- AddStaticVehicle(451,2227.5554,-1170.0974,25.5656,90.6006,7,7); // buffalo aztecas [ 2 ]
- AddStaticVehicle(451,2226.8943,-1166.7983,25.5274,88.8920,7,7); // buffalo aztecas [ 3 ]
- AddStaticVehicle(402,2227.1951,-1162.8190,25.5423,92.6049,7,7); // buffalo aztecas [ 4 ]
- AddStaticVehicle(522,2227.5981,-1159.3324,25.3473,92.5241,7,7); // nrg-500 aztecas [ 5 ]
- AddStaticVehicle(522,2227.5171,-1156.1665,25.3729,97.4871,7,7); // nrg-500 aztecas [ 6 ]
- AddStaticVehicle(522,2227.4768,-1152.8451,25.4123,91.8497,7,7); // nrg-500 aztecas [ 7 ]
- AddStaticVehicle(522,2205.9624,-1177.7667,25.2896,90.7015,7,7); // nrg-500 aztecas [ 8 ]
- AddStaticVehicle(521,2206.3523,-1172.2577,25.2917,89.1491,7,7); // frcr-900 [ 9 ]
- AddStaticVehicle(521,2205.6428,-1169.7382,25.3014,89.1121,7,7); // frcr-900 [ 10 ]
- AddStaticVehicle(522,2215.9402,-1158.6952,25.3031,266.0476,7,7); // pcj 600 [ 11 ]
- AddStaticVehicle(522,2215.9128,-1161.2886,25.2992,270.8261,7,7); // pcj 600 [ 12 ]
- AddStaticVehicle(522,2206.4854,-1153.0164,25.2985,264.3456,7,7); // nrg500 [ 13 ]
- AddStaticVehicle(522,2207.3574,-1157.1971,25.2907,267.6484,7,7); // nrg500 [ 14 ]
- AddStaticVehicle(562,2217.3679,-1166.9429,25.4292,272.3709,7,7); // elegy azte... [ 15 ]
- AddStaticVehicle(562,2218.0869,-1170.8639,25.4275,269.2777,7,7); // elegy [ 16 ]
- // ============================== Carros Grove ==================================
- AddStaticVehicle(451,2507.2917,-1694.9517,13.3310,358.7065,16,16); // car buffalo grove [ 17 ]
- AddStaticVehicle(451,2503.5190,-1695.2854,13.1647,352.8430,16,16); // bf-400 grove [ 18 ]
- AddStaticVehicle(451,2494.4307,-1681.0906,13.1290,3.4112,16,16); // car buffalo grove [ 19 ]
- AddStaticVehicle(402,2489.4109,-1680.8353,13.1221,0.5461,16,16); // car buffalo grove [ 20 ]
- AddStaticVehicle(402,2485.2766,-1679.7288,13.1672,357.8934,16,16); // car buffalo grove [ 21 ]
- AddStaticVehicle(402,2480.6177,-1679.9082,13.1216,347.7194,16,16); // car buffalo grove [ 22 ]
- AddStaticVehicle(562,2505.8860,-1665.1135,13.0919,110.9995,16,16); // elegy grove [ 23 ]
- AddStaticVehicle(562,2507.0308,-1669.2014,13.0794,101.6334,16,16); // elegy grove [ 24 ]
- AddStaticVehicle(562,2505.3787,-1673.6432,13.0672,67.7658,16,16); // elegy grove [ 25 ]
- AddStaticVehicle(562,2502.6333,-1659.4658,13.0947,140.6635,16,16); // elegy grove [ 26 ]
- AddStaticVehicle(522,2499.7651,-1657.5057,12.9592,326.1129,16,16); // nrg-500 grove [ 27 ]
- AddStaticVehicle(522,2497.8962,-1656.6799,12.9421,331.7852,16,16); // nrg-500 grove [ 28 ]
- AddStaticVehicle(522,2495.7527,-1656.7389,12.9290,338.6786,16,16); // nrg-500 grove [ 29 ]
- AddStaticVehicle(522,2493.8975,-1655.4590,12.9391,347.3511,16,16); // nrg-500 grove [ 30 ]
- AddStaticVehicle(522,2491.3171,-1656.3098,12.9401,357.3483,16,16); // nrg-500 grove [ 31 ]
- AddStaticVehicle(461,2489.4001,-1656.0945,12.9177,0.7199,16,16); // pcj-600 grove [ 32 ]
- AddStaticVehicle(461,2487.8455,-1656.0068,12.9344,3.6682,16,16); // pcj-600 grove [ 33 ]
- AddStaticVehicle(461,2486.4102,-1655.7758,12.9163,354.3053,16,16); // pcj-600 grove [ 34 ]
- AddStaticVehicle(461,2484.2288,-1656.0884,12.9008,355.9345,16,16); // pcj-600 grove [ 35 ]
- // ============================ Carros Vagos ===================================
- AddStaticVehicle(451,2762.6338,-1978.3883,13.5474,359.6876,6,6); // Carro Vagos [ 36 ]
- AddStaticVehicle(451,2762.6763,-1970.5898,13.5455,359.6876,6,6); // Carro Vagos [ 37 ]
- AddStaticVehicle(451,2762.7070,-1965.0404,13.5442,359.6876,6,6); // Carro Vagos [ 38 ]
- AddStaticVehicle(451,2762.7498,-1957.0906,13.5469,359.6876,6,6); // Carro Vagos [ 39 ]
- AddStaticVehicle(451,2758.7971,-1945.8519,13.5509,267.8801,6,6); // Carro Vagos [ 40 ]
- AddStaticVehicle(560,2759.1050,-1941.9249,13.5513,267.8801,6,6); // Carro Vagos [ 41 ]
- AddStaticVehicle(560,2762.2512,-1935.1775,13.5394,0.1694,6,6); // Carro Vagos [ 42 ]
- AddStaticVehicle(560,2762.2163,-1923.7399,13.5394,0.1694,6,6); // Carro Vagos [ 43 ]
- AddStaticVehicle(522,2758.0715,-1916.0160,13.5394,177.3493,6,6); // Moto Vagos [ 44 ]
- AddStaticVehicle(522,2754.5859,-1916.3378,13.5469,179.2293,6,6); // Moto Vagos [ 45 ]
- AddStaticVehicle(522,2754.5054,-1922.3063,13.5469,179.2293,6,6); // Moto Vagos [ 46 ]
- AddStaticVehicle(522,2756.7610,-1922.6951,13.5469,179.2293,6,6); // Moto Vagos [ 47 ]
- AddStaticVehicle(522,2758.3906,-1925.5867,13.5434,179.2293,6,6); // Moto Vagos [ 48 ]
- AddStaticVehicle(522,2755.6292,-1925.9069,13.5469,179.2293,6,6); // Moto Vagos [ 49 ]
- AddStaticVehicle(522,2753.1367,-1926.3641,13.5469,179.2293,6,6); // Moto Vagos [ 50 ]
- AddStaticVehicle(521,2753.1318,-1935.3335,13.5394,268.5302,6,6); // Moto Vagos [ 51 ]
- AddStaticVehicle(521,2753.4460,-1938.4803,13.5394,268.2168,6,6); // Moto Vagos [ 52 ]
- AddStaticVehicle(521,2753.7607,-1970.0848,13.5447,266.9402,6,6); // Moto Vagos [ 53 ]
- AddStaticVehicle(521,2754.3257,-1967.3141,13.5454,266.9402,6,6); // Moto Vagos [ 54 ]
- AddStaticVehicle(521,2754.4883,-1963.8829,13.5456,266.9402,6,6); // Moto Vagos [ 55 ]
- AddStaticVehicle(521,2753.3354,-1953.1685,13.5469,270.9901,6,6); // Moto Vagos [ 56 ]
- // =========================== Carros Ballas ===================================
- AddStaticVehicleEx(559,1101.3577,-1220.4922,17.4739,269.5554,149,149,6000000); // carro ballas 1 [ 57 ]
- AddStaticVehicleEx(480,1094.1334,-1220.4518,17.5967,270.1607,149,149,6000000); // carro ballas 2 [ 58 ]
- AddStaticVehicleEx(424,1085.9851,-1201.1321,17.6565,274.8244,149,149,6000000); // carro ballas 3 [ 59 ]
- AddStaticVehicleEx(482,1086.1566,-1196.0944,18.1987,271.4691,149,149,6000000); // carro ballas 4 [ 60 ]
- AddStaticVehicleEx(540,1105.1110,-1194.0067,17.9888,172.0282,149,149,6000000); // carro ballas 5 [ 61 ]
- AddStaticVehicleEx(567,1109.4108,-1193.4424,17.9686,178.1860,149,149,6000000); // carro ballas 6 [ 62 ]
- AddStaticVehicleEx(560,1114.7338,-1192.9241,17.7806,180.8726,149,149,6000000); // carro ballas 7 [ 63 ]
- AddStaticVehicleEx(522,1097.4205,-1183.5887,17.8993,173.9741,149,149,6000000); // carro ballas 8 [ 64 ]
- AddStaticVehicleEx(487,1096.0417,-1238.2765,16.0030,94.3000,149,149,6000000); // heli ballas [ 65 ]
- AddStaticVehicleEx(522,1094.3354,-1183.4917,17.9236,173.5424,149,149,6000000); // moto ballas 1 [ 66 ]
- AddStaticVehicleEx(536,1109.2062,-1220.4305,17.5422,268.7088,149,149,6000000); // moto ballas 2 [ 67 ]
- // ============================= TextDraw Preto Entrada ========================
- topblack = TextDrawCreate(1.000000,-45.000000,"__");
- bottomblack = TextDrawCreate(-2.000000,371.000000,"__");
- TextDrawUseBox(topblack,1);
- TextDrawBoxColor(topblack,0x000000ff);
- TextDrawTextSize(topblack,655.000000,80.000000);
- TextDrawUseBox(bottomblack,1);
- TextDrawBoxColor(bottomblack,0x000000ff);
- TextDrawTextSize(bottomblack,840.000000,240.000000);
- TextDrawAlignment(topblack,0);
- TextDrawAlignment(bottomblack,0);
- TextDrawBackgroundColor(topblack,0x000000ff);
- TextDrawBackgroundColor(bottomblack,0x000000ff);
- TextDrawFont(topblack,3);
- TextDrawLetterSize(topblack,1.000000,14.000000);
- TextDrawFont(bottomblack,3);
- TextDrawLetterSize(bottomblack,1.000000,24.000000);
- TextDrawColor(topblack,0xffffffff);
- TextDrawColor(bottomblack,0xffffffff);
- TextDrawSetOutline(topblack,1);
- TextDrawSetOutline(bottomblack,1);
- TextDrawSetProportional(topblack,1);
- TextDrawSetProportional(bottomblack,1);
- TextDrawSetShadow(topblack,1);
- TextDrawSetShadow(bottomblack,1);
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid) // Onde Irá ir Para Escolher os Bonecos
- {
- if((classid >= 0) && (classid <= 2)) // Ao Ficar em cima das Skins 0, 1 , 2 Aparecerá
- {
- gTeam[playerid] = Grove;
- GameTextForPlayer(playerid,"~n~~n~~n~~g~Grove Street",4000,5);
- }
- if((classid >= 3) && (classid <= 5)) // Ao Ficar em cima das Skins 3, 4 , 5 Aparecerá
- {
- gTeam[playerid] = Ballas;
- GameTextForPlayer(playerid,"~n~~n~~n~~r~Ballas",4000,5);
- }
- if((classid >= 6) && (classid <= 8)) // Ao Ficar em cima das Skins 6, 7 , 8 Aparecerá
- {
- gTeam[playerid] = Aztecas;
- GameTextForPlayer(playerid,"~n~~n~~n~~b~Los Aztecas",4000,5);
- }
- if((classid >= 9) && (classid <= 11)) // Ao Ficar em cima das Skins 9, 10 , 11 Aparecerá
- {
- gTeam[playerid] = Vagos;
- GameTextForPlayer(playerid,"~n~~n~~n~~y~Los Santos Vagos",4000,5);
- }
- SetPlayerPos(playerid,1025.5751,-2140.7637,39.2032); // PLAYER
- SetPlayerCameraPos(playerid,1019.7552,-2141.0266,37.7274); // CAMERA
- SetPlayerCameraLookAt(playerid,1021.9974,-2140.9907,38.3012); // CAMERA
- SetPlayerFacingAngle(playerid, 82.6125); // ANGULO
- ApplyAnimation(playerid, "PARK", "Tai_Chi_Loop", 4.0, 1, 0, 0, 0, 0); // Animação No Inicio =D
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- GameTextForPlayer(playerid, "~n~~n~~n~~n~~g~JFS ~b~GangWar ~y~Base ~r~v1.0", 5000, 5);
- TextDrawShowForPlayer(playerid, topblack);
- TextDrawShowForPlayer(playerid, bottomblack);
- PlayerPlaySound(playerid,1097, 0.0, 0.0, 0.0);
- new string[40];
- new pName[25];
- GetPlayerName(playerid, pName, sizeof(pName));
- format(string, sizeof(string), "%s Entrou no Servidor!", pName); // mensagem se alguem entrar
- SendClientMessageToAll(0xAAAAAAAA, string); // COR da Mensagem
- SendClientMessage(playerid, CorAztecas,"=============== Créditos Servidor ===============");
- SendClientMessage(playerid, -1,"Criado Totalmente Por: Jonathan Feitosa");
- SendClientMessage(playerid, -1,"Sistema de Registro Base Por : TiagoPS");
- return true;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- new pName[MAX_PLAYER_NAME];
- new string[40];
- GetPlayerName(playerid, pName, sizeof(pName));
- format(string, sizeof(string), "%s Saiu do Servidor! ", pName);
- SendClientMessageToAll(0xAAAAAAAA, string);
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- PlayerPlaySound(playerid,1098, 0.0, 0.0, 0.0);
- TextDrawHideForPlayer(playerid, topblack);
- TextDrawHideForPlayer(playerid, bottomblack);
- if(gTeam[playerid] == Grove)
- {
- SetPlayerColor(playerid, CorGrove);
- SetPlayerPos(playerid, 2531.0586,-1666.2322,15.1678);
- SetPlayerInterior(playerid, 0);
- }
- if(gTeam[playerid] == Ballas)
- {
- SetPlayerColor(playerid, CorBallas);
- SetPlayerPos(playerid, 1153.6738,-1181.1735,32.8187);
- SetPlayerInterior(playerid, 0);
- }
- if(gTeam[playerid] == Aztecas)
- {
- SetPlayerColor(playerid, CorAztecas);
- SetPlayerPos(playerid, 2232.2813,-1158.4985,29.7969);
- SetPlayerInterior(playerid, 0);
- }
- if(gTeam[playerid] == Vagos)
- {
- SetPlayerColor(playerid, CorVagos);
- SetPlayerPos(playerid, 2752.3999,-1970.7333,17.3203);
- SetPlayerInterior(playerid, 0);
- }
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason) // MORRENDO
- {
- new pname[128], string[128];
- if(playerid != INVALID_PLAYER_ID) SetPlayerScore(playerid, GetPlayerScore(playerid) - 1); // Ao Morrer = -1
- if(killerid != INVALID_PLAYER_ID) SetPlayerScore(killerid, GetPlayerScore(killerid) + 1); // ALMENTADO 1 DE LEVEL AO MATAR 1
- SendDeathMessage(killerid, playerid, reason);
- if(gTeam[playerid] == Grove)
- {
- GroveTotal[playerid] --; // TOTAL
- GroveFail[playerid] ++; // MORTES
- GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
- format(string, sizeof(string), "%s Morreu é Conquistou -1 Ponto Para os Grove.", pname);
- SendClientMessageToAll(CorGrove, string);
- }
- if(gTeam[playerid] == Ballas)
- {
- BallasTotal[playerid] --; // TOTAL
- BallasFail[playerid] ++; // MORTES
- GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
- format(string, sizeof(string), "%s Morreu é Conquistou -1 Ponto Para os Ballas.", pname);
- SendClientMessageToAll(CorBallas, string);
- }
- if(gTeam[playerid] == Aztecas)
- {
- AztecasTotal[playerid] --; // TOTAL
- AztecasFail[playerid] ++; // MORTES
- GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
- format(string, sizeof(string), "%s Morreu é Conquistou -1 Ponto Para os Aztecas.", pname);
- SendClientMessageToAll(CorAztecas, string);
- }
- if(gTeam[playerid] == Vagos)
- {
- VagosTotal[playerid] --; // TOTAL
- VagosFail[playerid] ++; // MORTES
- GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
- format(string, sizeof(string), "%s Morreu é Conquistou -1 Ponto Para os Vagos.", pname);
- SendClientMessageToAll(CorVagos, string);
- }
- if(gTeam[killerid] == Grove)
- {
- GroveTotal[playerid] ++; // TOTAL
- GroveOwna[playerid] ++; // Matou Owned
- GetPlayerName(killerid, pname, MAX_PLAYER_NAME);
- format(string, sizeof(string), "%s Matou é Conquistou 1 Ponto Para os Grove.", pname);
- SendClientMessageToAll(CorGrove, string);
- }
- if(gTeam[killerid] == Ballas)
- {
- BallasTotal[playerid] ++; // TOTAL
- BallasOwna[playerid] ++; // Matou Owned
- GetPlayerName(killerid, pname, MAX_PLAYER_NAME);
- format(string, sizeof(string), "%s Matou é Conquistou 1 Ponto Para os Ballas.", pname);
- SendClientMessageToAll(CorBallas, string);
- }
- if(gTeam[killerid] == Aztecas)
- {
- AztecasTotal[playerid] ++; // TOTAL
- AztecasOwna[playerid] ++; // Matou Owned
- GetPlayerName(killerid, pname, MAX_PLAYER_NAME);
- format(string, sizeof(string), "%s Matou é Conquistou 1 Ponto Para os Aztecas.", pname);
- SendClientMessageToAll(CorAztecas, string);
- }
- if(gTeam[killerid] == Vagos)
- {
- VagosTotal[playerid] ++; // TOTAL
- VagosOwna[playerid] ++; // Matou Owned
- GetPlayerName(killerid, pname, MAX_PLAYER_NAME);
- format(string, sizeof(string), "%s Matou é Conquistou 1 Ponto Para os Vagos.", pname);
- SendClientMessageToAll(CorVagos, string);
- }
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(strcmp(cmdtext, "/equipargrove", true) == 0)
- {
- if(gTeam[playerid] == Grove)
- {
- if(IsPlayerInRangeOfPoint(playerid, 2.0, 2513.3293,-1679.9669,13.4664))
- {
- Equipamentos(playerid);
- new EquiparG[100];
- strcat(EquiparG,"{7491F6}Você Pegou os Equipamentos da Gang\n");
- strcat(EquiparG,"{00D900}Grove Street\n");
- ShowPlayerDialog(playerid, 3442, DIALOG_STYLE_MSGBOX, "{F60000}EQUIPADO !",EquiparG, "Fechar", "");
- }
- }
- return true;
- }
- if(strcmp(cmdtext, "/equiparballas", true) == 0)
- {
- if(gTeam[playerid] == Ballas)
- {
- if(IsPlayerInRangeOfPoint(playerid, 2.0, 1152.6373,-1174.8339,32.0275))
- {
- Equipamentos(playerid);
- new EquiparG1[100];
- strcat(EquiparG1,"{7491F6}Você Pegou os Equipamentos da Gang\n");
- strcat(EquiparG1,"{9900FF}Ballas\n");
- ShowPlayerDialog(playerid, 3443, DIALOG_STYLE_MSGBOX, "{F60000}EQUIPADO !",EquiparG1, "Fechar", "");
- }
- }
- return true;
- }
- if(strcmp(cmdtext, "/equiparaztecas", true) == 0)
- {
- if(gTeam[playerid] == Aztecas)
- {
- if(IsPlayerInRangeOfPoint(playerid, 2.0, 2210.7656,-1148.6774,25.7500))
- {
- Equipamentos(playerid);
- new EquiparG2[100];
- strcat(EquiparG2,"{7491F6}Você Pegou os Equipamentos da Gang\n");
- strcat(EquiparG2,"{2641FE}Los Aztecas\n");
- ShowPlayerDialog(playerid, 3444, DIALOG_STYLE_MSGBOX, "{F60000}EQUIPADO !",EquiparG2, "Fechar", "");
- }
- }
- return true;
- }
- if(strcmp(cmdtext, "/equiparvagos", true) == 0)
- {
- if(gTeam[playerid] == Vagos)
- {
- if(IsPlayerInRangeOfPoint(playerid, 2.0, 2755.6375,-1982.5222,13.5498))
- {
- Equipamentos(playerid);
- new EquiparG3[100];
- strcat(EquiparG3,"{7491F6}Você Pegou os Equipamentos da Gang\n");
- strcat(EquiparG3,"{FFC801}Los Santos Vagos\n");
- ShowPlayerDialog(playerid, 3445, DIALOG_STYLE_MSGBOX, "{F60000}EQUIPADO !",EquiparG3, "Fechar", "");
- }
- }
- return true;
- }
- if (strcmp(cmdtext, "/kill", true)==0)
- {
- SendClientMessage(playerid,0x0000FFAA,"Você se matou!"); // MENSAGEM
- SetPlayerHealth(playerid, 0); // DANDO SANGUE 0 !
- return 1;
- }
- if (strcmp(cmdtext, "/rank", true)==0)
- {
- new GroveOwna1[150], AztecasOwna1[150], VagosOwna1[148], BallasOwna1[150];
- SendClientMessage(playerid, CorAztecas, "======================= Sistema de Gang Por: Jonathan Feitosa =================");
- format(GroveOwna1, sizeof(GroveOwna1), "A Gang Grove Street {33CCFF}Matou {00D900}%d Pessoas - {33CCFF}Morreu {00D900}%d Vezes. {33CCFF}TOTAL: {00D900}%d", GroveOwna, GroveFail, GroveTotal);
- SendClientMessage(playerid, CorGrove, GroveOwna1);
- SendClientMessage(playerid, CorBallas, " ");
- format(AztecasOwna1, sizeof(AztecasOwna1), "A Gang Los Aztecas {33CCFF}Matou {2641FE}%d Pessoas - {33CCFF}Morreu {2641FE}%d Vezes. {33CCFF}TOTAL: {2641FE}%d", AztecasOwna, AztecasFail, AztecasTotal);
- SendClientMessage(playerid, CorAztecas, AztecasOwna1);
- SendClientMessage(playerid, CorBallas, " ");
- format(VagosOwna1, sizeof(VagosOwna1), "A Gang Los Santos Vagos {33CCFF}Matou {FFC801}%d Pessoas - {33CCFF}Morreu {FFC801}%d Vezes. {33CCFF}TOTAL: {FFC801}%d", VagosOwna, VagosFail, VagosTotal);
- SendClientMessage(playerid, CorVagos, VagosOwna1);
- SendClientMessage(playerid, CorBallas, " ");
- format(BallasOwna1, sizeof(BallasOwna1), "A Gang Ballas {33CCFF}Matou {9900FF}%d Pessoas - {33CCFF}Morreu {9900FF}%d Vezes. {33CCFF}TOTAL: {9900FF}%d", BallasOwna, BallasFail, BallasTotal);
- SendClientMessage(playerid, CorBallas, BallasOwna1);
- return true;
- }
- if (strcmp("/creditos", cmdtext, true, 10) == 0)
- {
- new creditos[300];
- strcat(creditos,"\n");
- strcat(creditos,"{7491F6}Criado Por : Jonathan Feitosa\n"); //MENSAGEM
- strcat(creditos,"{7491F6}Sistema de Registro Base: TiagoPS\n");
- ShowPlayerDialog(playerid,8439, DIALOG_STYLE_MSGBOX, "{F60000}Créditos",creditos, "Fechar", ""); // 1 BOTAO APENAR
- return 1;
- }
- if(strcmp(cmdtext,"/ajuda",true)==0)
- {
- new ajuda[1000];
- strcat(ajuda,"\n");
- strcat(ajuda,"{7491F6}/creditos /rank /kill /status\n");
- strcat(ajuda,"Para Mudar de Gang : Aperta F4 Depois /kill. \n");
- ShowPlayerDialog(playerid,8439, DIALOG_STYLE_MSGBOX, "{F60000}Ajuda",ajuda, "Fechar", "");
- return true;
- }
- return SendClientMessage(playerid, 0xAA3333AA, "[ERRO] - Comando Desconhecido Pelo Servidor"); // Mensagem Ao Errar Algum Comando
- }
- public OnPlayerKeyStateChange(playerid,newkeys,oldkeys)
- {
- if ((newkeys==KEY_SECONDARY_ATTACK)) // Key F / Enter
- {
- OnPlayerCommandText(playerid,"/equipargrove"); // Ao Apertar F irá Funfar isso
- OnPlayerCommandText(playerid,"/equiparballas"); // Ao Apertar F irá Funfar isso
- OnPlayerCommandText(playerid,"/equiparvagos"); // Ao Apertar F irá Funfar isso
- OnPlayerCommandText(playerid,"/equiparaztecas"); // Ao Apertar F irá Funfar isso
- }
- return true;
- }
- // Stock Equipamentos.
- stock Equipamentos(playerid)
- {
- ResetPlayerWeapons(playerid); // reseta armas
- GivePlayerWeapon(playerid, 4, 1); // dar arma/Bala
- GivePlayerWeapon(playerid, 26, 999); // dar arma/Bala
- GivePlayerWeapon(playerid, 24, 999); // dar arma/Bala
- GivePlayerWeapon(playerid, 29, 999); // dar arma/Bala
- GivePlayerWeapon(playerid, 1, 1); // dar arma/Bala
- SetPlayerHealth(playerid, 100); // dar Vida 100
- SetPlayerArmour(playerid, 100); // dar Colete
- }
- // ERROS QUE GERALMENTE ACONTECEM.
- /* =============================================================================
- Erro Loose Idention = Linhas Mal Arrumadas. Vá Puxando Ela, Pro Lado/ Pro Outro é Vá apertando F5 ver se da.
- Nao quer ter mais poblema com ele ? Bote
- #pragma tabsize 0
- Em Baixo das Includes
- =============================================================================
- Erro 27 Erros = Alguma Chave Está Faltando }{. Verifique o Ultimo Code que você mexeu.
- Como Tirar ? Foda-se Não Mando fazer Merda.
- =============================================================================*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement