Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ////////////////////////////////////////////////////////////////////////////////
- #include < a_players >
- #include < streamer >
- #include < sscanf2 >
- #include < a_samp >
- #include < DOF2 >
- #include < zcmd >
- #include < Dini >
- ////////////////////////////////////////////////////////////////////////////////
- #define Floresente 0x03FF35FF
- #define AzulClaro 0x03F2FFFF
- #define RoxoClaro 0x9A03FFFF
- #define Vermelho 0xAA3333AA
- #define Laranja 0xFF7403FF
- #define Amarelo 0xFFFF00FF
- #define Branco 0xFFFFFFAA
- #define Verde 0x33AA33AA
- #define Preto 0x000000FF
- #define Cinza 0x878787FF
- #define White 0xFFFFFFAA
- #define Azul 0x058AFFFF
- #define Rosa 0xFF05CDFF
- #define Roxo 0x7D03FFFF
- ////////////////////////////////////////////////////////////////////////////////
- #pragma dynamic 145000
- ////////////////////////////////////////////////////////////////////////////////
- #define green 0x0AFF0AAA
- #define red 0xFF0000AA
- ////////////////////////////////////////////////////////////////////////////////
- #define LOGIN 1
- ////////////////////////////////////////////////////////////////////////////////
- #define REGISTRO 2
- ////////////////////////////////////////////////////////////////////////////////
- #define CONTAS "Players/%s.ini"
- ////////////////////////////////////////////////////////////////////////////////
- #define PosPremios 1214.8124,-1675.5703,11.7969
- ////////////////////////////////////////////////////////////////////////////////
- #define DIALOG_PREMIOS 2095
- ////////////////////////////////////////////////////////////////////////////////
- #define Aztecas 1
- #define Grove 2
- #define Pobres 3
- #define Novinhas 4
- #define Vadias 5
- #define Ballas 6
- #define Rikinhos 7
- #define Japoneses 8
- #define Mafia 9
- #define Exercito 10
- ////////////////////////////////////////////////////////////////////////////////
- #define Diag1 50
- #define Diag2 51
- #define Diag3 52
- ////////////////////////////////////////////////////////////////////////////////
- #define Dialog_VetGrau 80
- #define Dialog_Ajuda2 81
- ////////////////////////////////////////////////////////////////////////////////
- #define ANIMES 150
- ////////////////////////////////////////////////////////////////////////////////
- new anims[5];
- new strdialog[750];
- ////////////////////////////////////////////////////////////////////////////////
- new VetOn[MAX_PLAYERS];
- ////////////////////////////////////////////////////////////////////////////////
- new Holandes;
- ////////////////////////////////////////////////////////////////////////////////
- new
- IDVeiculo,
- CorVeiculo,
- CorVeiculo2,
- IDCarro[MAX_PLAYERS],
- bool:VeiculoCriado[MAX_PLAYERS],
- Float:p1x,
- Float:p1y,
- Float:p1z,
- Float:SetVPos[3]
- ;
- ////////////////////////////////////////////////////////////////////////////////
- enum pInfo
- {
- Level,
- Matou,
- Morreu,
- Admin,
- Grana,
- Logou,
- Senha
- };
- ////////////////////////////////////////////////////////////////////////////////
- new gTeam[MAX_PLAYERS];
- ////////////////////////////////////////////////////////////////////////////////
- new Text:GoldCat[MAX_PLAYERS];
- ////////////////////////////////////////////////////////////////////////////////
- new Menu: kits;
- new Text: textdraw0;
- new Text: textdraw1;
- new Text: textdraw2;
- new Text: textdraw3;
- new Text: textdraw4;
- new Text: textdraw5;
- ////////////////////////////////////////////////////////////////////////////////
- new tGold[MAX_PLAYERS];
- new Gold[MAX_PLAYERS];
- ////////////////////////////////////////////////////////////////////////////////
- new Text:TextGato;
- new Text:TextGato1;
- new Text:TextGato2;
- new Text:TextGato3;
- new Text:TextGato4;
- ////////////////////////////////////////////////////////////////////////////////
- new Text:TextIntro;
- new Text:TextIntro1;
- new Text:TextIntro2;
- new Text:TextIntro3;
- new Text:TextIntro4;
- ////////////////////////////////////////////////////////////////////////////////
- new Text:Box[MAX_PLAYERS];
- new Text:Ft[MAX_PLAYERS];
- ////////////////////////////////////////////////////////////////////////////////
- new PlayerKills[MAX_PLAYERS] = 0, Dominating[MAX_PLAYERS] = 0;
- ////////////////////////////////////////////////////////////////////////////////
- new PlayerInfo[MAX_PLAYERS][pInfo];
- ////////////////////////////////////////////////////////////////////////////////
- new Wilson;
- ////////////////////////////////////////////////////////////////////////////////
- main()
- {
- print("Brasil Vida Loka Status : Online / Brasil Vida Loka Status : Online / By Wesley");
- }
- ////////////////////////////////////////////////////////////////////////////////
- public OnGameModeInit()
- {
- ////////////////////////////////////////////////////////////////////////////////
- textdraw0 = TextDrawCreate(166,218,"- Combat Shotgun, UZI, Deagle, Granada $1500");
- textdraw1 = TextDrawCreate(166,236,"- Tec9, Shotgun, M4, Deagle, Molotov $1500");
- textdraw2 = TextDrawCreate(166,253,"- Sawn-off Shotgun, UZI, AK-47, 9MM $2500");
- textdraw3 = TextDrawCreate(166,269,"- Combat Shotgun, Tec9, Deagle, M4 $2500");
- textdraw4 = TextDrawCreate(166,285,"- Sawn-off Shotgun, Tec9, M4, Deagle $5000");
- textdraw5 = TextDrawCreate(166,302,"- SMG, M4, Bazuca, Deagle, Granada $15000");
- ////////////////////////////////////////////////////////////////////////////////
- kits = CreateMenu(" Kits de Armas", 2, 100.0, 200.0, 200.0, 270.0);
- AddMenuItem(kits, 0,"KIT1");
- AddMenuItem(kits, 0,"KIT2");
- AddMenuItem(kits, 0,"KIT3");
- AddMenuItem(kits, 0,"KIT4");
- AddMenuItem(kits, 0,"KIT5");
- AddMenuItem(kits, 0,"KIT6");
- AddMenuItem(kits, 0,"<SAIR>");
- ////////////////////////////////////////////////////////////////////////////////
- UsePlayerPedAnims();
- ////////////////////////////////////////////////////////////////////////////////
- DisableInteriorEnterExits();
- ////////////////////////////////////////////////////////////////////////////////
- if(!fexist("Golds.txt")) dini_Create("Golds.txt");
- AddStaticPickup(1247,1,PosPremios);
- Create3DTextLabel("{FFFF00}Premios Gold\n{87CEEB}Aperte 'F' ou 'Enter'", -1, PosPremios, 30.0, 0);
- ////////////////////////////////////////////////////////////////////////////////
- Holandes = CreateObject(8493, 2486.1000976563, -1660, 148.69999694824, 0.0, 0.0, 90);
- ////////////////////////////////////////////////////////////////////////////////
- TextIntro = TextDrawCreate(3.000000, 0.000000, "Brasil Vida Looka");
- TextDrawBackgroundColor(TextIntro, 16777215);
- TextDrawFont(TextIntro, 2);
- TextDrawLetterSize(TextIntro, 1.580000, 10.600005);
- TextDrawColor(TextIntro, -16776961);
- TextDrawSetOutline(TextIntro1, 0);
- TextDrawSetProportional(TextIntro, 1);
- TextDrawSetShadow(TextIntro, 4);
- TextDrawUseBox(TextIntro, 1);
- TextDrawBoxColor(TextIntro, 255);
- TextDrawTextSize(TextIntro, 691.000000, -450.000000);
- ////////////////////////////////////////////////////////////////////////////////
- TextIntro1 = TextDrawCreate(3.000000, 343.000000, "Brasil Vida Looka");
- TextDrawBackgroundColor(TextIntro1, 16777215);
- TextDrawFont(TextIntro1, 2);
- TextDrawLetterSize(TextIntro1, 1.580000, 11.300007);
- TextDrawColor(TextIntro1, -16776961);
- TextDrawSetOutline(TextIntro1, 0);
- TextDrawSetProportional(TextIntro1, 1);
- TextDrawSetShadow(TextIntro1, 4);
- TextDrawUseBox(TextIntro1, 1);
- TextDrawBoxColor(TextIntro1, 255);
- TextDrawTextSize(TextIntro1, 691.000000, -450.000000);
- ////////////////////////////////////////////////////////////////////////////////
- TextIntro2 = TextDrawCreate(250.000000, 2.000000, "Mundo Doido Como Voce Nunca Viu");
- TextDrawBackgroundColor(TextIntro2, 16711935);
- TextDrawFont(TextIntro2, 0);
- TextDrawLetterSize(TextIntro2, 0.870000, 2.299999);
- TextDrawColor(TextIntro2, -16776961);
- TextDrawSetOutline(TextIntro2, 0);
- TextDrawSetProportional(TextIntro2, 1);
- TextDrawSetShadow(TextIntro2, 1);
- ////////////////////////////////////////////////////////////////////////////////
- TextIntro3 = TextDrawCreate(313.000000, 342.000000, "Versao 5.1 Ultimate");
- TextDrawBackgroundColor(TextIntro3, 255);
- TextDrawFont(TextIntro3, 0);
- TextDrawLetterSize(TextIntro3, 0.860000, 3.100000);
- TextDrawColor(TextIntro3, 16711935);
- TextDrawSetOutline(TextIntro3, 0);
- TextDrawSetProportional(TextIntro3, 1);
- TextDrawSetShadow(TextIntro3, 1);
- ////////////////////////////////////////////////////////////////////////////////
- TextIntro4 = TextDrawCreate(11.000000, 347.000000, "BVL Extremma");
- TextDrawBackgroundColor(TextIntro4, -16776961);
- TextDrawFont(TextIntro4, 2);
- TextDrawLetterSize(TextIntro4, 0.500000, 1.000000);
- TextDrawColor(TextIntro4, 16711935);
- TextDrawSetOutline(TextIntro4, 0);
- TextDrawSetProportional(TextIntro4, 1);
- TextDrawSetShadow(TextIntro4, 2);
- ////////////////////////////////////////////////////////////////////////////////
- LoadDynamicObjectsFromFile("Objetos/Outros.txt");
- LoadStaticVehiclesFromFile("Veiculos/Outros.txt");
- ////////////////////////////////////////////////////////////////////////////////
- LoadDynamicObjectsFromFile("Objetos/Tudo.txt");
- LoadStaticVehiclesFromFile("Veiculos/Tudo.txt");
- ////////////////////////////////////////////////////////////////////////////////
- TextGato = TextDrawCreate(485.000000, 103.000000, "Brasil Vida Loka");
- TextDrawBackgroundColor(TextGato , -16776961);
- TextDrawFont(TextGato, 1);
- TextDrawLetterSize(TextGato, 0.500000, 1.000000);
- TextDrawColor(TextGato, 255);
- TextDrawSetOutline(TextGato, 1);
- TextDrawSetProportional(TextGato, 1);
- ////////////////////////////////////////////////////////////////////////////////
- TextGato1 = TextDrawCreate(3.000000, 435.000000, "Brasil Vida Loka Oficial Sua Diversao e Aqui Nesse Novo Mundo Louko 2014 Nova Era");
- TextDrawBackgroundColor(TextGato1, 65535);
- TextDrawFont(TextGato1, 0);
- TextDrawLetterSize(TextGato1, 0.529999, 1.400000);
- TextDrawColor(TextGato1, 16711935);
- TextDrawSetOutline(TextGato1, 1);
- TextDrawSetProportional(TextGato1, 1);
- TextDrawUseBox(TextGato1, 1);
- TextDrawBoxColor(TextGato1, 255);
- TextDrawTextSize(TextGato1, 651.000000, 6.000000);
- ////////////////////////////////////////////////////////////////////////////////
- TextGato2 = TextDrawCreate(490.000000, 10.000000, "Vida Loka");
- TextDrawBackgroundColor(TextGato2, 255);
- TextDrawFont(TextGato2, 0);
- TextDrawLetterSize(TextGato2, 0.500000, 1.000000);
- TextDrawColor(TextGato2, 16711935);
- TextDrawSetOutline(TextGato2, 0);
- TextDrawSetProportional(TextGato2, 1);
- TextDrawSetShadow(TextGato2, 0);
- ////////////////////////////////////////////////////////////////////////////////
- TextGato3 = TextDrawCreate(40.000000, 321.000000, "Mundo Doido");
- TextDrawBackgroundColor(TextGato3, -65281);
- TextDrawFont(TextGato3, 0);
- TextDrawLetterSize(TextGato3, 0.650000, 1.600004);
- TextDrawColor(TextGato3, 65535);
- TextDrawSetOutline(TextGato3, 1);
- TextDrawSetProportional(TextGato3, 1);
- ////////////////////////////////////////////////////////////////////////////////
- TextGato4 = TextDrawCreate(556.000000, 67.000000, "Vida");
- TextDrawBackgroundColor(TextGato4, 65535);
- TextDrawFont(TextGato4, 2);
- TextDrawLetterSize(TextGato4, 0.390000, 0.699999);
- TextDrawColor(TextGato4, -1);
- TextDrawSetOutline(TextGato4, 0);
- TextDrawSetProportional(TextGato4, 1);
- TextDrawSetShadow(TextGato4, 0);
- ////////////////////////////////////////////////////////////////////////////////
- AddPlayerClass(115,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
- AddPlayerClass(116,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
- AddPlayerClass(116,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
- ////////////////////////////////////////////////////////////////////////////////
- AddPlayerClass(105,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
- AddPlayerClass(106,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
- AddPlayerClass(107,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
- ////////////////////////////////////////////////////////////////////////////////
- AddPlayerClass(1,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
- AddPlayerClass(79,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
- AddPlayerClass(137,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
- ////////////////////////////////////////////////////////////////////////////////
- AddPlayerClass(138,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
- AddPlayerClass(85,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
- AddPlayerClass(91,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
- ////////////////////////////////////////////////////////////////////////////////
- AddPlayerClass(63,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
- AddPlayerClass(64,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
- AddPlayerClass(75,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
- ////////////////////////////////////////////////////////////////////////////////
- AddPlayerClass(102,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
- AddPlayerClass(103,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
- AddPlayerClass(104,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
- ////////////////////////////////////////////////////////////////////////////////
- AddPlayerClass(272,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
- AddPlayerClass(296,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
- AddPlayerClass(299,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
- ////////////////////////////////////////////////////////////////////////////////
- AddPlayerClass(294,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
- AddPlayerClass(123,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
- AddPlayerClass(203,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
- ////////////////////////////////////////////////////////////////////////////////
- AddPlayerClass(111,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
- AddPlayerClass(112,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
- AddPlayerClass(113,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
- ////////////////////////////////////////////////////////////////////////////////
- AddPlayerClass(287,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
- AddPlayerClass(73,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
- AddPlayerClass(100,1217.9275,-1657.3444,11.7969,268.5757,0,0,0,0,0,0);
- ////////////////////////////////////////////////////////////////////////////////
- return 1;
- }
- public OnGameModeExit()
- {
- ////////////////////////////////////////////////////////////////////////////////
- DestroyMenu(kits);
- TextDrawDestroy(textdraw0);
- TextDrawDestroy(textdraw1);
- TextDrawDestroy(textdraw2);
- TextDrawDestroy(textdraw3);
- TextDrawDestroy(textdraw4);
- TextDrawDestroy(textdraw5);
- ////////////////////////////////////////////////////////////////////////////////
- print("Brasil Vida Loka Status : Ofline / Brasil Vida Loka Status : Ofline / By Wesley");
- ////////////////////////////////////////////////////////////////////////////////
- DOF2_Exit();
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- public OnPlayerRequestClass(playerid, classid)
- {
- ////////////////////////////////////////////////////////////////////////////////
- if((classid >= 0) && (classid <= 2))
- {
- gTeam[playerid] = Aztecas;
- GameTextForPlayer(playerid,"~n~~n~~b~Aztecas",4000,5);
- }
- if((classid >= 3) && (classid <= 5))
- {
- gTeam[playerid] = Grove;
- GameTextForPlayer(playerid,"~n~~n~~g~Grove",4000,5);
- }
- if((classid >= 6) && (classid <= 8))
- {
- gTeam[playerid] = Pobres;
- GameTextForPlayer(playerid,"~n~~n~~g~Pobres",4000,5);
- }
- if((classid >= 9) && (classid <= 11))
- {
- gTeam[playerid] = Pobres;
- GameTextForPlayer(playerid,"~n~~n~~b~Novinhas",4000,5);
- }
- if((classid >= 12) && (classid <= 14))
- {
- gTeam[playerid] = Pobres;
- GameTextForPlayer(playerid,"~n~~n~~r~Vadias",4000,5);
- }
- if((classid >= 15) && (classid <= 17))
- {
- gTeam[playerid] = Ballas;
- GameTextForPlayer(playerid,"~n~~n~~b~Ballas",4000,5);
- }
- if((classid >= 18) && (classid <= 20))
- {
- gTeam[playerid] = Rikinhos;
- GameTextForPlayer(playerid,"~n~~n~~g~Rikinhos",4000,5);
- }
- if((classid >= 21) && (classid <= 23))
- {
- gTeam[playerid] = Japoneses;
- GameTextForPlayer(playerid,"~n~~n~~l~Japoneses",4000,5);
- }
- if((classid >= 24) && (classid <= 26))
- {
- gTeam[playerid] = Mafia;
- GameTextForPlayer(playerid,"~n~~n~~l~Mafia",4000,5);
- }
- if((classid >= 27) && (classid <= 29))
- {
- gTeam[playerid] = Exercito;
- GameTextForPlayer(playerid,"~n~~n~~l~Exercito",4000,5);
- }
- ////////////////////////////////////////////////////////////////////////////////
- SetPlayerInterior(playerid,1);
- SetPlayerPos(playerid, 2235.768310, 1632.708129, 1008.359375);
- SetPlayerFacingAngle(playerid, 0.110143);
- SetPlayerCameraLookAt(playerid, 2235.768310, 1632.708129, 1008.359375);
- SetPlayerCameraPos(playerid, 2235.768310 + (5 * floatsin(-0.110143, degrees)), 1632.708129 + (5 * floatcos(-0.110143, degrees)), 1008.359375);
- ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.0,1,0,0,0,-1);
- ////////////////////////////////////////////////////////////////////////////////
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- public OnPlayerConnect(playerid)
- {
- ////////////////////////////////////////////////////////////////////////////////
- SetPlayerAttachedObject( playerid, 0, 1518, 1, 0.643866, 0.000000, 0.000000, 187.985778, 90.253204, 0.000000, 1.000000, 1.000000, 1.000000 );
- ////////////////////////////////////////////////////////////////////////////////
- if(dini_Isset("Golds.txt",PlayerName(playerid))) Gold[playerid] = (playerid,dini_Int("Golds.txt",PlayerName(playerid)));
- ////////////////////////////////////////////////////////////////////////////////
- Box[playerid] = TextDrawCreate(622.000000, 79.000000, " ");
- TextDrawBackgroundColor(Box[playerid], 255);
- TextDrawFont(Box[playerid], 1);
- TextDrawLetterSize(Box[playerid], 0.500000, 1.000000);
- TextDrawColor(Box[playerid], -1);
- TextDrawSetOutline(Box[playerid], 0);
- TextDrawSetProportional(Box[playerid], 1);
- TextDrawSetShadow(Box[playerid], 1);
- ////////////////////////////////////////////////////////////////////////////////
- Ft[playerid] = TextDrawCreate(495.000000, 81.000000, "000000000");
- TextDrawBackgroundColor(Ft[playerid], 255);
- TextDrawFont(Ft[playerid], 3);
- TextDrawLetterSize(Ft[playerid], 0.740000, 1.700001);
- TextDrawColor(Ft[playerid], 65535);
- TextDrawSetOutline(Box[playerid], 0);
- TextDrawSetProportional(Ft[playerid], 1);
- TextDrawSetShadow(Ft[playerid], 1);
- TextDrawUseBox(Ft[playerid], 1);
- TextDrawBoxColor(Ft[playerid], 255);
- TextDrawTextSize(Ft[playerid], 613.000000, 0.000000);
- ////////////////////////////////////////////////////////////////////////////////
- TextDrawShowForPlayer(playerid, TextIntro);
- TextDrawShowForPlayer(playerid, TextIntro1);
- TextDrawShowForPlayer(playerid, TextIntro2);
- TextDrawShowForPlayer(playerid, TextIntro3);
- TextDrawShowForPlayer(playerid, TextIntro4);
- ////////////////////////////////////////////////////////////////////////////////
- new String[64];
- new Nome[MAX_PLAYER_NAME];
- GetPlayerName(playerid, Nome, sizeof(Nome));
- format(String, sizeof(String), CONTAS, Nome);
- ////////////////////////////////////////////////////////////////////////////////
- if(!DOF2_FileExists(String))
- {
- format(String, sizeof(String), "Nick: %s nao Registrado\n\n Digite sua Senha para Registrar", Nome);
- ShowPlayerDialog(playerid, REGISTRO, DIALOG_STYLE_INPUT, "Registrando", String, "Registrar", "Cancelar");
- }
- else
- {
- format(String, sizeof(String), "Nick: %s Registrado\n\n Digite Sua Senha Para Logar", Nome);
- ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "Logando", String, "Logar", "Cancelar");
- }
- ////////////////////////////////////////////////////////////////////////////////
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- public OnPlayerDisconnect(playerid, reason)
- {
- ////////////////////////////////////////////////////////////////////////////////
- DestroyVehicle(IDCarro[playerid]);
- VeiculoCriado[playerid] = false;
- ////////////////////////////////////////////////////////////////////////////////
- dini_IntSet("Golds.txt",PlayerName(playerid),Gold[playerid]);
- ////////////////////////////////////////////////////////////////////////////////
- TextDrawDestroy(Text: TextGato);
- TextDrawDestroy(Text: TextGato1);
- TextDrawDestroy(Text: TextGato2);
- TextDrawDestroy(Text: TextGato3);
- TextDrawDestroy(Text: TextGato4);
- ////////////////////////////////////////////////////////////////////////////////
- TextDrawDestroy(Text: TextIntro);
- TextDrawDestroy(Text: TextIntro1);
- TextDrawDestroy(Text: TextIntro2);
- TextDrawDestroy(Text: TextIntro3);
- TextDrawDestroy(Text: TextIntro4);
- ////////////////////////////////////////////////////////////////////////////////
- SalvarPlayer(playerid);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- ////////////////////////////////////////////////////////////////////////////////
- if((newkeys == KEY_FIRE))
- {
- new
- Float:x , Float:y , Float:z;
- ////////////////////////////////////////////////////////////////////////////////
- if(VetOn[playerid] == 1)
- {
- return SetVehicleAngularVelocity(GetPlayerVehicleID(playerid), x+0.1 , y , z);
- }
- if(VetOn[playerid] == 2)
- {
- return SetVehicleAngularVelocity(GetPlayerVehicleID(playerid), x+0.3 , y , z);
- }
- if(VetOn[playerid] == 3)
- {
- return SetVehicleAngularVelocity(GetPlayerVehicleID(playerid), x+0.5 , y , z);
- }
- if(VetOn[playerid] == 4)
- {
- return SetVehicleAngularVelocity(GetPlayerVehicleID(playerid), x+0.5 , y , z+0.10);
- }
- if(VetOn[playerid] == 5)
- {
- return SetVehicleAngularVelocity(GetPlayerVehicleID(playerid), x , y+0.5 , z+0.5);
- }
- if(VetOn[playerid] == 6)
- {
- return SetVehicleAngularVelocity(GetPlayerVehicleID(playerid), x+0.3 , y , z+0.10);
- }
- if(VetOn[playerid] == 7)
- {
- return SetVehicleAngularVelocity(GetPlayerVehicleID(playerid), x , y , z-0.2);
- }
- if(VetOn[playerid] == 8)
- {
- return SetVehicleAngularVelocity(GetPlayerVehicleID(playerid), x , y , z+0.2);
- }
- }
- ////////////////////////////////////////////////////////////////////////////////
- if ((newkeys == KEY_SECONDARY_ATTACK))
- {
- cmd_premio(playerid);
- }
- ////////////////////////////////////////////////////////////////////////////////
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- public OnPlayerSpawn(playerid)
- {
- ////////////////////////////////////////////////////////////////////////////////
- for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++)
- {
- if(IsPlayerAttachedObjectSlotUsed(playerid, i)) RemovePlayerAttachedObject(playerid, i);
- }
- ////////////////////////////////////////////////////////////////////////////////
- if(gTeam[playerid] == Aztecas)
- {
- GivePlayerWeapon(playerid, 4, 999);
- GivePlayerWeapon(playerid, 24, 999);
- GivePlayerWeapon(playerid, 29, 999);
- SetPlayerColor(playerid, Amarelo);
- SetPlayerPos(playerid, 1217.9275,-1657.3444,11.7969);
- SetPlayerInterior(playerid, 0);
- }
- if(gTeam[playerid] == Grove)
- {
- GivePlayerWeapon(playerid, 4, 999);
- GivePlayerWeapon(playerid, 24, 999);
- GivePlayerWeapon(playerid, 29, 999);
- SetPlayerColor(playerid, Verde);
- SetPlayerPos(playerid, 1217.9275,-1657.3444,11.7969);
- SetPlayerInterior(playerid, 0);
- }
- if(gTeam[playerid] == Pobres)
- {
- GivePlayerWeapon(playerid, 4, 999);
- GivePlayerWeapon(playerid, 24, 999);
- GivePlayerWeapon(playerid, 29, 999);
- SetPlayerColor(playerid, Verde);
- SetPlayerPos(playerid, 1217.9275,-1657.3444,11.7969);
- SetPlayerInterior(playerid, 0);
- }
- if(gTeam[playerid] == Novinhas)
- {
- GivePlayerWeapon(playerid, 4, 999);
- GivePlayerWeapon(playerid, 24, 999);
- GivePlayerWeapon(playerid, 29, 999);
- SetPlayerColor(playerid, Azul);
- SetPlayerPos(playerid, 1217.9275,-1657.3444,11.7969);
- SetPlayerInterior(playerid, 0);
- }
- if(gTeam[playerid] == Vadias)
- {
- GivePlayerWeapon(playerid, 4, 999);
- GivePlayerWeapon(playerid, 24, 999);
- GivePlayerWeapon(playerid, 29, 999);
- SetPlayerColor(playerid, Vermelho);
- SetPlayerPos(playerid, 1217.9275,-1657.3444,11.7969);
- SetPlayerInterior(playerid, 0);
- }
- if(gTeam[playerid] == Ballas)
- {
- GivePlayerWeapon(playerid, 4, 999);
- GivePlayerWeapon(playerid, 24, 999);
- GivePlayerWeapon(playerid, 29, 999);
- SetPlayerColor(playerid, Azul);
- SetPlayerPos(playerid, 1217.9275,-1657.3444,11.7969);
- SetPlayerInterior(playerid, 0);
- }
- if(gTeam[playerid] == Rikinhos)
- {
- GivePlayerWeapon(playerid, 4, 999);
- GivePlayerWeapon(playerid, 24, 999);
- GivePlayerWeapon(playerid, 29, 999);
- SetPlayerColor(playerid, Azul);
- SetPlayerPos(playerid, 1217.9275,-1657.3444,11.7969);
- SetPlayerInterior(playerid, 0);
- }
- if(gTeam[playerid] == Japoneses)
- {
- GivePlayerWeapon(playerid, 4, 999);
- GivePlayerWeapon(playerid, 24, 999);
- GivePlayerWeapon(playerid, 29, 999);
- SetPlayerColor(playerid, Preto);
- SetPlayerPos(playerid, 1217.9275,-1657.3444,11.7969);
- SetPlayerInterior(playerid, 0);
- }
- if(gTeam[playerid] == Mafia)
- {
- GivePlayerWeapon(playerid, 4, 999);
- GivePlayerWeapon(playerid, 24, 999);
- GivePlayerWeapon(playerid, 29, 999);
- SetPlayerColor(playerid, Preto);
- SetPlayerPos(playerid, 1217.9275,-1657.3444,11.7969);
- SetPlayerInterior(playerid, 0);
- }
- if(gTeam[playerid] == Exercito)
- {
- GivePlayerWeapon(playerid, 4, 999);
- GivePlayerWeapon(playerid, 24, 999);
- GivePlayerWeapon(playerid, 29, 999);
- SetPlayerColor(playerid, Verde);
- SetPlayerPos(playerid, 1217.9275,-1657.3444,11.7969);
- SetPlayerInterior(playerid, 0);
- }
- ////////////////////////////////////////////////////////////////////////////////
- SetTimerEx("Timer",60000,true,"i",playerid);
- SetTimer("ActualizarTextDraws",true,60000);
- ////////////////////////////////////////////////////////////////////////////////
- GoldCat[playerid] = TextDrawCreate(522.000000, 417.000000, "Gold: ");
- TextDrawBackgroundColor(GoldCat[playerid], 255);
- TextDrawFont(GoldCat[playerid], 2);
- TextDrawLetterSize(GoldCat[playerid], 0.450000, 1.499999);
- TextDrawColor(GoldCat[playerid], -65281);
- TextDrawSetOutline(GoldCat[playerid], 0);
- TextDrawSetProportional(GoldCat[playerid], 1);
- TextDrawSetShadow(GoldCat[playerid], 1);
- ////////////////////////////////////////////////////////////////////////////////
- TextDrawShowForPlayer(playerid, Ft[playerid]);
- TextDrawShowForPlayer(playerid, Box[playerid]);
- ////////////////////////////////////////////////////////////////////////////////
- TextDrawHideForPlayer(playerid, TextIntro);
- TextDrawHideForPlayer(playerid, TextIntro1);
- TextDrawHideForPlayer(playerid, TextIntro2);
- TextDrawHideForPlayer(playerid, TextIntro3);
- TextDrawHideForPlayer(playerid, TextIntro4);
- ////////////////////////////////////////////////////////////////////////////////
- TextDrawShowForPlayer(playerid, TextGato);
- TextDrawShowForPlayer(playerid, TextGato1);
- TextDrawShowForPlayer(playerid, TextGato2);
- TextDrawShowForPlayer(playerid, TextGato3);
- TextDrawShowForPlayer(playerid, TextGato4);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- public OnPlayerEnterCheckpoint(playerid)
- {
- DisablePlayerCheckpoint(playerid);
- GameTextForPlayer(playerid, "~y~] Premios Gold ]~n~~w~Aperte '~b~F~w~' Para Abrir o Menu de Premios", 5000, 3);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- public OnPlayerDeath(playerid, killerid, reason)
- {
- ////////////////////////////////////////////////////////////////////////////////
- new kName[128], string[128];
- GetPlayerName(killerid, kName, sizeof(kName));
- PlayerKills[killerid] = PlayerKills[killerid] +1;
- PlayerKills[playerid] = 0;
- if(PlayerKills[killerid] == 4 && Dominating[killerid] == 1)
- {
- PlayAudioStreamForPlayer(playerid, "http://uploads3.mp3songurls.com/1351113.mp3");
- format(string,128, "~r~%s First Blood", kName);
- GameTextForAll(string, 6000,4);
- GivePlayerMoney(killerid, 1000);
- GivePlayerMoney(playerid, -1000);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- if(PlayerKills[killerid] == 2)
- {
- PlayAudioStreamForPlayer(playerid, "http://uploads3.mp3songurls.com/1351108.mp3");
- format(string,128, "~r~%s Double Kill", kName);
- GameTextForAll(string, 6000,4);
- GivePlayerMoney(killerid, 1500);
- GivePlayerMoney(playerid, -1000);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- if(PlayerKills[killerid] == 3)
- {
- PlayAudioStreamForPlayer(playerid, "http://uploads3.mp3songurls.com/1351115.mp3");
- format(string,128, "~r~%s Triple Kill", kName);
- GameTextForAll(string, 6000,4);
- GivePlayerMoney(killerid, 2000);
- GivePlayerMoney(playerid, -1000);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- if(PlayerKills[killerid] == 4)
- {
- PlayAudioStreamForPlayer(playerid, "http://uploads3.mp3songurls.com/1351114.mp3");
- format(string,128, "~r~%s Dominating", kName);
- GameTextForAll(string, 6000,4);
- GivePlayerMoney(killerid, 2500);
- GivePlayerMoney(playerid, -1000);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- if(PlayerKills[killerid] == 5)
- {
- PlayAudioStreamForPlayer(playerid, "http://uploads3.mp3songurls.com/1351111.mp3");
- format(string,128, "~r~%s Mega Kill", kName);
- GameTextForAll(string, 6000,4);
- GivePlayerMoney(killerid, 3000);
- GivePlayerMoney(playerid, -1000);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- if(PlayerKills[killerid] == 6)
- {
- PlayAudioStreamForPlayer(playerid, "http://uploads3.mp3songurls.com/1351116.mp3");
- format(string,128, "~r~%s Unstoppable", kName);
- GameTextForAll(string, 6000,4);
- GivePlayerMoney(killerid, 3500);
- GivePlayerMoney(playerid, -1000);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- if(PlayerKills[killerid] == 7)
- {
- PlayAudioStreamForPlayer(playerid, "http://uploads3.mp3songurls.com/1351117.mp3");
- format(string,128, "~r~%s Wicked Sick", kName);
- GameTextForAll(string, 6000,4);
- GivePlayerMoney(killerid, 4000);
- GivePlayerMoney(playerid, -1000);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- if(PlayerKills[killerid] == 8)
- {
- PlayAudioStreamForPlayer(playerid, "http://uploads3.mp3songurls.com/1351109.mp3");
- format(string,128, "~r~%s Monster Kill", kName);
- GameTextForAll(string, 6000,4);
- GivePlayerMoney(killerid, 4500);
- GivePlayerMoney(playerid, -1000);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- if(PlayerKills[killerid] == 9)
- {
- PlayAudioStreamForPlayer(playerid, "http://www.pamp3.site40.net/quake/ludicrouskill.mp3");
- format(string,128, "~r~%s Ludicrous Kill", kName);
- GameTextForAll(string, 6000,4);
- GivePlayerMoney(killerid, 5000);
- GivePlayerMoney(playerid, -1000);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- if(PlayerKills[killerid] == 10)
- {
- PlayAudioStreamForPlayer(playerid, "http://www.pamp3.site40.net/quake/ultrakill.mp3");
- format(string,128, "~r~%s Ulltra Kill", kName);
- GameTextForAll(string, 6000,4);
- GivePlayerMoney(killerid, 6000);
- GivePlayerMoney(playerid, -1000);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- if(PlayerKills[killerid] == 11)
- {
- format(string,128, "~r~%s Dominando", kName);
- GameTextForAll(string, 6000,4);
- GivePlayerMoney(killerid, 6000);
- GivePlayerMoney(playerid, -1000);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- if(PlayerKills[killerid] == 12)
- {
- format(string,128, "~r~%s Fodastico", kName);
- GameTextForAll(string, 6000,4);
- GivePlayerMoney(killerid, 6000);
- GivePlayerMoney(playerid, -1000);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- if(PlayerKills[killerid] == 13)
- {
- format(string,128, "~r~%s Lendario", kName);
- GameTextForAll(string, 6000,4);
- GivePlayerMoney(killerid, 6000);
- GivePlayerMoney(playerid, -1000);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- if(PlayerKills[killerid] == 14)
- {
- PlayAudioStreamForPlayer(playerid, "http://www.pamp3.site40.net/quake/ludicrouskill.mp3");
- format(string,128, "~r~%s Ludicrous Kill", kName);
- GameTextForAll(string, 6000,4);
- GivePlayerMoney(killerid, 6000);
- GivePlayerMoney(playerid, -1000);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- if(PlayerKills[killerid] == 15)
- {
- format(string,128, "~r~%s ACE", kName);
- GameTextForAll(string, 6000,4);
- GivePlayerMoney(killerid, 6000);
- GivePlayerMoney(playerid, -1000);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- public OnPlayerCommandPerformed(playerid, cmdtext[], success)
- {
- if(!success)
- return SendClientMessage(playerid,Vermelho,"Comando Inivalido Obs : Use /Comandos");
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- /*============================***[INICIO-ZCMD]***=============================*/
- ////////////////////////////////////////////////////////////////////////////////
- CMD:safado(playerid, params[])
- {
- new str[64], pName[MAX_PLAYER_NAME];
- GetPlayerName(playerid, pName, sizeof(pName));
- format(str, sizeof(str), "O Safadenho do {AA3333}%s {FFFF00}Ta de Pau Duro", pName);
- SendClientMessageToAll(0xFFFF00FF, str);
- SetPlayerAttachedObject( playerid, Wilson, 321, 1, -0.207567, 0.521517, -0.027858, 92.002204, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:descente(playerid, params[])
- {
- new str[64], pName[MAX_PLAYER_NAME];
- GetPlayerName(playerid, pName, sizeof(pName));
- format(str, sizeof(str), "O Safadenho do {AA3333}%s {FFFF00}Virou Homen", pName);
- SendClientMessageToAll(0xFFFF00FF, str);
- for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++)
- {
- if(IsPlayerAttachedObjectSlotUsed(playerid, i)) RemovePlayerAttachedObject(playerid, i);
- }
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:tirarobjeto(playerid, params[])
- {
- SendClientMessage(playerid, -1, "{FFD700} Objeto Tirado Com Sucesso");
- for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++)
- {
- if(IsPlayerAttachedObjectSlotUsed(playerid, i)) RemovePlayerAttachedObject(playerid, i);
- }
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:punheta(playerid)
- {
- new str[64], pName[MAX_PLAYER_NAME];
- GetPlayerName(playerid, pName, sizeof(pName));
- format(str, sizeof(str), "O Safadenho do {AA3333}%s {FFFF00}Tocando Uma Punheta", pName);
- SendClientMessageToAll(0xFFFF00FF, str);
- ApplyAnimation(playerid,"PAULNMAC", "wank_loop", 1.800001, 1, 0, 0, 1, 600);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:noob(playerid, params[])
- {
- new str[64], pName[MAX_PLAYER_NAME];
- GetPlayerName(playerid, pName, sizeof(pName));
- format(str, sizeof(str), "O Player(a) {AA3333}%s {FFFF00}Pegou o Kit NooB Use : /noob", pName);
- SendClientMessageToAll(0xFFFF00FF, str);
- GivePlayerWeapon(playerid, 4, 999);
- GivePlayerWeapon(playerid, 24, 999);
- GivePlayerWeapon(playerid, 29, 999);
- return true;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:holandes1(playerid, params[])
- {
- MoveObject(Holandes, 557.70001220703, -1683.3000488281, 148.69999694824, 50.00);
- return true;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:holandes2(playerid, params[])
- {
- MoveObject(Holandes, -38.599998474121, -1098, 148.69999694824, 50.00);
- return true;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:holandes3(playerid, params[])
- {
- MoveObject(Holandes, 347.20001220703, -1464.6999511719, 252.5, 50.00);
- return true;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:holandes4(playerid, params[])
- {
- MoveObject(Holandes, 1771.5, -539.40002441406, 252.5, 50.00);
- return true;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:holandes5(playerid, params[])
- {
- MoveObject(Holandes, 2059.1999511719, 1215.9000244141, 252.5, 50.00);
- return true;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:holandes6(playerid, params[])
- {
- MoveObject(Holandes, -2692.3999023438, 1570.9000244141, 437.10000610352, 50.00);
- return true;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:holandes7(playerid, params[])
- {
- MoveObject(Holandes, 1750.4000244141, -2589.8999023438, 322, 50.00);
- return true;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:holandes8(playerid, params[])
- {
- MoveObject(Holandes, 2062.8000488281, -2581.1999511719, 31.299999237061, 50.00);
- return true;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:irh(playerid, params[])
- {
- new str[64], pName[MAX_PLAYER_NAME];
- GetPlayerName(playerid, pName, sizeof(pName));
- format(str, sizeof(str), "{AA3333}%s {FFFF00}Foi Para o Navio Fantasma Use : /irh", pName);
- SendClientMessageToAll(0xFFFF00FF, str);
- SetPlayerPos(playerid, 2486.1000976563, -1660, 148.69999694824);
- GameTextForPlayer(playerid,"Bem Vindo",6000,5);
- return true;
- }
- ////////////////////////////////////////////////////////////////////////////////
- ///==============================Linhas Retas================================///
- ////////////////////////////////////////////////////////////////////////////////
- CMD:retirargold(playerid, params[])
- {
- new id, QuantiadeGold;
- if (!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "{FFA500}[ERRO]{E0FFFF}Você não é administrador!");
- if (sscanf(params, "ud", id, QuantiadeGold)) return SendClientMessage(playerid, -1, "{FFA500}[ERRO]{E0FFFF} USE: /retirargold [ID] [GOLD]");
- if (!IsPlayerConnected(id)) return SendClientMessage(playerid, -1, "{FFA500}[ERRO]{E0FFFF} O Player não está connectado!");
- Gold[id] -= QuantiadeGold;
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:premio(playerid)
- {
- if(IsPlayerInRangeOfPoint(playerid, 2.0, PosPremios))
- {
- new ListaPremios[4000];
- strcat(ListaPremios,"{7CFC00}R${F8F8FF} 1.000,00{FFFF00} [10 Gold's]\n");
- strcat(ListaPremios,"{7CFC00}R${F8F8FF} 2.000,00{FFFF00} [20 Gold's]\n");
- strcat(ListaPremios,"{7CFC00}R${F8F8FF} 10.000,00{FFFF00} [50 Gold's]\n");
- strcat(ListaPremios,"{7CFC00}R${F8F8FF} 30.000,00{FFFF00} [100 Gold's]\n");
- strcat(ListaPremios,"{7CFC00}R${F8F8FF} 200.000,00 + 1 Nível{FFFF00} [500 Gold's]\n");
- strcat(ListaPremios,"{7CFC00}R${F8F8FF} 500.000,00 + 3 Níveis{FFFF00} [750 Gold's]\n");
- strcat(ListaPremios,"{7CFC00}R${F8F8FF} 1.000.000,00 + 10 Níveis{FFFF00} [1000 Gold's]");
- ShowPlayerDialog(playerid, DIALOG_PREMIOS, DIALOG_STYLE_LIST, "Premios Gold", ListaPremios, "Selecionar", "Fechar");
- }
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:ajudagold(playerid)
- {
- new AjudaPlayer[1000];
- new AjudaAdmin[1000];
- if (IsPlayerAdmin(playerid))
- {
- strcat(AjudaAdmin,"{FFD700}/dargold {FFFFFF}- {FFEFD5}Para dar Gold ao um Player.\n");
- strcat(AjudaAdmin,"{FFD700}/setargold {FFFFFF}- {FFEFD5}Para setar o Gold de um Player\n");
- strcat(AjudaAdmin,"{FFD700}/retirargold {FFFFFF}- {FFEFD5}Para retirar Gold de um Player.");
- ShowPlayerDialog(playerid, 3442, DIALOG_STYLE_MSGBOX, "{FFD700}Ajuda Gold",AjudaAdmin, "Fechar", "");
- }
- else
- {
- strcat(AjudaPlayer,"{FFA500}Informações:\n");
- strcat(AjudaPlayer,"{7FFFD4}A cada {AFEEEE}3 {7FFFD4}Minutos você ganha um Gold.\n");
- strcat(AjudaPlayer,"{7FFFD4}Você pode pegar premios em um local, digite: {FFD700}/gpsgold {7FFFD4} para encontra-lo\n\n");
- strcat(AjudaPlayer,"{FFA500}Comandos:\n");
- strcat(AjudaPlayer,"{FFD700}/meugold {FFFFFF}- {FFEFD5}Para ver a Quantidade de Gold que você tem.\n");
- strcat(AjudaPlayer,"{FFD700}/gpsgold {FFFFFF}- {FFEFD5}Local onde se pega premios (Dependendo de Quantos Gold's Você Tem).\n");
- ShowPlayerDialog(playerid, 3442, DIALOG_STYLE_MSGBOX, "{FFD700}Ajuda Gold",AjudaPlayer, "Fechar", "");
- }
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:gpsgold(playerid)
- {
- SetPlayerCheckpoint(playerid, PosPremios,8.0);//Checkpoint Onde aparecerar
- SendClientMessage(playerid, -1, "{FFD700} Um ponto {FFA500}vermelho {FFD700}foi marcado no mapa, vá até ele!");
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:meugold(playerid)
- {
- new String[128];
- new MyGold;
- MyGold = Gold[playerid];
- format(String, sizeof(String), "{7FFFD4}Você tem {AFEEEE}%d{7FFFD4} de Gold!", MyGold);
- SendClientMessage(playerid, -1, String);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:setargold(playerid, params[])
- {
- new id, dargold;
- if (!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "{FFA500}[ERRO] {E0FFFF}Você não é administrador!");
- if (sscanf(params, "ud", id, dargold)) return SendClientMessage(playerid, -1, "{FFA500}[ERRO] {E0FFFF}USE: /setargold [ID] [GOLD]");
- if (!IsPlayerConnected(id)) return SendClientMessage(playerid, -1, "{FFA500}[ERRO] {E0FFFF} O Player não está connectado!");
- Gold[id] = dargold;
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:dargold(playerid, params[])
- {
- new ID, GoldQuantia;
- if (!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "{FFA500}[ERRO] {E0FFFF}Você não é administrador!");
- if (sscanf(params, "ud", ID, GoldQuantia)) return SendClientMessage(playerid, -1, "{FFA500}[ERRO] {E0FFFF}USE: /dargold [ID] [GOLD]");
- if (!IsPlayerConnected(ID)) return SendClientMessage(playerid, -1, "{FFA500}[ERRO]{E0FFFF} O Player não está connectado!");
- Gold[ID] += GoldQuantia;
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:minigun(playerid, params[])
- {
- SendClientMessage(playerid, -1, "{FFD700} Objeto Adicionado Com Sucesso");
- SetPlayerAttachedObject( playerid, 0, 362, 1, -0.359269, -0.254775, -0.039542, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:faca(playerid, params[])
- {
- SendClientMessage(playerid, -1, "{FFD700} Objeto Adicionado Com Sucesso");
- SetPlayerAttachedObject( playerid, 0, 339, 1, 0.610027, 0.081778, -0.385961, 4.524044, 358.178833, 172.174072, 0.896676, 1.000000, 1.000000 );
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:arvore(playerid, params[])
- {
- SendClientMessage(playerid, -1, "{FFD700} Objeto Adicionado Com Sucesso");
- SetPlayerAttachedObject( playerid, 0, 700, 1, -0.290194, 0.036302, 0.154402, 357.083923, 89.528007, 0.000000, 1.000000, 1.000000, 1.000000 );
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:arvoreb(playerid, params[])
- {
- SendClientMessage(playerid, -1, "{FFD700} Objeto Adicionado Com Sucesso");
- SetPlayerAttachedObject( playerid, 0, 724, 1, -2.662456, -0.960637, -0.590212, 0.000000, 84.909217, 358.866760, 1.000000, 0.196750, 1.000000 );
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:tv(playerid, params[])
- {
- SendClientMessage(playerid, -1, "{FFD700} Objeto Adicionado Com Sucesso");
- SetPlayerAttachedObject( playerid, 0, 1518, 1, 0.643866, 0.000000, 0.000000, 187.985778, 90.253204, 0.000000, 1.000000, 1.000000, 1.000000 );
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:chapeu(playerid, params[])
- {
- SendClientMessage(playerid, -1, "{FFD700} Objeto Adicionado Com Sucesso");
- SetPlayerAttachedObject(playerid, 3, 18639, 2, 0.163258, -0.032386, -0.013128, 0.390689, 358.632415, 340.261840);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:gorro(playerid, params[])
- {
- SendClientMessage(playerid, -1, "{FFD700} Objeto Adicionado Com Sucesso");
- SetPlayerAttachedObject(playerid, 3, 19065, 2, 0.120000, 0.040000, -0.003500, 0, 100, 100, 1.4, 1.4, 1.4);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:acessorios(playerid, params[])
- {
- SendClientMessage(playerid, -1, "{FFD700} /safado /descente /punheta /minigun /faca /tirarobjeto \n /arvore /arvoreb /tv /chapeu /gorro /acessorios");
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:comandos(playerid)
- {
- new String[950];
- format(String, sizeof(String), "{FF0000}Comandos Gerais:\n\n");
- strcat(String, "{B9BCCC}- /acessorios /ajudagold /noob /kit /irh /creditos /teleportes\n");
- strcat(String, "{B9BCCC}- /grau / /deletarveiculo /trazerveiculo /animlist\n\n");
- strcat(String, "{FF0000}Barco Pirata:\n\n");
- strcat(String, "{B9BCCC}- *Para Andar* /holandes1 /holandes2 /holandes3 /holandes4\n");
- strcat(String, "{B9BCCC}- /holandes5 /holandes6 /holandes7 /holandes8 (Tele) : /irh\n");
- ShowPlayerDialog(playerid, Diag1, DIALOG_STYLE_MSGBOX, "[BVL] - Comandos", String, "Fechar", "");
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:creditos(playerid)
- {
- new String[950];
- format(String, sizeof(String), "{FF0000}Creditos Gerais:\n\n");
- strcat(String, "{B9BCCC}- [BVL]Catchorro x Focaximubh\n");
- ShowPlayerDialog(playerid, Diag2, DIALOG_STYLE_MSGBOX, "[BVL] - Creditos", String, "Fechar", "");
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:teleportes(playerid)
- {
- new String[950];
- format(String, sizeof(String), "{FF0000}Teleportes Gerais:\n\n");
- strcat(String, "{B9BCCC}- Teste\n");
- ShowPlayerDialog(playerid, Diag3, DIALOG_STYLE_MSGBOX, "[BVL] - Teleportes", String, "Fechar", "");
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:grau(playerid)
- {
- if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, Vermelho, "{AA3333}Você Não Está em um Veículo Use /cv");
- ShowPlayerDialog(playerid, Dialog_VetGrau, DIALOG_STYLE_LIST , "Sistema de Empinar no Grau", "Empinar \nMortal \nSuper-Mortal \nMortal+Flip \nFlip+Up \nVoop+Flip \nVoop+Direita \nVoop+Esquerda \nDesativar Voops!!\nComo Usar" ,"Ligar","Cancelar");
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:cv(playerid, params[])
- {
- if(sscanf(params, "ddd", IDVeiculo, CorVeiculo, CorVeiculo2)) return SendClientMessage(playerid, Vermelho, "USO: /cv [ID Veiculo] [Cor1] [Cor2]");
- if(IDVeiculo < 400 || IDVeiculo > 611) return SendClientMessage(playerid, Vermelho, "ID Inválido < ID's de 400 a 611 >");
- if(CorVeiculo < 0 || CorVeiculo > 255) return SendClientMessage(playerid, Vermelho, "COR Inválida < Cores de 0 a 255 >");
- if(CorVeiculo2 < 0 || CorVeiculo2 > 255) return SendClientMessage(playerid, Vermelho, "COR2 Inválida < Cores de 0 a 255 >");
- if(VeiculoCriado[playerid] == true) return SendClientMessage(playerid, Vermelho, "Você já Possui um Veículo Criado, Use /deletarveiculo");
- GetPlayerPos(playerid, p1x, p1y, p1z);
- IDCarro[playerid] = CreateVehicle(IDVeiculo, p1x, p1y, p1z+5, 0.0, CorVeiculo, CorVeiculo2, 60000);
- PutPlayerInVehicle(playerid, IDCarro[playerid], 0);
- SetVehicleVirtualWorld(IDCarro[playerid], GetPlayerVirtualWorld(playerid));
- LinkVehicleToInterior(IDCarro[playerid], GetPlayerInterior(playerid));
- VeiculoCriado[playerid] = true;
- SendClientMessage(playerid, Vermelho, "Você Criou um Veiculo, Para Deleta-lo Utilize: /deletarveiculo!");
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:trazerveiculo(playerid)
- {
- if(VeiculoCriado[playerid] == false) return SendClientMessage(playerid, Vermelho, "Você Não Criou um Veículo!");
- GetPlayerPos(playerid, SetVPos[0], SetVPos[1], SetVPos[2]);
- SetVehiclePos(IDCarro[playerid], SetVPos[0], SetVPos[1], SetVPos[2]);
- SendClientMessage(playerid, Vermelho, "Você Trouxe Seu Veículo Até Você!");
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:deletarveiculo(playerid)
- {
- if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, Vermelho, "Você Não Está em um Veículo!");
- if(VeiculoCriado[playerid] == false) return SendClientMessage(playerid, Vermelho, "Você Não Criou um Veículo!");
- DestroyVehicle(IDCarro[playerid]);
- VeiculoCriado[playerid] = false;
- SendClientMessage(playerid, Vermelho, "Você Deletou Seu Veículo Com Sucesso, Para Cria-lo Novamente, Use /v!");
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:kit(playerid, params[])
- {
- 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;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:animlist(playerid)
- {
- strcat(strdialog, "/fall - /fallback - /injured - /akick - /push - /lowbodypush - /handsup - /bomb - /drunk - /getarrested - /laugh - /sup\n");
- strcat(strdialog, "/basket - /headbutt - /medic - /spray - /robman - /taichi - /lookout - /kiss - /cellin - /cellout - /crossarms - /lay /run\n");
- strcat(strdialog, "/deal - /crack - /smoke - /groundsit - /chat - /dance - /fucku - /strip - /hide - /vomit - /eat - /chairsit - /reload\n");
- strcat(strdialog, "/koface - /kostomach - /rollfall - /carjacked1 - /carjacked2 - /rcarjack1 - /rcarjack2 - /lcarjack1 - /lcarjack2 - /bat\n");
- strcat(strdialog, "/lifejump - /exhaust - /leftslap - /carlock - /hoodfrisked - /lightcig - /tapcig - /box - /lay2 - /chant - finger /lean\n");
- strcat(strdialog, "/shouting - /knife - /cop - /elbow - /kneekick - /airkick - /gkick - /gpunch - /fstance - /lowthrow - /highthrow - /aim\n");
- strcat(strdialog, "-----------------------------------------------------------------------------------------------------------------------------------------");
- ShowPlayerDialog(playerid, ANIMES, DIALOG_STYLE_MSGBOX, "-------------------------------------------------------- [ ANIMLIST ] ------------------------------------------------------------------", strdialog, "OK", "");
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:carjacked1(playerid)
- {
- ApplyAnimation(playerid,"PED","CAR_jackedLHS",4.0,0,1,1,1,0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:carjacked2(playerid)
- {
- ApplyAnimation(playerid,"PED","CAR_jackedRHS",4.0,0,1,1,1,0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:handsup(playerid)
- {
- ApplyAnimation(playerid, "ROB_BANK","SHP_HandsUp_Scr", 4.0, 0, 1, 1, 1, 0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:cellin(playerid)
- {
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USECELLPHONE);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:cellout(playerid)
- {
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_STOPUSECELLPHONE);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:drunk(playerid)
- {
- ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,1,1,1,1,1);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:bomb(playerid)
- {
- ClearAnimations(playerid);
- ApplyAnimation(playerid, "BOMBER","BOM_Plant_Loop",4.0,1,0,0,1,0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:getarrested(playerid)
- {
- ApplyAnimation(playerid,"ped", "ARRESTgun", 4.0, 0, 1, 1, 1, -1);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:laugh(playerid)
- {
- ApplyAnimation(playerid, "RAPPING", "Laugh_01", 4.0, 0, 0, 0, 0, 0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:lookout(playerid)
- {
- ApplyAnimation(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:robman(playerid)
- {
- ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:crossarms(playerid)
- {
- ApplyAnimation(playerid, "COP_AMBIENT", "Coplook_loop", 4.0, 0, 1, 1, 1, -1);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:lay(playerid)
- {
- ApplyAnimation(playerid,"BEACH", "bather", 4.0, 1, 0, 0, 0, 0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:hide(playerid)
- {
- ApplyAnimation(playerid, "ped", "cower", 3.0, 1, 0, 0, 0, 0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:vomit(playerid)
- {
- ApplyAnimation(playerid, "FOOD", "EAT_Vomit_P", 3.0, 0, 0, 0, 0, 0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:eat(playerid)
- {
- ApplyAnimation(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:wave(playerid)
- {
- ApplyAnimation(playerid, "ON_LOOKERS", "wave_loop", 4.0, 1, 0, 0, 0, 0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:slapass(playerid)
- {
- ApplyAnimation(playerid, "SWEET", "sweet_ass_slap", 4.0, 0, 0, 0, 0, 0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:deal(playerid)
- {
- ApplyAnimation(playerid, "DEALER", "DEALER_DEAL", 4.0, 0, 0, 0, 0, 0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:crack(playerid)
- {
- ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:gro(playerid)
- {
- ApplyAnimation(playerid,"BEACH", "ParkSit_M_loop", 4.0, 1, 0, 0, 0, 0); // Sit
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:chat(playerid)
- {
- ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,1,0,0,1,1);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:fucku(playerid)
- {
- ApplyAnimation(playerid,"PED","fucku",4.0,0,0,0,0,0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:taichi(playerid)
- {
- ApplyAnimation(playerid,"PARK","Tai_Chi_Loop",4.0,1,0,0,0,0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:chairsit(playerid)
- {
- ApplyAnimation(playerid,"PED","SEAT_down",4.1,0,1,1,1,0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:fall(playerid)
- {
- ApplyAnimation(playerid,"PED","KO_skid_front",4.1,0,1,1,1,0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:fallback(playerid)
- {
- ApplyAnimation(playerid, "PED","FLOOR_hit_f", 4.0, 1, 0, 0, 0, 0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:kiss(playerid)
- {
- ApplyAnimation(playerid, "KISSING", "Playa_Kiss_02", 3.0, 1, 1, 1, 1, 0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:injured(playerid)
- {
- ApplyAnimation(playerid, "SWEET", "Sweet_injuredloop", 4.0, 1, 0, 0, 0, 0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:push(playerid)
- {
- ApplyAnimation(playerid,"GANGS","shake_cara",4.0,0,0,0,0,0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:akick(playerid)
- {
- ApplyAnimation(playerid,"POLICE","Door_Kick",4.0,0,0,0,0,0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:lowbodypush(playerid)
- {
- ApplyAnimation(playerid,"GANGS","shake_carSH",4.0,0,0,0,0,0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:spray(playerid)
- {
- ApplyAnimation(playerid,"SPRAYCAN","spraycan_full",4.0,0,0,0,0,0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:headbutt(playerid)
- {
- ApplyAnimation(playerid,"WAYFARER","WF_Fwd",4.0,0,0,0,0,0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:hoodfrisked(playerid)
- {
- ApplyAnimation(playerid,"POLICE","crm_drgbst_01",4.0,0,1,1,1,0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:lightcig(playerid)
- {
- ApplyAnimation(playerid,"SMOKING","M_smk_in",3.0,0,0,0,0,0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:tapcig(playerid)
- {
- ApplyAnimation(playerid,"SMOKING","M_smk_tap",3.0,0,0,0,0,0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:bat(playerid)
- {
- ApplyAnimation(playerid,"BASEBALL","Bat_IDLE",4.0,1,1,1,1,0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:box(playerid)
- {
- ApplyAnimation(playerid,"GYMNASIUM","GYMshadowbox",4.0,1,1,1,1,0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:lay2(playerid)
- {
- ApplyAnimation(playerid,"SUNBATHE","Lay_Bac_in",3.0,0,1,1,1,0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:chant(playerid)
- {
- ApplyAnimation(playerid,"RIOT","RIOT_CHANT",4.0,1,1,1,1,0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:finger(playerid)
- {
- ApplyAnimation(playerid,"RIOT","RIOT_FUKU",2.0,0,0,0,0,0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:shouting(playerid)
- {
- ApplyAnimation(playerid,"RIOT","RIOT_shout",4.0,1,0,0,0,0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:cop(playerid)
- {
- ApplyAnimation(playerid,"SWORD","sword_block",50.0,0,1,1,1,1);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:elbow(playerid)
- {
- ApplyAnimation(playerid,"FIGHT_D","FightD_3",4.0,0,1,1,0,0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:kneekick(playerid)
- {
- ApplyAnimation(playerid,"FIGHT_D","FightD_2",4.0,0,1,1,0,0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:fstance(playerid)
- {
- ApplyAnimation(playerid,"FIGHT_D","FightD_IDLE",4.0,1,1,1,1,0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:gpunch(playerid)
- {
- ApplyAnimation(playerid,"FIGHT_B","FightB_G",4.0,0,0,0,0,0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:airkick(playerid)
- {
- ApplyAnimation(playerid,"FIGHT_C","FightC_M",4.0,0,1,1,0,0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:gkick(playerid)
- {
- ApplyAnimation(playerid,"FIGHT_D","FightD_G",4.0,0,0,0,0,0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:lowthrow(playerid)
- {
- ApplyAnimation(playerid,"GRENADE","WEAPON_throwu",3.0,0,0,0,0,0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:highthrow(playerid)
- {
- ApplyAnimation(playerid,"GRENADE","WEAPON_throw",4.0,0,0,0,0,0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:dealstance(playerid)
- {
- ApplyAnimation(playerid,"DEALER","DEALER_IDLE",4.0,1,0,0,0,0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:medic(playerid)
- {
- ApplyAnimation(playerid,"MEDIC","CPR",4.0,0,0,0,0,0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:koface(playerid)
- {
- ApplyAnimation(playerid,"PED","KO_shot_face",4.0,0,1,1,1,0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:kostomach(playerid)
- {
- ApplyAnimation(playerid,"PED","KO_shot_stom",4.0,0,1,1,1,0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:lifejump(playerid)
- {
- ApplyAnimation(playerid,"PED","EV_dive",4.0,0,1,1,1,0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:exhaust(playerid)
- {
- ApplyAnimation(playerid,"PED","IDLE_tired",3.0,1,0,0,0,0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:leftslap(playerid)
- {
- ApplyAnimation(playerid,"PED","BIKE_elbowL",4.0,0,0,0,0,0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:rollfall(playerid)
- {
- ApplyAnimation(playerid,"PED","BIKE_fallR",4.0,0,1,1,1,0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:carlock(playerid)
- {
- ApplyAnimation(playerid,"PED","CAR_doorlocked_LHS",4.0,0,0,0,0,0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:rcarjack1(playerid)
- {
- ApplyAnimation(playerid,"PED","CAR_pulloutL_LHS",4.0,0,0,0,0,0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:lcarjack1(playerid)
- {
- ApplyAnimation(playerid,"PED","CAR_pulloutL_RHS",4.0,0,0,0,0,0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:rcarjack2(playerid)
- {
- ApplyAnimation(playerid,"PED","CAR_pullout_LHS",4.0,0,0,0,0,0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:lcarjack2(playerid)
- {
- ApplyAnimation(playerid,"PED","CAR_pullout_RHS",4.0,0,0,0,0,0);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:smoke(playerid, params[])
- {
- if(sscanf(params, "s", anims))
- {
- SendClientMessage(playerid, 0x33AA33AA, "Uso correto: /smoke [1-4]");
- }
- else
- {
- if(strcmp(anims, "0", true) == 0)
- {
- SendClientMessage(playerid, 0x33AA33AA, "Uso correto: /smoke [1-4]");
- }
- if(strcmp(anims, "1", true) == 0)
- {
- ApplyAnimation(playerid,"SMOKING", "F_smklean_loop", 4.0, 1, 0, 0, 0, 0);
- }
- if(strcmp(anims, "2", true) == 0)
- {
- ApplyAnimation(playerid,"SMOKING", "M_smklean_loop", 4.0, 1, 0, 0, 0, 0);
- }
- if(strcmp(anims, "3", true) == 0)
- {
- ApplyAnimation(playerid,"SMOKING","M_smkstnd_loop", 4.0, 1, 0, 0, 0, 0);
- }
- if(strcmp(anims, "4", true) == 0)
- {
- ApplyAnimation(playerid,"SMOKING","M_smk_out", 4.0, 1, 0, 0, 0, 0);
- }
- }
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:sup(playerid, params[])
- {
- if(sscanf(params, "s", anims))
- {
- SendClientMessage(playerid, 0x33AA33AA, "Uso correto: /sup [1-3]");
- }
- else
- {
- if(strcmp(anims, "1", true) == 0)
- {
- ApplyAnimation(playerid,"GANGS","hndshkba",4.0,0,0,0,0,0);
- }
- if(strcmp(anims, "2", true) == 0)
- {
- ApplyAnimation(playerid,"GANGS","hndshkda",4.0,0,0,0,0,0);
- }
- if(strcmp(anims, "3", true) == 0)
- {
- ApplyAnimation(playerid,"GANGS","hndshkfa_swt",4.0,0,0,0,0,0);
- }
- }
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:rap(playerid, params[])
- {
- if(sscanf(params, "s", anims))
- {
- SendClientMessage(playerid, 0x33AA33AA, "Uso correto: /rap [1-4]");
- }
- else
- {
- if(strcmp(anims, "1", true) == 0)
- {
- ApplyAnimation(playerid,"RAPPING","RAP_A_Loop",4.0,1,0,0,0,0);
- }
- if(strcmp(anims, "2", true) == 0)
- {
- ApplyAnimation(playerid,"RAPPING","RAP_C_Loop",4.0,1,0,0,0,0);
- }
- if(strcmp(anims, "3", true) == 0)
- {
- ApplyAnimation(playerid,"GANGS","prtial_gngtlkD",4.0,1,0,0,0,0);
- }
- if(strcmp(anims, "4", true) == 0)
- {
- ApplyAnimation(playerid,"GANGS","prtial_gngtlkH",4.0,1,0,0,1,1);
- }
- }
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:knife(playerid, params[])
- {
- if(sscanf(params, "s", anims))
- {
- SendClientMessage(playerid, 0x33AA33AA, "Uso correto: /knife [1-4]");
- }
- else
- {
- if(strcmp(anims, "1", true) == 0)
- {
- ApplyAnimation(playerid,"KNIFE","KILL_Knife_Ped_Damage",4.0,0,1,1,1,0);
- }
- if(strcmp(anims, "2", true) == 0)
- {
- ApplyAnimation(playerid,"KNIFE","KILL_Knife_Ped_Die",4.0,0,1,1,1,0);
- }
- if(strcmp(anims, "3", true) == 0)
- {
- ApplyAnimation(playerid,"KNIFE","KILL_Knife_Player",4.0,0,0,0,0,0);
- }
- if(strcmp(anims, "4", true) == 0)
- {
- ApplyAnimation(playerid,"KNIFE","KILL_Partial",4.0,0,1,1,1,1);
- }
- }
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:basket(playerid, params[])
- {
- if(sscanf(params, "s", anims))
- {
- SendClientMessage(playerid, 0x33AA33AA, "Uso correto: /knife [1-6]");
- }
- else
- {
- if(strcmp(anims, "1", true) == 0)
- {
- ApplyAnimation(playerid,"BSKTBALL","BBALL_idleloop",4.0,1,0,0,0,0);
- }
- if(strcmp(anims, "2", true) == 0)
- {
- ApplyAnimation(playerid,"BSKTBALL","BBALL_Jump_Shot",4.0,0,0,0,0,0);
- }
- if(strcmp(anims, "3", true) == 0)
- {
- ApplyAnimation(playerid,"BSKTBALL","BBALL_pickup",4.0,0,0,0,0,0);
- }
- if(strcmp(anims, "4", true) == 0)
- {
- ApplyAnimation(playerid,"BSKTBALL","BBALL_run",4.1,1,1,1,1,1);
- }
- if(strcmp(anims, "5", true) == 0)
- {
- ApplyAnimation(playerid,"BSKTBALL","BBALL_def_loop",4.0,1,0,0,0,0);
- }
- if(strcmp(anims, "6", true) == 0)
- {
- ApplyAnimation(playerid,"BSKTBALL","BBALL_Dnk",4.0,1,0,0,0,0);
- }
- }
- return 1;
- }
- CMD:reload(playerid, params[])
- {
- if(sscanf(params, "s", anims))
- {
- SendClientMessage(playerid, 0x33AA33AA, "Uso correto: /reload [deagle/smg/ak/m4]");
- }
- else
- {
- if(strcmp(anims, "deagle", true) == 0)
- {
- ApplyAnimation(playerid,"COLT45","colt45_reload",4.0,0,0,0,0,1);
- }
- if(strcmp(anims, "smg", true) == 0 || strcmp(anims, "ak", true) == 0 || strcmp(anims, "m4", true) == 0)
- {
- ApplyAnimation(playerid,"UZI","UZI_reload",4.0,0,0,0,0,0);
- }
- }
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:gwalk(playerid, params[])
- {
- if(sscanf(params, "s", anims))
- {
- SendClientMessage(playerid, 0x33AA33AA, "Uso correto: /gwalk [1-2]");
- }
- else
- {
- if(strcmp(anims, "1", true) == 0)
- {
- ApplyAnimation(playerid,"PED","WALK_gang1",4.1,1,1,1,1,1);
- }
- if(strcmp(anims, "2", true) == 0)
- {
- ApplyAnimation(playerid,"PED","WALK_gang2",4.1,1,1,1,1,1);
- }
- }
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:aim(playerid, params[])
- {
- if(sscanf(params, "s", anims))
- {
- SendClientMessage(playerid, 0x33AA33AA, "Uso correto: /aim [1-3]");
- }
- else
- {
- if(strcmp(anims, "1", true) == 0)
- {
- ApplyAnimation(playerid,"PED","gang_gunstand",4.0,1,1,1,1,1);
- }
- if(strcmp(anims, "2", true) == 0)
- {
- ApplyAnimation(playerid,"PED","Driveby_L",4.0,0,1,1,1,1);
- }
- if(strcmp(anims, "3", true) == 0)
- {
- ApplyAnimation(playerid,"PED","Driveby_R",4.0,0,1,1,1,1);
- }
- }
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:lean(playerid, params[])
- {
- if(sscanf(params, "s", anims))
- {
- SendClientMessage(playerid, 0x33AA33AA, "Uso correto: /lean [1-2]");
- }
- else
- {
- if(strcmp(anims, "1", true) == 0)
- {
- ApplyAnimation(playerid,"GANGS","leanIDLE",4.0,0,1,1,1,0);
- }
- if(strcmp(anims, "2", true) == 0)
- {
- ApplyAnimation(playerid,"MISC","Plyrlean_loop",4.0,0,1,1,1,0);
- }
- }
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:strip(playerid, params[])
- {
- if(sscanf(params, "s", anims))
- {
- SendClientMessage(playerid, 0x33AA33AA, "Uso correto: /strip [a-g]");
- }
- else
- {
- if(strcmp(anims, "a", true) == 0)
- {
- ApplyAnimation(playerid,"STRIP", "strip_A", 4.1, 1, 1, 1, 1, 1 );
- }
- if(strcmp(anims, "b", true) == 0)
- {
- ApplyAnimation(playerid,"STRIP", "strip_B", 4.1, 1, 1, 1, 1, 1 );
- }
- if(strcmp(anims, "c", true) == 0)
- {
- ApplyAnimation(playerid,"STRIP", "strip_C", 4.1, 1, 1, 1, 1, 1 );
- }
- if(strcmp(anims, "d", true) == 0)
- {
- ApplyAnimation(playerid,"STRIP", "strip_D", 4.1, 1, 1, 1, 1, 1 );
- }
- if(strcmp(anims, "e", true) == 0)
- {
- ApplyAnimation(playerid,"STRIP", "strip_E", 4.1, 1, 1, 1, 1, 1 );
- }
- if(strcmp(anims, "f", true) == 0)
- {
- ApplyAnimation(playerid,"STRIP", "strip_F", 4.1, 1, 1, 1, 1, 1 );
- }
- if(strcmp(anims, "g", true) == 0)
- {
- ApplyAnimation(playerid,"STRIP", "strip_G", 4.1, 1, 1, 1, 1, 1 );
- }
- }
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- CMD:dance(playerid, params[])
- {
- if(sscanf(params, "s", anims))
- {
- SendClientMessage(playerid, 0x33AA33AA, "Uso correto: /dance [1-3]");
- }
- else
- {
- if(strcmp(anims, "1", true) == 0)
- {
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
- }
- if(strcmp(anims, "2", true) == 0)
- {
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE2);
- }
- if(strcmp(anims, "3", true) == 0)
- {
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE3);
- }
- }
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- /*===========================***[TERMINO-ZCMD]***=============================*/
- ////////////////////////////////////////////////////////////////////////////////
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == Dialog_VetGrau)
- {
- if(response)
- {
- if(listitem == 0)
- {
- VetOn[playerid] = 1;
- }
- if(listitem == 1)
- {
- VetOn[playerid] = 2;
- }
- if(listitem == 2)
- {
- VetOn[playerid] = 3;
- }
- if(listitem == 3)
- {
- VetOn[playerid] = 4;
- }
- if(listitem == 4)
- {
- VetOn[playerid] = 5;
- }
- if(listitem == 5)
- {
- VetOn[playerid] = 6;
- }
- if(listitem == 6)
- {
- VetOn[playerid] = 7;
- }
- if(listitem == 7)
- {
- VetOn[playerid] = 8;
- }
- if(listitem == 8)
- {
- ShowPlayerDialog(playerid, 321465 , DIALOG_STYLE_MSGBOX, "Sistema Voop" , "Sistema de Voop Desativado" , "Sair" ,"");
- VetOn[playerid] = 0;
- }
- if(listitem == 9)
- {
- new Texto[300];
- format(Texto,300,"{6600FF}Ajuda como Usar o Vetgrau\n");
- strcat(Texto,"{6600FF}» /Vetgrau , Entre em um Carro Depois do escolha o Modo Voop e clique com LMB (MOUSE)\n");
- ShowPlayerDialog(playerid,Dialog_Ajuda2, DIALOG_STYLE_MSGBOX, "{66FF00}Sistema De \t\tGrau\t\t ",Texto, "Sair", "");
- }
- }
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- if(dialogid == DIALOG_PREMIOS)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(Gold[playerid] >= 10)
- {
- Gold[playerid] -= 10;
- new String[128];
- GivePlayerMoney(playerid, 1000);
- SendClientMessage(playerid, -1, "{7FFFD4} Você ganhou {7CFC00}R${AFEEEE} 1000,00");
- format(String, sizeof(String), "{7FFFD4}Você Gastou {AFEEEE}10{7FFFD4} Gold's, e agora tem {AFEEEE}%d{7FFFD4} de Gold!", Gold[playerid]);
- SendClientMessage(playerid, -1, String);
- }
- else
- {
- SendClientMessage(playerid, -1, "{FFA500}[ERRO] {E0FFFF}Você não tem 10 Gold's!");
- }
- }
- else if (listitem == 1)
- {
- if(Gold[playerid] >= 20)
- {
- Gold[playerid] -= 20;
- new String[128];
- GivePlayerMoney(playerid, 2000);
- SendClientMessage(playerid, -1, "{7FFFD4} Você ganhou {7CFC00}R${AFEEEE} 2000,00");
- format(String, sizeof(String), "{7FFFD4}Você Gastou {AFEEEE}20{7FFFD4} Gold's, e agora tem {AFEEEE}%d{7FFFD4} de Gold!", Gold[playerid]);
- SendClientMessage(playerid, -1, String);
- }
- else
- {
- SendClientMessage(playerid, -1, "{FFA500}[ERRO] {E0FFFF}Você não tem 20 Gold's!");
- }
- }
- else if (listitem == 2)
- {
- if(Gold[playerid] >= 50)
- {
- Gold[playerid] -= 50;
- new String[128];
- GivePlayerMoney(playerid, 10000);
- SendClientMessage(playerid, -1, "{7FFFD4} Você ganhou {7CFC00}R${AFEEEE} 10000,00");
- format(String, sizeof(String), "{7FFFD4}Você Gastou {AFEEEE}50{7FFFD4} Gold's, e agora tem {AFEEEE}%d{7FFFD4} de Gold!", Gold[playerid]);
- SendClientMessage(playerid, -1, String);
- }
- else
- {
- SendClientMessage(playerid, -1, "{FFA500}[ERRO] {E0FFFF}Você não tem 50 Gold's!");
- }
- }
- else if (listitem == 3)
- {
- if(Gold[playerid] >= 100)
- {
- Gold[playerid] -= 100;
- new String[128];
- GivePlayerMoney(playerid, 30000);
- SendClientMessage(playerid, -1, "{7FFFD4} Você ganhou {7CFC00}R${AFEEEE} 30000,00");
- format(String, sizeof(String), "{7FFFD4}Você Gastou {AFEEEE}100{7FFFD4} Gold's, e agora tem {AFEEEE}%d{7FFFD4} de Gold!", Gold[playerid]);
- SendClientMessage(playerid, -1, String);
- }
- else
- {
- SendClientMessage(playerid, -1, "{FFA500}[ERRO] {E0FFFF}Você não tem 100 Gold's!");
- }
- }
- else if (listitem == 4)
- {
- if(Gold[playerid] >= 500)
- {
- Gold[playerid] -= 500;
- new String[128];
- GivePlayerMoney(playerid, 200000);
- SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
- SendClientMessage(playerid, -1, "{7FFFD4} Você ganhou {7CFC00}R${AFEEEE} 200000,00{7FFFD4} e {AFEEEE}1{7FFFD4} Nível");
- format(String, sizeof(String), "{7FFFD4}Você Gastou {AFEEEE}500{7FFFD4} Gold's, e agora tem {AFEEEE}%d{7FFFD4} de Gold!", Gold[playerid]);
- SendClientMessage(playerid, -1, String);
- }
- else
- {
- SendClientMessage(playerid, -1, "{FFA500}[ERRO] {E0FFFF}Você não tem 500 Gold's!");
- }
- }
- else if (listitem == 5)
- {
- if(Gold[playerid] >= 750)
- {
- Gold[playerid] -= 750;
- new String[128];
- GivePlayerMoney(playerid, 500000);
- SetPlayerScore(playerid, GetPlayerScore(playerid) + 3);
- SendClientMessage(playerid, -1, "{7FFFD4} Você ganhou {7CFC00}R${AFEEEE} 500000,00{7FFFD4} e {AFEEEE}3{7FFFD4} Níveis");
- format(String, sizeof(String), "{7FFFD4}Você Gastou {AFEEEE}750{7FFFD4} Gold's, e agora tem {AFEEEE}%d{7FFFD4} de Gold!", Gold[playerid]);
- SendClientMessage(playerid, -1, String);
- }
- else
- {
- SendClientMessage(playerid, -1, "{FFA500}[ERRO] {E0FFFF}Você não tem 750 Gold's!");
- }
- }
- else if (listitem == 6)
- {
- if(Gold[playerid] >= 1000)
- {
- Gold[playerid] -= 1000;
- new String[128];
- GivePlayerMoney(playerid, 1000000);
- SetPlayerScore(playerid, GetPlayerScore(playerid) + 10);
- SendClientMessage(playerid, -1, "{7FFFD4} Você ganhou {7CFC00}R${AFEEEE} 1.000.000,00{7FFFD4} e {AFEEEE}10{7FFFD4} Níveis");
- format(String, sizeof(String), "{7FFFD4}Você Gastou {AFEEEE}1000{7FFFD4} Gold's, e agora tem {AFEEEE}%d{7FFFD4} de Gold!", Gold[playerid]);
- SendClientMessage(playerid, -1, String);
- }
- else
- {
- SendClientMessage(playerid, -1, "{FFA500}[ERRO] {E0FFFF}Você não tem 1000 Gold's!");
- }
- }
- }
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- if(dialogid == REGISTRO)
- {
- if(response)
- {
- if(!strlen(inputtext))
- {
- new Nome[MAX_PLAYER_NAME];
- GetPlayerName(playerid, Nome, sizeof(Nome));
- new String[150];
- format(String, sizeof(String), "Nick: %s nao Registrado\n\n Digite Uma Senha Para Continuar", Nome);
- ShowPlayerDialog(playerid, REGISTRO, DIALOG_STYLE_INPUT, "Registro", String, "Registrar", "Cancelar");
- SendClientMessage(playerid,0x1E90FFAA,"Senha invalida, digite uma senha valida");
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- new Nome[MAX_PLAYER_NAME];
- GetPlayerName(playerid, Nome, sizeof(Nome));
- new String[124];
- format(String, sizeof(String), CONTAS, Nome);
- DOF2_CreateFile(String);
- DOF2_SetString(String,"Senha",inputtext);
- DOF2_SetInt(String, "Grana",0);
- DOF2_SetInt(String,"Level",0);
- DOF2_SetInt(String,"Matou",0);
- DOF2_SetInt(String,"Morreu",0);
- DOF2_SetInt(String,"Logou",0);
- DOF2_SetInt(String,"Admin",0);
- ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "Login", "Status Registrado\n\n Digite Sua Senha Para Logar", "Logar", "Cancelar");
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- else
- {
- SendClientMessage(playerid, 0xFF0000AA, "Voce Foi Kickado Porque nao Quis Se Registrar!!");
- Kick(playerid);
- return 1;
- }
- }
- ////////////////////////////////////////////////////////////////////////////////
- if(dialogid == LOGIN)
- {
- if(response)
- {
- if(!strlen(inputtext))
- {
- new Nome[MAX_PLAYER_NAME];
- GetPlayerName(playerid, Nome, sizeof(Nome));
- new String[150];
- format(String, sizeof(String), "Nick: %s Registrado\n\n Digite Sua Senha Para Logar", Nome);
- ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "Registro", String, "Logar", "Cancelar");
- SendClientMessage(playerid,0x1E90FFAA,"Senha Incorreta !");
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- new Nome[MAX_PLAYER_NAME];
- GetPlayerName(playerid, Nome, sizeof(Nome));
- new String[124];
- format(String, sizeof(String), CONTAS, Nome);
- if(!strcmp(inputtext,DOF2_GetString(String,"Senha"),false))
- {
- SetarPlayer(playerid);
- PlayerInfo[playerid][Logou] ++;
- SendClientMessage(playerid,0x00FF00AA,"Você foi logado com sucesso Escolha sua skin");
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- else
- {
- SendClientMessage(playerid,0x00FF00AA,"Senha incorreta digite-a novamente");
- format(String, sizeof(String), "Nick: %s Registrado\n\n Digite Sua Senha Para Logar", Nome);
- ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "Registro", 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;
- }
- ////////////////////////////////////////////////////////////////////////////////
- SalvarPlayer(playerid)
- {
- new Nome[MAX_PLAYER_NAME];
- GetPlayerName(playerid, Nome, sizeof(Nome));
- new String[50];
- format(String, sizeof(String), CONTAS, Nome);
- DOF2_SetInt(String,"Level", GetPlayerScore(playerid));
- DOF2_SetInt(String,"Grana", GetPlayerMoney(playerid));
- DOF2_SetInt(String,"Matou", PlayerInfo[playerid][Matou]);
- DOF2_SetInt(String,"Morreu", PlayerInfo[playerid][Morreu]);
- DOF2_SetInt(String,"Logou", PlayerInfo[playerid][Logou]);
- DOF2_SetInt(String,"Admin", PlayerInfo[playerid][Admin]);
- DOF2_SaveFile();
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- SetarPlayer(playerid)
- {
- new Nome[MAX_PLAYER_NAME];
- GetPlayerName(playerid, Nome, sizeof(Nome));
- new String[50];
- format(String, sizeof(String), CONTAS, Nome);
- SetPlayerScore(playerid,PlayerInfo[playerid][Level]);
- PlayerInfo[playerid][Grana] = DOF2_GetInt(String,"Grana");
- PlayerInfo[playerid][Level] = DOF2_GetInt(String, "Level");
- PlayerInfo[playerid][Matou] = DOF2_GetInt(String, "Matou");
- PlayerInfo[playerid][Morreu] = DOF2_GetInt(String, "Morreu");
- PlayerInfo[playerid][Logou] = DOF2_GetInt(String, "Logou");
- PlayerInfo[playerid][Admin] = DOF2_GetInt(String, "Admin");
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- stock LoadDynamicObjectsFromFile(filename[])
- {
- new File:file_ptr, line[256], modelid, Float:SpawnX, Float:SpawnY, Float:SpawnZ, Float:SpawnRotX, Float:SpawnRotY, Float:SpawnRotZ, objects_loaded;
- file_ptr = fopen(filename, io_read);
- if(!file_ptr) return printf("ERRO! Falha ao carregar objetos do arquivo %s (Arquivo não existe no diretório scriptfiles)!", filename);
- while(fread(file_ptr, line) > 0)
- {
- if(!sscanf(line, "p<,>'('dfffffp<)>f", modelid, SpawnX, SpawnY, SpawnZ, SpawnRotX, SpawnRotY, SpawnRotZ))
- {
- CreateDynamicObject(modelid, SpawnX, SpawnY, SpawnZ, SpawnRotX, SpawnRotY, SpawnRotZ, -1, -1, -1, 200.0);
- objects_loaded++;
- }
- }
- fclose(file_ptr);
- return printf("Objetos: %d carregado(s) de %s", objects_loaded, filename);
- }
- ////////////////////////////////////////////////////////////////////////////////
- stock LoadStaticVehiclesFromFile(filename[])
- {
- new File:file_ptr, line[256], Color1, Color2, modelid, Float:SpawnX, Float:SpawnY, Float:SpawnZ, Float:SpawnRot, vehicles_loaded;
- file_ptr = fopen(filename, io_read);
- if(!file_ptr)
- {
- return printf("ERRO! Falha ao carregar veículos do arquivo %s (O arquivo não existe no diretório scriptfiles)!", filename);
- }
- while(fread(file_ptr, line) > 0)
- {
- if(!sscanf(line, "p<,>dffffdd", modelid, SpawnX, SpawnY, SpawnZ, SpawnRot, Color1, Color2))
- {
- AddStaticVehicleEx(modelid, SpawnX, SpawnY, SpawnZ, SpawnRot, Color1, Color2, -1);
- vehicles_loaded++;
- }
- }
- fclose(file_ptr);
- return printf("Veículos: %d carregado(s) de %s", vehicles_loaded, filename);
- }
- ////////////////////////////////////////////////////////////////////////////////
- public OnPlayerUpdate(playerid)
- {
- new string[128];
- format(string, sizeof(string), "%08d", GetPlayerMoney(playerid));
- TextDrawSetString(Ft[playerid], string);
- return 0;
- }
- ////////////////////////////////////////////////////////////////////////////////
- stock PlayerName(playerid)
- {
- new PlayerNameGold[MAX_PLAYERS];
- GetPlayerName(playerid, PlayerNameGold, MAX_PLAYERS);
- return PlayerNameGold;
- }
- ////////////////////////////////////////////////////////////////////////////////
- forward ActualizarTextDraws();
- ////////////////////////////////////////////////////////////////////////////////
- public ActualizarTextDraws()
- {
- new String[100];
- for(new playerid = 0; playerid < MAX_PLAYERS; playerid ++)
- {
- if(IsPlayerConnected(playerid))
- {
- format(String, sizeof(String), "Gold: %d", Gold[playerid]);
- TextDrawSetString(GoldCat[playerid], String);
- TextDrawShowForPlayer(playerid, GoldCat[playerid]);
- }
- }
- }
- ////////////////////////////////////////////////////////////////////////////////
- forward Timer(playerid);
- ////////////////////////////////////////////////////////////////////////////////
- public Timer(playerid)
- {
- tGold[playerid]++;
- if(tGold[playerid] == 3)
- {
- Gold[playerid]++;
- SendClientMessage(playerid,-1,"{FF3D3D}[INFO]{FFFFFF} Parabéns, você ganhou 1 Gold!");
- tGold[playerid] = 0;
- }
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- public OnPlayerExitedMenu(playerid)
- {
- TextDrawHideForPlayer(playerid, textdraw0);
- TextDrawHideForPlayer(playerid, textdraw1);
- TextDrawHideForPlayer(playerid, textdraw2);
- TextDrawHideForPlayer(playerid, textdraw3);
- TextDrawHideForPlayer(playerid, textdraw4);
- TextDrawHideForPlayer(playerid, textdraw5);
- TogglePlayerControllable(playerid, true);
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- public OnPlayerSelectedMenuRow(playerid, row)
- {
- ////////////////////////////////////////////////////////////////////////////////
- new Menu: Current = GetPlayerMenu(playerid);
- ////////////////////////////////////////////////////////////////////////////////
- if(Current == kits)
- {
- switch(row)
- {
- case 0:
- {
- TextDrawHideForPlayer(playerid, textdraw0);
- TextDrawHideForPlayer(playerid, textdraw1);
- TextDrawHideForPlayer(playerid, textdraw2);
- TextDrawHideForPlayer(playerid, textdraw3);
- TextDrawHideForPlayer(playerid, textdraw4);
- TextDrawHideForPlayer(playerid, textdraw5);
- if(GetPlayerMoney(playerid) >=1500)
- {
- GivePlayerWeapon(playerid, 28, 200);
- GivePlayerWeapon(playerid, 27, 50);
- GivePlayerWeapon(playerid, 24, 40);
- GivePlayerWeapon(playerid, 16, 10);
- GivePlayerMoney(playerid, -1500);
- return SendClientMessage(playerid, green, "Kit comprado.");
- }
- else return SendClientMessage(playerid, red, ":( Você não tem dinheiro suficiente!");
- }
- case 1:
- {
- TextDrawHideForPlayer(playerid, textdraw0);
- TextDrawHideForPlayer(playerid, textdraw1);
- TextDrawHideForPlayer(playerid, textdraw2);
- TextDrawHideForPlayer(playerid, textdraw3);
- TextDrawHideForPlayer(playerid, textdraw4);
- TextDrawHideForPlayer(playerid, textdraw5);
- if(GetPlayerMoney(playerid) >=1500)
- {
- GivePlayerWeapon(playerid, 32, 250);
- GivePlayerWeapon(playerid, 25, 25);
- GivePlayerWeapon(playerid, 31, 200);
- GivePlayerWeapon(playerid, 24, 25);
- GivePlayerWeapon(playerid, 18, 5);
- GivePlayerMoney(playerid, -1500);
- return SendClientMessage(playerid, green, "Kit comprado.");
- }
- else return SendClientMessage(playerid, red, ":( Você não tem dinheiro suficiente!");
- }
- case 2:
- {
- TextDrawHideForPlayer(playerid, textdraw0);
- TextDrawHideForPlayer(playerid, textdraw1);
- TextDrawHideForPlayer(playerid, textdraw2);
- TextDrawHideForPlayer(playerid, textdraw3);
- TextDrawHideForPlayer(playerid, textdraw4);
- TextDrawHideForPlayer(playerid, textdraw5);
- if(GetPlayerMoney(playerid) >=2500)
- {
- GivePlayerWeapon(playerid,26,250);
- GivePlayerWeapon(playerid,28,200);
- GivePlayerWeapon(playerid,30,300);
- GivePlayerWeapon(playerid,22,100);
- GivePlayerMoney(playerid, -2500);
- return SendClientMessage(playerid, green, "Kit comprado.");
- }
- else return SendClientMessage(playerid, red, ":( Você não tem dinheiro suficiente!");
- }
- case 3:
- {
- TextDrawHideForPlayer(playerid, textdraw0);
- TextDrawHideForPlayer(playerid, textdraw1);
- TextDrawHideForPlayer(playerid, textdraw2);
- TextDrawHideForPlayer(playerid, textdraw3);
- TextDrawHideForPlayer(playerid, textdraw4);
- TextDrawHideForPlayer(playerid, textdraw5);
- if(GetPlayerMoney(playerid) >=2500)
- {
- GivePlayerMoney(playerid, -2500);
- GivePlayerWeapon(playerid,27, 50);
- GivePlayerWeapon(playerid,32, 500);
- GivePlayerWeapon(playerid,24, 50);
- GivePlayerWeapon(playerid,31, 200);
- return SendClientMessage(playerid,green, "Kit comprado.");
- }
- else return SendClientMessage(playerid, red, ":( Você não tem dinheiro suficiente! ");
- }
- case 4:
- {
- TextDrawHideForPlayer(playerid, textdraw0);
- TextDrawHideForPlayer(playerid, textdraw1);
- TextDrawHideForPlayer(playerid, textdraw2);
- TextDrawHideForPlayer(playerid, textdraw3);
- TextDrawHideForPlayer(playerid, textdraw4);
- TextDrawHideForPlayer(playerid, textdraw5);
- if(GetPlayerMoney(playerid) >=5000)
- {
- GivePlayerWeapon(playerid,26, 200);
- GivePlayerWeapon(playerid,32, 500);
- GivePlayerWeapon(playerid,24, 50);
- GivePlayerWeapon(playerid,31, 200);
- GivePlayerMoney(playerid, -5000);
- return SendClientMessage(playerid,green, "Kit comprado.");
- }
- else return SendClientMessage(playerid, red, ":( Você não tem dinheiro suficiente! ");
- }
- case 5:
- { TextDrawHideForPlayer(playerid, textdraw0);
- TextDrawHideForPlayer(playerid, textdraw1);
- TextDrawHideForPlayer(playerid, textdraw2);
- TextDrawHideForPlayer(playerid, textdraw3);
- TextDrawHideForPlayer(playerid, textdraw4);
- TextDrawHideForPlayer(playerid, textdraw5);
- if(GetPlayerMoney(playerid) >=15000)
- {
- GivePlayerMoney(playerid, -15000);
- GivePlayerWeapon(playerid, 29, 200);
- GivePlayerWeapon(playerid, 31, 200);
- GivePlayerWeapon(playerid, 16, 10);
- GivePlayerWeapon(playerid, 35, 50);
- return SendClientMessage(playerid,green, "Kit comprado.");
- }
- else return SendClientMessage(playerid, red, ":( Você não tem dinheiro suficiente! ");
- }
- case 6:
- { TextDrawHideForPlayer(playerid, textdraw0);
- TextDrawHideForPlayer(playerid, textdraw1);
- TextDrawHideForPlayer(playerid, textdraw2);
- TextDrawHideForPlayer(playerid, textdraw3);
- TextDrawHideForPlayer(playerid, textdraw4);
- TextDrawHideForPlayer(playerid, textdraw5);
- HideMenuForPlayer(kits,playerid);
- TogglePlayerControllable(playerid,true);
- }
- }
- }
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement