Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- | - Universal Drift v1.0 - |
- ******************| CRÈDITOS |***************
- GM Densevolvido por:
- - .CrazZy._. = "Jefferson Gomes".
- Contato Email: jefferson-gomes16@hotmail.com
- *********************************************
- */
- #include < a_samp >
- #pragma tabsize 0
- //========================[ DIALOGS ]==========================
- #define Comandos 9
- #define MudarCor 10
- #define Horario 11
- #define uD 12
- #define Cores 13
- #define Mundo 14
- #define Musicas 15
- #define Menssagem 16
- //======================[Textdraw Mudando]======================
- new news[][] =
- {
- "U~w~n~b~i~p~v~g~ers~w~a~w~l", "~r~ ~w~D~b~r~g~i~p~f~y~t"
- };
- //====================================[ NEWS ]=======================================
- new AdmCars[3];
- new Text:Jeff1, Text:Jeff2, Text:Jeff3;
- new Text:Rodape;
- new Text:Nome;
- new players;
- new Afk[MAX_PLAYERS];
- new Text:topblack, Text:bottomblack;
- new Text:Textdraw1;
- new Text:On, Text:Ausente;
- new Float:PosX[MAX_PLAYERS], Float:PosY[MAX_PLAYERS], Float:PosZ[MAX_PLAYERS], Float:PosA[MAX_PLAYERS], PosI[MAX_PLAYERS];
- new bool: EnCoche[MAX_PLAYERS];
- new carro[MAX_PLAYERS];
- //==================================[FORWARD]=========================================
- forward OnPlayerVirtualWorldChange(playerid, newworld, oldworld);
- forward DeletarTextodoJeff(playerid);
- forward FLIPAUTO(playerid);
- forward RandomMSG();
- forward IsVehicleOccupied(vehicleid);
- forward RodapeTimer();
- forward atualizar ();
- forward Nitro(playerid);
- new vehName[][] ={
- "Landstalker","Bravura","Buffalo","Linerunner","Pereniel","Sentinel","Dumper","Firetruck","Trashmaster",
- "Stretch","Manana","Infernus","Voodoo","Pony","Mule","Cheetah","Ambulance","Leviathan","Moonbeam","Esperanto",
- "Taxi","Washington","Bobcat","Mr Whoopee","BF Injection","Hunter","Premier","Enforcer","Securicar","Banshee",
- "Predator","Bus","Rhino","Barracks","Hotknife","Trailer","Previon","Coach","Cabbie","Stallion","Rumpo",
- "RC Bandit","Romero","Packer","Monster","Admiral","Squalo","Seasparrow","Pizzaboy","Tram","Trailer",
- "Turismo","Speeder","Reefer","Tropic","Flatbed","Yankee","Caddy","Solair","Berkley's RC Van","Skimmer",
- "PCJ-600","Faggio","Freeway","RC Baron","RC Raider","Glendale","Oceanic","Sanchez","Sparrow","Patriot",
- "Quad","Coastguard","Dinghy","Hermes","Sabre","Rustler","ZR3 50","Walton","Regina","Comet","BMX",
- "Burrito","Camper","Marquis","Baggage","Dozer","Maverick","News Chopper","Rancher","FBI Rancher","Virgo",
- "Greenwood","Jetmax","Hotring","Sandking","Blista Compact","Police Maverick","Boxville","Benson","Mesa",
- "RC Goblin","Hotring Racer A","Hotring Racer B","Bloodring Banger","Rancher","Super GT","Elegant",
- "Journey","Bike","Mountain Bike","Beagle","Cropdust","Stunt","Tanker","RoadTrain","Nebula","Majestic",
- "Buccaneer","Shamal","Hydra","FCR-900","NRG-500","HPV1000","Cement Truck","Tow Truck","Fortune","Cadrona",
- "FBI Truck","Willard","Forklift","Tractor","Combine","Feltzer","Remington","Slamvan","Blade","Freight",
- "Streak","Vortex","Vincent","Bullet","Clover","Sadler","Firetruck","Hustler","Intruder","Primo","Cargobob",
- "Tampa","Sunrise","Merit","Utility","Nevada","Yosemite","Windsor","Monster A","Monster B","Uranus",
- "Jester","Sultan","Stratum","Elegy","Raindance","RC Tiger","Flash","Tahoma","Savanna","Bandito","Freight",
- "Trailer","Kart","Mower","Duneride","Sweeper","Broadway","Tornado","AT-400","DFT-30","Huntley","Stafford",
- "BF-400","Newsvan","Tug","Trailer A","Emperor","Wayfarer","Euros","Hotdog","Club","Trailer B","Trailer C",
- "Andromada","Dodo","RC Cam","Launch","Police Car (LSPD)","Police Car (SFPD)","Police Car (LVPD)","Police Ranger",
- "Picador","S.W.A.T. Van","Alpha","Phoenix","Glendale","Sadler","Luggage Trailer A","Luggage Trailer B",
- "Stair Trailer","Boxville","Farm Plow","Utility Trailer" };
- //============================ CORES ===================================//
- #define Cor 0xFFAA82AA
- #define Verde 0x00FF00FF
- #define Vermelho 0xFF0000AA
- #define Azul 0x0000FFAA
- #define Marron 0x804000AA
- #define Branco 0xFFFFFFAA
- #define Laranja 0xFF8000AA
- #define Azul_Marinho 0x80FFFFAA
- #define Cinza 0xC0C0C0AA
- #define Rosa 0xFF80FFAA
- #define Azul_Claro 0x80BFFFAA
- #define Verde_Escuro 0x007138AA
- #define Amarelo 0xFFFF00AA
- #define Roxo 0x9F009FAA
- #define Verde 0x00FF00FF
- #define Preto 0x00000000
- new mensagens[9][256] = { //Mude o 1 se for colocar mais mensagens
- "INFO: » Xiter's ou cheats no servidor ? utilize: /Report.",
- "INFO: » Chame seus amigos servidor crescendo Humíldemente.",
- "INFO: » Gamemode Densevolvido por .CrazZy._.",
- "INFO: » Universal Drift fazendo o melhor por você.",
- "INFO: » Servidor crescendo com você.",
- "INFO: » Quer trocar acor do seu veículo ? Ùtilize: /Cores.",
- "INFO: » Bugs, algo do tipo no servidor ? contate-nós.",
- "INFO: » Servidor lagando ? ùtilize: /Mundo",
- "INFO: » Equipe [uD] Agradece sua vísita."
- };
- new cores[] = {
- Cor
- };
- main()
- {
- print("\n----------------------------------");
- print("[uD] Universal Drift - BRASIL");
- print("Gamemode densevolvido por: .CrazZy._.");
- print("----------------------------------\n");
- }
- public OnGameModeInit()
- {
- AddStaticPickup(1318, 1, 976.681274, -2151.978515, 13.223649, 0);
- Create3DTextLabel("Mansão oficial da: Universal Drift\nSeja bem Vindo! =D", Azul_Claro, 976.681274, -2151.978515, 13.223649, 500, 0, 1);
- AddStaticPickup(1272, 1, 981.474487, -2152.880371, 13.714790, 0);
- Create3DTextLabel("Entre na mansão da uD!!\n Apete 'F'.", 0xFFFFFFAA, 981.474487, -2152.880371, 13.714790, 500, 0, 1);
- AddStaticPickup(1272, 1, 2324.6113,-1148.4275,1050.7101, 0);
- Create3DTextLabel("Pra sair da mansão Aperte 'F'.", 0xFFFFFFAA, 2324.6113,-1148.4275,1050.7101, 500, 0, 1);
- Create3DTextLabel("Bem Vindo(a), a [uD] - Universal Drift\nPista Oficial da [uD].", Amarelo, -312.7437,1509.3748,75.5625, 60, 0);
- Create3DTextLabel("Segure 'F' pra pegar um elegy.", Amarelo, -300.8931,1555.4410,75.3594, 60, 0);
- //======================================| VEÍCULOS ADMIN |=============================================
- AdmCars[0] = CreateVehicle(446,945.00781250,-2126.42773438,0.00000000,345.51403809,-1,-1,15); //Squalo
- AdmCars[1] = CreateVehicle(446,940.17187500,-2145.98144531,0.00000000,345.51403809,-1,-1,15); //Squalo
- AdmCars[2] = CreateVehicle(487,972.73339844,-2138.79833984,13.49535942,98.00000000,-1,1,15); //Maverick
- Jeff1 = TextDrawCreate(320, 160, " ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ");
- TextDrawUseBox(Jeff1, 1);
- TextDrawAlignment(Jeff1, 2);
- TextDrawBoxColor(Jeff1, 0x000000AA);
- TextDrawTextSize(Jeff1, 400, 400);
- Jeff2 = TextDrawCreate(247.000000, 143.000000, " ~g~Bem Vindo");
- TextDrawSetShadow(Jeff2, 0);
- TextDrawSetOutline(Jeff2, 1);
- TextDrawLetterSize(Jeff2, 0.280000, 1.400001);
- TextDrawFont(Jeff2, 3);
- TextDrawAlignment(Jeff2, 2);
- TextDrawSetProportional(Jeff2, 1);
- TextDrawColor(Jeff2, 0x00FFAAFF);
- Jeff3 = TextDrawCreate(170.000000, 173.000000, "Bem vindo a [uD]~n~~n~Aqui pra voce ser bem tratado, voce tem que tratar os outros.~n~~n~Nao tente usar qualquer tipo de cheater, /hack/s0rvete.~n~~n~Tambem devera respeitar os players & adminstradores.~n~~n~Utulize: /Comandos pra saber tudo do servidor.~n~~n~Bom jogo =)!");
- TextDrawSetShadow(Jeff3, 0);
- TextDrawSetOutline(Jeff3, 1);
- TextDrawLetterSize(Jeff3, 0.2904, 0.946);
- TextDrawFont(Jeff3, 1);
- TextDrawSetProportional(Jeff3, 1);
- for(new i; i < MAX_PLAYERS; i++)
- Ausente = TextDrawCreate(19.000000, 190.000000, "Voce esta ausente ~p~/afk");
- TextDrawBackgroundColor(Ausente, 65535);
- TextDrawFont(Ausente, 1);
- TextDrawLetterSize(Ausente, 0.500000, 1.000000);
- TextDrawColor(Ausente, 16711935);
- TextDrawSetOutline(Ausente, 0);
- TextDrawSetProportional(Ausente, 1);
- TextDrawSetShadow(Ausente, 1);
- TextDrawUseBox(Ausente, 1);
- TextDrawBoxColor(Ausente, 0x00000066);
- TextDrawTextSize(Ausente, 277.000000, 201.000000);
- On = TextDrawCreate(18.000000, 216.000000, "Para voltar ao jogo digite /on");
- TextDrawBackgroundColor(On, 16711935);
- TextDrawFont(On, 1);
- TextDrawLetterSize(On, 0.500000, 1.000000);
- TextDrawColor(On, -16711681);
- TextDrawSetOutline(On, 0);
- TextDrawSetProportional(On, 1);
- TextDrawSetShadow(On, 1);
- TextDrawUseBox(On, 1);
- TextDrawBoxColor(On, 0x00000066);
- TextDrawTextSize(On, 277.000000, 0.000000);
- Rodape = TextDrawCreate(608.000000, 425.000000, "(/)");//(/)
- TextDrawBackgroundColor(Rodape, 255);
- TextDrawFont(Rodape, 2);
- TextDrawLetterSize(Rodape, 0.159999, 0.800000);
- TextDrawColor(Rodape, -1);
- TextDrawSetOutline(Rodape, 1);
- TextDrawSetProportional(Rodape, 1);
- SetTimer("RodapeTimer", 1000, true);
- SetTimer("atualizar", 3000, 1); //Setimer ira atualizar a cada 300 Mile.
- Nome = TextDrawCreate(535.000000, 412.000000, "__");
- TextDrawBackgroundColor(Nome, 255);
- TextDrawFont(Nome, 0);
- TextDrawLetterSize(Nome, 0.519999, 2.399999);
- TextDrawColor(Nome, -65281);
- TextDrawSetOutline(Nome, 1);
- TextDrawSetProportional(Nome, 1);
- // ============================ TestDrawEntrada :D PRETO ========================
- topblack = TextDrawCreate(1.000000,-45.000000,"__");
- bottomblack = TextDrawCreate(-2.000000,371.000000,"__");
- TextDrawUseBox(topblack,1);
- TextDrawBoxColor(topblack,0x000000ff);
- TextDrawTextSize(topblack,655.000000,80.000000);
- TextDrawUseBox(bottomblack,1);
- TextDrawBoxColor(bottomblack,0x000000ff);
- TextDrawTextSize(bottomblack,840.000000,240.000000);
- TextDrawAlignment(topblack,0);
- TextDrawAlignment(bottomblack,0);
- TextDrawBackgroundColor(topblack,0x000000ff);
- TextDrawBackgroundColor(bottomblack,0x000000ff);
- TextDrawFont(topblack,3);
- TextDrawLetterSize(topblack,1.000000,14.000000);
- TextDrawFont(bottomblack,3);
- TextDrawLetterSize(bottomblack,1.000000,24.000000);
- TextDrawColor(topblack,0xffffffff);
- TextDrawColor(bottomblack,0xffffffff);
- TextDrawSetOutline(topblack,1);
- TextDrawSetOutline(bottomblack,1);
- TextDrawSetProportional(topblack,1);
- TextDrawSetProportional(bottomblack,1);
- TextDrawSetShadow(topblack,1);
- TextDrawSetShadow(bottomblack,1);
- Textdraw1 = TextDrawCreate(530.000000, 439.000000, "www.equipe-ud.blogspot.com");
- TextDrawBackgroundColor(Textdraw1, 255);
- TextDrawFont(Textdraw1, 2);
- TextDrawLetterSize(Textdraw1, 0.159999, 0.700000);
- TextDrawColor(Textdraw1, -1);
- TextDrawSetOutline(Textdraw1, 1);
- TextDrawSetProportional(Textdraw1, 1);
- for(new i = 0; i < 299; i++)
- {
- switch(i)
- {
- case 3, 4, 5, 6, 7, 8, 42, 53, 64, 74, 86, 91, 149, 208, 273, 289:
- {
- continue;
- }
- }
- AddPlayerClass(i, 976.6573,-2163.1172,13.1535,359.8774, 0, 0, 0, 0, 0, 0);
- }
- SetGameModeText("[uD]- Brasil 2011");
- SendRconCommand("mapname Brasil Drift");
- SendRconCommand("hostname |«»|uD|«»| - Universal Drift™ | 0.3d");
- SetTimer("RandomMSG",150000,1);
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid,2028.6447,1551.3442,26.5231);
- SetPlayerFacingAngle(playerid,175.8012);
- SetPlayerCameraPos(playerid,2028.7723,1546.7264,27.4419);
- SetPlayerCameraLookAt(playerid,2028.6447,1551.3442,26.5231);
- ApplyAnimation(playerid, "ON_LOOKERS", "wave_loop", 4.0, 1, 0, 0, 0, 0); // Wave
- /* SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid,-316.7726,1537.8578,79.3660);
- SetPlayerCameraPos(playerid,-318.7147,1540.8372,80.3377);//aqui
- SetPlayerCameraLookAt(playerid,-316.7726,1537.8578,79.3660);
- ApplyAnimation(playerid,"ON_LOOKERS","panic_hide",4.1,0,1,1,1,1);*/
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- SendClientMessage(playerid, Cinza,"|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|");
- SendClientMessage(playerid, Branco, "- [uD] Usá a versão 1.0 do Gamemode, equipe[uD] sempre inovando!");
- SendClientMessage(playerid, Branco, "- Equipe [uD] Agradece sua vísita, tenha um bom jogo!");
- SendClientMessage(playerid, Cinza,"|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|__|");
- players++;
- new nome[24], string[60];
- GetPlayerName(playerid, nome, 24);
- format(string, 60,"%s Conectou-se no servidor da [uD]. (%d/%d)",nome, players, GetMaxPlayers());
- SendClientMessageToAll(Cinza, string);
- TextDrawShowForPlayer(playerid, Textdraw1);
- TextDrawShowForPlayer(playerid, topblack);
- TextDrawShowForPlayer(playerid, bottomblack);
- TextDrawShowForPlayer(playerid, Rodape);
- SetTimerEx("DeletarTextodoJeff",100000,0,"i",playerid);
- TextDrawShowForPlayer(playerid, Jeff1);
- TextDrawShowForPlayer(playerid, Jeff2);
- TextDrawShowForPlayer(playerid, Jeff3);
- TogglePlayerControllable(playerid, 0);
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- new
- string[64],
- name[MAX_PLAYER_NAME];
- GetPlayerName(playerid,name,MAX_PLAYER_NAME);
- switch(reason)
- {
- case 0: format(string,sizeof string,"%s Saiu da [uD]. | Fail Conexão |",name);
- case 1: format(string,sizeof string,"%s Saiu da [uD]. | Disconectou-se |",name);
- case 2: format(string,sizeof string,"%s Saiu da [uD]. | Kickado/Banido |",name);
- }
- SendClientMessageToAll(Cinza,string);
- TextDrawHideForPlayer(playerid, Nome);
- TextDrawHideForPlayer(playerid, Rodape);
- players--;
- StopAudioStreamForPlayer(playerid);
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- SendClientMessage(playerid,Cinza,"** Sem veículo ? Ùtilize: /carro [nome] [cor1] [cor2] - Divirta-se. **");
- TextDrawHideForPlayer(playerid, topblack);
- TextDrawHideForPlayer(playerid, bottomblack);
- TextDrawHideForAll(Jeff1);//Desligará o TextDraw De Todos
- TextDrawHideForAll(Jeff2);//Desligará o TextDraw De Todos
- TextDrawHideForAll(Jeff3);//Desligará o TextDraw De Todos
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- GameTextForPlayer(playerid,"~r~Morreuuu ~b~Playboy!!",1000,1);
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- new string[128];
- format(string, sizeof(string), "(%d) %s", playerid, text);
- SendPlayerMessageToAll(playerid, string);
- SetPlayerChatBubble(playerid, text, 0xFF0000FF, 100.0, 10000);
- return 0;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- new cmd[256];
- new idx;
- new tmp[256];
- new string[256];
- new txt[256];
- cmd = strtok(cmdtext, idx);
- if(strcmp(cmdtext, "/entrandointerior", true) == 0)
- {
- if(IsPlayerInRangeOfPoint(playerid, 2.0, 981.474487, -2152.880371, 13.714790))
- {
- SetPlayerInterior(playerid, 12);
- SetPlayerPos(playerid, 2324.419921,-1145.568359,1050.710083);
- SendClientMessage(playerid,Verde,"Você entro na mansão da uD!");
- }
- return true;
- }
- if(strcmp(cmdtext, "/sairdointerior", true) == 0)
- {
- if(IsPlayerInRangeOfPoint(playerid, 2.0, 2324.6113,-1148.4275,1050.7101))
- {
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid, 981.474487, -2152.880371, 13.714790);
- SendClientMessage(playerid,Vermelho,"Você saiu da mansão da uD!");
- }
- return true;
- }
- if(strcmp("/cruzarbraço", cmd, true) == 0)
- {
- ApplyAnimation(playerid, "COP_AMBIENT", "Coplook_loop", 4.0, 0, 1, 1, 1, -1);
- return 1;
- }
- if(strcmp("/deitar", cmd, true) == 0)
- {
- ApplyAnimation(playerid, "BEACH", "bather", 4.0, 1, 0, 0, 0, 0);
- return 1;
- }
- if(strcmp("/abaixar", cmd, true) == 0)
- {
- ApplyAnimation(playerid, "ped", "cower", 3.0, 1, 0, 0, 0, 0);
- return 1;
- }
- if(strcmp("/fumar", cmd, true) == 0)
- {
- ApplyAnimation(playerid, "SMOKING", "M_smklean_loop", 4.0, 1, 0, 0, 0, 0);
- return 1;
- }
- if(strcmp("/fumar2", cmd, true) == 0)
- {
- ApplyAnimation(playerid, "SMOKING", "F_smklean_loop", 4.0, 1, 0, 0, 0, 0);
- return 1;
- }
- if(strcmp("/sentar", cmd, true) == 0)
- {
- ApplyAnimation(playerid, "BEACH", "ParkSit_M_loop", 4.0, 1, 0, 0, 0, 0);
- return 1;
- }
- if(strcmp("/conversar", cmd, true) == 0)
- {
- ApplyAnimation(playerid, "PED", "IDLE_CHAT", 4.0, 0, 0, 0, 0, 0);
- return 1;
- }
- //=============================================== CONSTRUINDO ;D ===============================================================
- if(strcmp(cmd,"/car",true) ==0 || strcmp(cmd,"/carro",true)==0)
- {
- new VeiculosNomesC[][] =
- {
- "Landstalker","Bravura","Buffalo","Linerunner","Pereniel","Sentinel","Dumper","Firetruck","Trashmaster",
- "Stretch","Manana","Infernus","Voodoo","Pony","Mule","Cheetah","Ambulancia","Leviathan","Moonbeam","Esperanto",
- "Taxi","Washington","Bobcat","Mr Whoopee","BF Injection","Hunter","Premier","Enforcer","Securicar","Banshee",
- "Predator","Bus","Rhino","Barracks","Hotknife","Trailer","Previon","Coach","Cabbie","Stallion","Rumpo",
- "RC Bandit","Romero","Packer","Monster","Admiral","Squalo","Seasparrow","Pizzaboy","Tram","Trailer",
- "Turismo","Speeder","Reefer","Tropic","Flatbed","Yankee","Caddy","Solair","Berkley's RC Van","Skimmer",
- "PCJ-600","Faggio","Freeway","RC Baron","RC Raider","Glendale","Oceanic","Sanchez","Sparrow","Patriot",
- "Quad","Coastguard","Dinghy","Hermes","Sabre","Rustler","ZR-350","Walton","Regina","Comet","BMX",
- "Burrito","Camper","Marquis","Baggage","Dozer","Maverick","News Chopper","Rancher","FBI Rancher","Virgo",
- "Greenwood","Jetmax","Hotring","Sandking","Blista Compact","Maverick Policial","Boxville","Benson","Mesa",
- "RC Goblin","Hotring Racer A","Hotring Racer B","Bloodring Banger","Rancher","Super GT","Elegant",
- "Journey","Bike","Mountain Bike","Beagle","Cropdust","Stunt","Tanker","RoadTrain","Nebula","Majestic",
- "Buccaneer","Shamal","Hydra","FCR-900","NRG-500","HPV1000","Cement Truck","Tow Truck","Fortune","Cadrona",
- "FBI Truck","Willard","Forklift","Tractor","Combine","Feltzer","Remington","Slamvan","Blade","Freight",
- "Streak","Vortex","Vincent","Bullet","Clover","Sadler","Firetruck","Hustler","Intruder","Primo","Cargobob",
- "Tampa","Sunrise","Merit","Utility","Nevada","Yosemite","Windsor","Monster A","Monster B","Uranus",
- "Jester","Sultan","Stratum","Elegy","Raindance","RC Tiger","Flash","Tahoma","Savanna","Bandito","Freight",
- "Trailer","Kart","Mower","Duneride","Sweeper","Broadway","Tornado","AT-400","DFT-30","Huntley","Stafford",
- "BF-400","Newsvan","Tug","Trailer A","Emperor","Wayfarer","Euros","Hotdog","Club","Trailer B","Trailer C",
- "Andromada","Dodo","RC Cam","Launch","Viatura (LSPD)","Viatura (SFPD)","Viatura (LVPD)","Police Ranger",
- "Picador","S.W.A.T. Van","Alpha","Phoenix","Glendale","Sadler","Luggage Trailer A","Luggage Trailer B",
- "Stair Trailer","Boxville","Farm Plow","Utility Trailer"
- };
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, Verde, "[Info] USO: /carro [nome] [color1] [color2]");
- return 1;
- }
- new carnome[25], bool:have;
- format(carnome, sizeof(carnome), tmp);
- for(new x = 0; x < 212; x++)
- {
- if(!strcmp(carnome,VeiculosNomesC[x],true))
- {
- have = true;
- }
- }
- if(!have) return SendClientMessage(playerid, Vermelho, "Nome de veículo inválido !");
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, Verde, "[Info] USO: /car [nome] [color1] [color2]");
- return 1;
- }
- new color1;
- color1 = strval(tmp);
- if(color1 < -1 || color1 > 300) { SendClientMessage(playerid, Vermelho, " Id's de cores tem que ser entre 0 e 300 !"); return 1; }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, Verde, "[Info] USO: /carro [nome] [color1] [color2]");
- return 1;
- }
- new color2;
- color2 = strval(tmp);
- if(color2 < -1 || color2 > 300) { SendClientMessage(playerid, Vermelho, "Id's de cores tem que ser entre 0 e 300 !"); return 1; }
- new carval;
- for(new y = 0; y < 212; y++)
- {
- if(!strcmp(carnome,VeiculosNomesC[y],true)) carval = (y+400);
- }
- if(IsPlayerInAnyVehicle(playerid)) DestroyVehicle(GetPlayerVehicleID(playerid));
- if(carro[playerid] != 0) DestroyVehicle(carro[playerid]);
- new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x,y,z);
- new carid = CreateVehicle(carval, x,y,z, 0.0, color1, color2, 888);
- PutPlayerInVehicle(playerid, carid, 0);
- format(string, sizeof(string), "[Info] Veículo [ID] %d, criado.", carid);
- SendClientMessage(playerid, Verde, string);
- return 1;
- }
- if(strcmp(cmdtext,"/mansao", true) == 0)
- {
- new VehicleID;
- new pname[MAX_PLAYER_NAME];
- if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xC9170EFF, "[ERROR]: Você precisa estár em um veículo.");
- GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
- format(string, sizeof(string),"%s Foi pra mansão da uD. (/Mansão)", pname);
- SendClientMessageToAll(Verde, string);
- VehicleID = GetPlayerVehicleID(playerid);
- SetVehiclePos(VehicleID, 976.6573,-2163.1172,13.1535);
- SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0);
- SetPlayerInterior(playerid,0);
- return 1;
- }
- if(strcmp(cmdtext,"/sf", true) == 0)
- {
- new VehicleID;
- new pname[MAX_PLAYER_NAME];
- if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xC9170EFF, "[ERROR]: Você precisar estár em um veículo.");
- GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
- format(string, sizeof(string),"%s Foi pra cidade de San Fierro (/Sf)", pname);
- SendClientMessageToAll(Verde, string);
- VehicleID = GetPlayerVehicleID(playerid);
- SetVehiclePos(VehicleID, -1973.3356,288.3230,34.8320);
- SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0);
- SetPlayerInterior(playerid,0);
- return 1;
- }
- if(strcmp(cmdtext,"/lv", true) == 0)
- {
- new VehicleID;
- new pname[MAX_PLAYER_NAME];
- if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xC9170EFF, "[ERROR]: Você precisar estár em um veículo.");
- GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
- format(string, sizeof(string),"%s Foi pra cidade de Las Venturas (/Lv)", pname);
- SendClientMessageToAll(Verde, string);
- VehicleID = GetPlayerVehicleID(playerid);
- SetVehiclePos(VehicleID, 1692.8406,1434.9109,10.3291);
- SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0);
- SetPlayerInterior(playerid,0);
- return 1;
- }
- if(strcmp(cmdtext,"/ls", true) == 0)
- {
- new VehicleID;
- new pname[MAX_PLAYER_NAME];
- if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xC9170EFF, "[ERROR]: Você precisar estár em um veículo.");
- GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
- format(string, sizeof(string),"%s Foi pra cidade de Los Santos (/Ls)", pname);
- SendClientMessageToAll(Verde, string);
- VehicleID = GetPlayerVehicleID(playerid);
- SetVehiclePos(VehicleID, 1601.3708,-1624.0551,13.1385);
- SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0);
- SetPlayerInterior(playerid,0);
- return 1;
- }
- if(strcmp(cmdtext,"/ud1", true) == 0)
- {
- new VehicleID;
- new pname[MAX_PLAYER_NAME];
- if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xC9170EFF, "[ERROR]: Você precisar estár em um veículo.");
- GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
- format(string, sizeof(string),"%s Foi pro /UD1 Pista Oficial", pname);
- SendClientMessageToAll(Verde, string);
- VehicleID = GetPlayerVehicleID(playerid);
- SetVehiclePos(VehicleID, -364.7623,1532.6614,75.3594);
- SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0);
- SetPlayerInterior(playerid,0);
- return 1;
- }
- if(strcmp(cmdtext,"/ud2", true) == 0)
- {
- new VehicleID;
- new pname[MAX_PLAYER_NAME];
- if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xC9170EFF, "[ERROR]: Você precisar estár em um veículo.");
- GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
- format(string, sizeof(string),"%s Foi pro /UD2 Pista de drift", pname);
- SendClientMessageToAll(Verde, string);
- VehicleID = GetPlayerVehicleID(playerid);
- SetVehiclePos(VehicleID, 1255.3643,-2033.8282,59.5524);
- SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0);
- SetPlayerInterior(playerid,0);
- return 1;
- }
- if(strcmp(cmdtext,"/ud3", true) == 0)
- {
- new VehicleID;
- new pname[MAX_PLAYER_NAME];
- if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xC9170EFF, "[ERROR]: Você precisar estár em um veículo.");
- GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
- format(string, sizeof(string),"%s Foi pro /UD3 Pista de drift", pname);
- SendClientMessageToAll(Verde, string);
- VehicleID = GetPlayerVehicleID(playerid);
- SetVehiclePos(VehicleID, 2262.9102,1398.5728,42.8203);
- SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0);
- SetPlayerInterior(playerid,0);
- return 1;
- }
- if(strcmp(cmdtext,"/ud4", true) == 0)
- {
- new VehicleID;
- new pname[MAX_PLAYER_NAME];
- if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xC9170EFF, "[ERROR]: Você precisar estár em um veículo.");
- GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
- format(string, sizeof(string),"%s Foi pro /UD4 Pista de drift", pname);
- SendClientMessageToAll(Verde, string);
- VehicleID = GetPlayerVehicleID(playerid);
- SetVehiclePos(VehicleID, 2226.2451,1978.7045,31.7797);
- SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0);
- SetPlayerInterior(playerid,0);
- return 1;
- }
- if(!strcmp(cmd,"/pm",true))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- return SendClientMessage(playerid,0xFF0000AA,"[USO CORRETO] /pm [playerid] [mensagem]");
- new id = strval(tmp);
- if(id == playerid)
- {
- SendClientMessage(playerid,0xFF0000AA,"[ERRO] Você não pode enviar PM pra você mesmo.");
- return 1;
- }
- if(IsPlayerConnected(id)){
- //new txt[256];
- txt = strtok(cmdtext,idx);
- if(!strlen(txt))
- return SendClientMessage(playerid,0xFF0000AA,"[USO CORRETO] /pm [playerid] [mensagem]");
- new pName[MAX_PLAYER_NAME],RecName[MAX_PLAYER_NAME];
- GetPlayerName(id, RecName, sizeof(RecName));
- GetPlayerName(playerid, pName, sizeof(pName));
- GetPlayerName(playerid, pName, sizeof(pName));
- GetPlayerName(id, RecName, sizeof(RecName));
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[64];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- for(new luplay=0;luplay<6;luplay++){
- PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
- PlayerPlaySound(id,1057,0.0,0.0,0.0);
- format(string, sizeof(string), "[PM] Recebida de %s(%i): %s", pName, playerid, cmdtext[1]);
- SendClientMessage(id,0xFFFF00AA, string);
- format(string, sizeof(string), "[PM] Enviada para %s(%i): %s", RecName, id, cmdtext[1]);
- SendClientMessage(playerid,0xFFFF00AA, string);}
- } else {
- SendClientMessage(playerid,0xFF0000AA,"[ERRO] O jogador não está conectado.");
- }
- return 0;
- }
- if(strcmp(cmd, "/afk", true) == 0)
- {
- if(Afk[playerid]==0)
- {
- Afk[playerid]=1;
- SetPlayerVirtualWorld(playerid, 1);
- SetCameraBehindPlayer(playerid);
- TogglePlayerControllable(playerid,0);
- TextDrawShowForPlayer(playerid,Ausente);
- TextDrawShowForPlayer(playerid,On);
- new Ausentes[200];
- GetPlayerName(playerid, Ausentes, 30);
- format(string, 256, "%s Esta Ausente /afk.", Ausentes);
- SendClientMessageToAll( 0x00FFFFAA, string);
- }else{
- SendClientMessage(playerid,0xF60000AA,"(ERRO) Você já está no modo AFK!");
- return 1;
- }
- return 1;
- }
- if(strcmp(cmd, "/on", true) == 0)
- {
- if(Afk[playerid]==1)
- {
- Afk[playerid]=0;
- SetPlayerVirtualWorld(playerid, 0);
- TogglePlayerControllable(playerid,1);
- TextDrawHideForPlayer(playerid,Ausente);
- TextDrawHideForPlayer(playerid,On);
- new Onli[200];
- GetPlayerName(playerid, Onli, 30);
- format(string, 256, "%s Voltou ao Jogo.", Onli);
- SendClientMessageToAll( 0x00FFFFAA, string);
- }else{
- SendClientMessage(playerid,0xF60000AA,"(ERRO) Você não está Afk!");
- return 1;
- }
- return 1;
- }
- if(strcmp(cmd, "/goto", true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- new Float:X, Float:Y, Float:Z, PlayerB;
- if(!strlen(tmp)) return SendClientMessage(playerid, Vermelho, "Uso correto: /goto [id]");
- PlayerB = strval(tmp);
- if(!IsPlayerConnected(PlayerB)) return SendClientMessage(playerid, Vermelho, "Este jogador não está online.");
- GetPlayerPos(PlayerB, X, Y, Z);
- SetPlayerPos(playerid, X, Y+1, Z);
- if(GetPlayerState(playerid) == 2)
- {
- new carrro = GetPlayerVehicleID(playerid);
- SetVehiclePos(carrro, X, Y+1, Z);
- PutPlayerInVehicle(playerid, carrro, 0);
- }
- format(string, sizeof(string), "Você foi até o jogador %s.", pNome(PlayerB));
- SendClientMessage(playerid, Verde, string);
- format(string, sizeof(string), "O Player %s foi até você.", pNome(playerid));
- SendClientMessage(PlayerB, Verde, string);
- return 1;
- }
- if (strcmp("/creditos", cmdtext, true, 10) == 0)
- {
- new creditos[3000];
- strins(creditos,"\n",strlen(creditos));
- strins(creditos,"Gamemode Criado por: .CrazZy._.\nDonos: [uD].CrazZy._. & \nScripter: .CrazZy._.\nsite: seu site\nContato: Jefferson.pipo@hotmail.com\n",strlen(creditos));
- strins(creditos,"\n",strlen(creditos));
- ShowPlayerDialog(playerid,8439, DIALOG_STYLE_MSGBOX, " ----------- Créditos ----------- ",creditos, "Ok","Fechar");
- return 1;
- }
- if(strcmp("/Mundo", cmdtext, true, 10) == 0)
- {
- ShowPlayerDialog(playerid,Mundo,DIALOG_STYLE_LIST,"Escolha um mundo:","|uD| Mundo 0 - Principal\n|uD| Mundo 1 - Alternativo\n|uD| Mundo 2 - Alternativo\n|uD| Mundo 3 - Alternativo\n|uD| Mundo 4 - Alternativo\n|uD| Mundo 5 - Alternativo","OK","Fechar");
- return 1;
- }
- if(strcmp(cmdtext, "/aerolv", true) == 0)
- {
- new cartype = GetPlayerVehicleID(playerid);
- new State=GetPlayerState(playerid);
- SetPlayerInterior(playerid,0);
- {
- if(State!=PLAYER_STATE_DRIVER)
- {
- SetPlayerPos(playerid,1508.4031,1449.0800,10.8494);
- }
- else if(IsPlayerInVehicle(playerid, cartype) == 1)
- {
- SetVehiclePos(cartype,1508.4031,1449.0800,10.8494);
- SetVehicleZAngle(cartype,30.6101);}
- else
- {
- SetPlayerPos(playerid,1508.4031,1449.0800,10.8494);
- }
- new pname[MAX_PLAYER_NAME];
- GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
- format(string, sizeof(string), "%s Foi pro Aeroporto de Lv (/Aerolv)", pname);
- SendClientMessageToAll(0x80FF00FF, string);
- }
- return 1;
- }
- if(strcmp(cmdtext, "/aerols", true) == 0)
- {
- new cartype = GetPlayerVehicleID(playerid);
- new State=GetPlayerState(playerid);
- SetPlayerInterior(playerid,0);
- {
- if(State!=PLAYER_STATE_DRIVER)
- {
- SetPlayerPos(playerid,1832.2773,-2474.8826,13.5547);
- }
- else if(IsPlayerInVehicle(playerid, cartype) == 1)
- {
- SetVehiclePos(cartype,1832.2773,-2474.8826,13.5547);
- SetVehicleZAngle(cartype,189.0651);}
- else
- {
- SetPlayerPos(playerid,1832.2773,-2474.8826,13.5547);
- }
- new pname[MAX_PLAYER_NAME];
- GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
- format(string, sizeof(string), "%s Foi pro Aeroporto de LS (/Aerols)", pname);
- SendClientMessageToAll(0x80FF00FF, string);
- }
- return 1;
- }
- if(strcmp(cmdtext, "/aerosf", true) == 0)
- {
- new cartype = GetPlayerVehicleID(playerid);
- new State=GetPlayerState(playerid);
- SetPlayerInterior(playerid,0);
- {
- if(State!=PLAYER_STATE_DRIVER)
- {
- SetPlayerPos(playerid,-1444.3123,31.4322,14.1484);
- }
- else if(IsPlayerInVehicle(playerid, cartype) == 1)
- {
- SetVehiclePos(cartype,-1444.3123,31.4322,14.1484);
- SetVehicleZAngle(cartype,30.6101);}
- else
- {
- SetPlayerPos(playerid,-1444.3123,31.4322,14.1484);
- }
- new pname[MAX_PLAYER_NAME];
- GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
- format(string, sizeof(string), "%s Foi pro Aeroporto de SF (/Aerosf)", pname);
- SendClientMessageToAll(0x80FF00FF, string);
- }
- return 1;
- }
- if(strcmp(cmdtext, "/ps", true) == 0)
- {
- new cartype = GetPlayerVehicleID(playerid);
- new State=GetPlayerState(playerid);
- SetPlayerInterior(playerid,0);
- {
- if(State!=PLAYER_STATE_DRIVER)
- {
- SetPlayerPos(playerid,3747.6513671875, -1226.2119140625, 223.36529541016);
- }
- else if(IsPlayerInVehicle(playerid, cartype) == 1)
- {
- SetVehiclePos(cartype,3747.6513671875, -1226.2119140625, 223.36529541016);
- SetVehicleZAngle(cartype,30.6101);}
- else
- {
- SetPlayerPos(playerid,3747.6513671875, -1226.2119140625, 223.36529541016);
- }
- new pname[MAX_PLAYER_NAME];
- GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
- format(string, sizeof(string), "%s Foi Correr na Pista speed (/Ps)", pname);
- SendClientMessageToAll(0x80FF00FF, string);
- }
- return 1;
- }
- if(strcmp(cmd, "/skin", true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)) return SendClientMessage(playerid, Vermelho, "[USO CORRETO] /skin [skinid]");
- if(strval(tmp) < 0 || strval(tmp) > 299) return SendClientMessage(playerid, Vermelho, "[ERRO] O ID das skins são de 0 até 299!");
- SendClientMessage(playerid, Verde, "[INFO] Skin alterado Com sucesso!");
- SetPlayerSkin(playerid, strval(tmp));
- return 1;
- }
- if (strcmp(cmdtext, "/cores", true) == 0){
- if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xC9170EFF, "[ERROR]: Você Não Esta Em Um Veículo!!");
- ShowPlayerDialog(playerid, Cores, DIALOG_STYLE_LIST, "Menu Cores", "[ Preta ]\n[ Branca ]\n[ Azul Escuro ]\n[ Azul Claro ]\n[ Verde ]\n[ Vermelho ]\n[ Amarelho ]", "OK", "Sair");
- return 1;
- }
- if(strcmp(cmdtext,"/x",true)==0) //GetVehicleZAngle(vehicleid, &Float:z_angle);
- {
- if(IsPlayerInAnyVehicle(playerid)){
- new Float:plocx,Float:plocy,Float:plocz;
- GetVehiclePos(GetPlayerVehicleID(playerid), plocx, plocy, plocz);
- SetVehicleZAngle(GetPlayerVehicleID(playerid),plocz);}
- SendClientMessage(playerid,Verde, "INFO: Você virou seu Veiculo com sucesso!");
- PlayerPlaySound(playerid, 1137 , 0.0, 0.0, 0.0);
- return 1;
- }
- if (strcmp("/sp", cmdtext, true, 10) == 0){
- GetPlayerPos(playerid, PosX[playerid], PosY[playerid], PosZ[playerid]);
- GetPlayerFacingAngle(playerid, PosA[playerid]);
- SendClientMessage(playerid, 0x57E427AA, "[INFO]: Sua posição foi salva, para voltar use: /irp");
- PosI[playerid] = (GetPlayerInterior(playerid));
- PlayerPlaySound(playerid, 1137 , 0.0, 0.0, 0.0);
- return 1;
- }
- if (strcmp("/irp", cmdtext, true, 10) == 0){
- if (!floatsqroot(PosX[playerid]+PosY[playerid]+PosZ[playerid]))
- {
- SendClientMessage(playerid, 0xF60000AA, "[ERRO] Você não tem nenhuma posição salva.");
- }
- else
- {
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- SetVehiclePos(GetPlayerVehicleID(playerid), PosX[playerid], PosY[playerid], PosZ[playerid]);
- SetVehicleZAngle(GetPlayerVehicleID(playerid), PosA[playerid]);
- SetCameraBehindPlayer(playerid);
- LinkVehicleToInterior(GetPlayerVehicleID(playerid), PosI[playerid]);
- }
- else
- {
- EnCoche[playerid] = false;
- SetPlayerPos(playerid, PosX[playerid], PosY[playerid], PosZ[playerid]);
- SetPlayerFacingAngle(playerid, PosA[playerid]);
- SetCameraBehindPlayer(playerid);
- }
- PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
- SetPlayerInterior(playerid, PosI[playerid]);
- SendClientMessage(playerid, 0x008040FF, "Você se teleportou para a ultima posição salva.");
- }
- return 1;
- }
- /* if(!strcmp(cmdtext, "/elegy", true))
- {
- if(IsPlayerInAnyVehicle(playerid)) DestroyVehicle(GetPlayerVehicleID(playerid));
- if(carro[playerid] != 0) DestroyVehicle(carro[playerid]);
- new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x,y,z);
- carro[playerid] = CreateVehicle(562, x,y,z, 0.0, -1, -1, 888);
- PutPlayerInVehicle(playerid, carro[playerid], 0);
- SendClientMessage(playerid,Verde,"INFO: Você Spawnou um Elegy!");
- return 1;
- }
- if(!strcmp(cmdtext, "/infernus", true))
- {
- if(IsPlayerInAnyVehicle(playerid)) DestroyVehicle(GetPlayerVehicleID(playerid));
- if(carro[playerid] != 0) DestroyVehicle(carro[playerid]);
- new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x,y,z);
- carro[playerid] = CreateVehicle(411, x,y,z, 0.0, -1, -1, 888);
- PutPlayerInVehicle(playerid, carro[playerid], 0);
- SendClientMessage(playerid,Verde,"INFO: Você Spawnou um Infernus!");
- return 1;
- }
- if(!strcmp(cmdtext, "/bus", true))
- {
- if(IsPlayerInAnyVehicle(playerid)) DestroyVehicle(GetPlayerVehicleID(playerid));
- if(carro[playerid] != 0) DestroyVehicle(carro[playerid]);
- new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x,y,z);
- carro[playerid] = CreateVehicle(431, x,y,z, 0.0, -1, -1, 888);
- PutPlayerInVehicle(playerid, carro[playerid], 0);
- SendClientMessage(playerid,Verde,"INFO: Você Spawnou um Bus!");
- return 1;
- }
- if(!strcmp(cmdtext, "/nrg500", true))
- {
- if(IsPlayerInAnyVehicle(playerid)) DestroyVehicle(GetPlayerVehicleID(playerid));
- if(carro[playerid] != 0) DestroyVehicle(carro[playerid]);
- new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x,y,z);
- carro[playerid] = CreateVehicle(522, x,y,z, 0.0, -1, -1, 888);
- PutPlayerInVehicle(playerid, carro[playerid], 0);
- SendClientMessage(playerid,Verde,"INFO: Você Spawnou uma Nrg500!");
- return 1;
- }
- if(!strcmp(cmdtext, "/sultan", true))
- {
- if(IsPlayerInAnyVehicle(playerid)) DestroyVehicle(GetPlayerVehicleID(playerid));
- if(carro[playerid] != 0) DestroyVehicle(carro[playerid]);
- new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x,y,z);
- carro[playerid] = CreateVehicle(560, x,y,z, 0.0, -1, -1, 888);
- PutPlayerInVehicle(playerid, carro[playerid], 0);
- SendClientMessage(playerid,Verde,"INFO: Você Spawnou um Sultan!");
- return 1;
- }
- if(!strcmp(cmdtext, "/flash", true))
- {
- if(IsPlayerInAnyVehicle(playerid)) DestroyVehicle(GetPlayerVehicleID(playerid));
- if(carro[playerid] != 0) DestroyVehicle(carro[playerid]);
- new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x,y,z);
- carro[playerid] = CreateVehicle(565, x,y,z, 0.0, -1, -1, 888);
- PutPlayerInVehicle(playerid, carro[playerid], 0);
- SendClientMessage(playerid,Verde,"INFO: Você Spawnou um Flash!");
- return 1;
- }
- if(!strcmp(cmdtext, "/savanna", true))
- {
- if(IsPlayerInAnyVehicle(playerid)) DestroyVehicle(GetPlayerVehicleID(playerid));
- if(carro[playerid] != 0) DestroyVehicle(carro[playerid]);
- new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x,y,z);
- carro[playerid] = CreateVehicle(567, x,y,z, 0.0, -1, -1, 888);
- PutPlayerInVehicle(playerid, carro[playerid], 0);
- SendClientMessage(playerid,Verde,"INFO: Você Spawnou um Savanna!");
- return 1;
- }
- if(!strcmp(cmdtext, "/picador", true))
- {
- if(IsPlayerInAnyVehicle(playerid)) DestroyVehicle(GetPlayerVehicleID(playerid));
- if(carro[playerid] != 0) DestroyVehicle(carro[playerid]);
- new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x,y,z);
- carro[playerid] = CreateVehicle(600, x,y,z, 0.0, -1, -1, 888);
- PutPlayerInVehicle(playerid, carro[playerid], 0);
- SendClientMessage(playerid,Verde,"INFO: Você Spawnou um Picador!");
- return 1;
- }*/
- if(!strcmp("/Comandos", cmdtext, true))
- {
- ShowPlayerDialog(playerid, Comandos, DIALOG_STYLE_LIST, "INFO: Oquê você deseja fazer ?", "» Comandos\n» Teletransporte\n» Ajuda\n» Regras\n» Eventos\n» MudarCor\n» Horarios\n» Pistas de Drift", "Selecionar", "Sair");
- return 1;
- }
- if(!strcmp("/textradio", cmdtext ,true))
- {
- ShowPlayerDialog(playerid, Musicas, DIALOG_STYLE_LIST, "INFO: Escolha alguma música!", "TestexD", "Selecionar", "Sair");
- return 1;
- }
- return SendClientMessage(playerid,Vermelho,"ERRO: » Este comando é inexistente: /Comandos.");
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- SendClientMessage(playerid, Cinza, "[INFO]: Este Servidor Possui Sistema Anti-Roubo, Caso Roubar Será Morto Automaticamente !");
- if(!ispassenger && IsVehicleOccupied(vehicleid)) SetPlayerHealth(playerid, 0.0);
- return 1;
- }
- stock IsVehicleOccupied(vehicleid)
- {
- for(new i = 0; i < MAX_PLAYERS; i++)
- if(IsPlayerInVehicle(i, vehicleid) && GetPlayerState(i) == PLAYER_STATE_DRIVER)
- return 1;
- return 0;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- new str[256];
- new oldnew;
- if (newstate == 2 || newstate == 3)
- {
- if (oldnew == 0)
- {
- format(str, sizeof(str), "~g~%s",vehName[GetVehicleModel(GetPlayerVehicleID(playerid))-400]);
- GameTextForPlayer(playerid, str, 6000, 1);
- }
- }
- for(new i = 0; i < sizeof(AdmCars); i ++)
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- if(vehicleid == AdmCars[i])
- {
- if(!IsPlayerAdmin(playerid))
- {
- SendClientMessage(playerid,Vermelho,"{FF3D3D}[ERRO]{FFFFFF} Você não é Admin.");
- TogglePlayerControllable(playerid, 1);
- RemovePlayerFromVehicle(playerid);
- }
- }
- }
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerEnterRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnRconCommand(cmd[])
- {
- return 1;
- }
- public OnPlayerRequestSpawn(playerid)
- {
- return 1;
- }
- public OnObjectMoved(objectid)
- {
- return 1;
- }
- public OnPlayerObjectMoved(playerid, objectid)
- {
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- return 1;
- }
- public OnVehicleMod(playerid, vehicleid, componentid)
- {
- return 1;
- }
- public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
- {
- return 1;
- }
- public OnVehicleRespray(playerid, vehicleid, color1, color2)
- {
- return 1;
- }
- public OnPlayerSelectedMenuRow(playerid, row)
- {
- return 1;
- }
- public OnPlayerExitedMenu(playerid)
- {
- return 1;
- }
- public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
- {
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- if((oldkeys & 1 || oldkeys & 4))
- {
- Nitro(playerid);
- }
- if ((newkeys==KEY_SECONDARY_ATTACK)) // Key ( F / Enter )
- {
- OnPlayerCommandText(playerid,"/entrandointerior"); // Ao Apertar "F" Funcionará o Comando Do Lado.
- OnPlayerCommandText(playerid,"/sairdointerior"); // Ao Apertar "F" Funcionará o Comando Do Lado.
- }
- return 1;
- // Se Quiser Colocar mais, a vontade.
- }
- public OnRconLoginAttempt(ip[], password[], success)
- {
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- RepairVehicle(GetPlayerVehicleID(playerid));
- SetPlayerScore(playerid, GetPlayerMoney(playerid));
- return 1;
- }
- public OnPlayerStreamIn(playerid, forplayerid)
- {
- return 1;
- }
- public OnPlayerStreamOut(playerid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamIn(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamOut(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == Cores) // CORES
- {
- if(response)
- {
- if(listitem == 0)
- {
- ChangeVehicleColor(GetPlayerVehicleID(playerid),0,0);
- PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
- }
- if(listitem == 1)
- {
- ChangeVehicleColor(GetPlayerVehicleID(playerid),1,1);
- PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
- }
- if(listitem == 2)
- {
- ChangeVehicleColor(GetPlayerVehicleID(playerid),425,425);
- PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
- }
- if(listitem == 3)
- {
- ChangeVehicleColor(GetPlayerVehicleID(playerid),2,2);
- PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
- }
- if(listitem == 4)
- {
- ChangeVehicleColor(GetPlayerVehicleID(playerid),16,16);
- PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
- }
- if(listitem == 5)
- {
- ChangeVehicleColor(GetPlayerVehicleID(playerid),3,3);
- PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
- }
- if(listitem == 6)
- {
- ChangeVehicleColor(GetPlayerVehicleID(playerid),6,6);
- PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
- }
- if(listitem == 7)
- {
- ChangeVehicleColor(GetPlayerVehicleID(playerid),146,146);
- PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
- return 1;
- }
- }
- }
- if(dialogid == uD){
- if(response){
- if(listitem == 0){
- if(IsPlayerInAnyVehicle(playerid)) {
- new VehicleID;
- VehicleID = GetPlayerVehicleID(playerid);
- SetVehiclePos(VehicleID,-312.2921,1540.4182,75.2216);
- new pname[MAX_PLAYER_NAME];
- new string [90];
- GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
- format(string, sizeof(string), "%s Foi Fazer Drift Em uD1 ", pname);
- SendClientMessageToAll(0x33CCFFAA, string);
- SetPlayerInterior(playerid,0);
- }
- else{
- new pname[MAX_PLAYER_NAME];
- new string [90];
- GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
- format(string, sizeof(string), "%s Foi Fazer Drift Em uD1 ", pname);
- SendClientMessageToAll(0x33CCFFAA, string);
- SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid,-312.2921,1540.4182,75.2216);
- ResetPlayerWeapons(playerid);
- }
- }
- if(listitem == 1){
- if(IsPlayerInAnyVehicle(playerid)) {
- new VehicleID;
- VehicleID = GetPlayerVehicleID(playerid);
- SetVehiclePos(VehicleID,-2423.2783,-609.5183,132.5589);
- new pname[MAX_PLAYER_NAME];
- new string [90];
- GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
- format(string, sizeof(string), "%s Foi Fazer Drift Em uD2 ", pname);
- SendClientMessageToAll(0x33CCFFAA, string);
- SetPlayerInterior(playerid,0);
- }
- else{
- new pname[MAX_PLAYER_NAME];
- new string [90];
- GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
- format(string, sizeof(string), "%s Foi Fazer Drift Em uD2 ", pname);
- SendClientMessageToAll(0x33CCFFAA, string);
- SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid,-2423.2783,-609.5183,132.5589);
- ResetPlayerWeapons(playerid);
- }
- }
- if(listitem == 2){
- if(IsPlayerInAnyVehicle(playerid)) {
- new VehicleID;
- VehicleID = GetPlayerVehicleID(playerid);
- SetVehiclePos(VehicleID,1257.6019,-2027.8704,59.1490);
- new pname[MAX_PLAYER_NAME];
- new string [90];
- GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
- format(string, sizeof(string), "%s Foi Fazer Drift Em uD3 ", pname);
- SendClientMessageToAll(0x33CCFFAA, string);
- SetPlayerInterior(playerid,0);
- }
- else{
- new pname[MAX_PLAYER_NAME];
- new string [90];
- GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
- format(string, sizeof(string), "%s Foi Fazer Drift Em uD3 ", pname);
- SendClientMessageToAll(0x33CCFFAA, string);
- SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid,1257.6019,-2027.8704,59.1490);
- ResetPlayerWeapons(playerid);
- }
- }
- if(listitem == 3){
- if(IsPlayerInAnyVehicle(playerid)) {
- new VehicleID;
- VehicleID = GetPlayerVehicleID(playerid);
- SetVehiclePos(VehicleID,2328.7517,1399.8760,42.4814);
- new pname[MAX_PLAYER_NAME];
- new string [90];
- GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
- format(string, sizeof(string), "%s Foi Fazer Drift Em uD4 ", pname);
- SendClientMessageToAll(0x33CCFFAA, string);
- SetPlayerInterior(playerid,0);
- }
- else{
- new pname[MAX_PLAYER_NAME];
- new string [90];
- GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
- format(string, sizeof(string), "%s Foi Fazer Drift Em uD4 ", pname);
- SendClientMessageToAll(0x33CCFFAA, string);
- SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid,2328.7517,1399.8760,42.4814);
- ResetPlayerWeapons(playerid);
- }
- }
- if(listitem == 4){
- if(IsPlayerInAnyVehicle(playerid)) {
- new VehicleID;
- VehicleID = GetPlayerVehicleID(playerid);
- SetVehiclePos(VehicleID,2284.0291,1577.4082,20.0502);
- new pname[MAX_PLAYER_NAME];
- new string [90];
- GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
- format(string, sizeof(string), "%s Foi Fazer Drift Em uD5 ", pname);
- SendClientMessageToAll(0x33CCFFAA, string);
- SetPlayerInterior(playerid,0);
- }
- else{
- new pname[MAX_PLAYER_NAME];
- new string [90];
- GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
- format(string, sizeof(string), "%s Foi Fazer Drift Em uD5 ", pname);
- SendClientMessageToAll(0x33CCFFAA, string);
- SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid,2284.0291,1577.4082,20.0502);
- ResetPlayerWeapons(playerid);
- }
- }
- if(listitem == 5){
- if(IsPlayerInAnyVehicle(playerid)) {
- new VehicleID;
- VehicleID = GetPlayerVehicleID(playerid);
- SetVehiclePos(VehicleID,2892.3997,2431.1709,10.4781);
- new pname[MAX_PLAYER_NAME];
- new string [90];
- GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
- format(string, sizeof(string), "%s Foi Fazer Drift Em uD6 ", pname);
- SendClientMessageToAll(0x33CCFFAA, string);
- SetPlayerInterior(playerid,0);
- }
- else{
- new pname[MAX_PLAYER_NAME];
- new string [90];
- GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
- format(string, sizeof(string), "%s Foi Fazer Drift Em uD6 ", pname);
- SendClientMessageToAll(0x33CCFFAA, string);
- SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid,2892.3997,2431.1709,10.4781);
- ResetPlayerWeapons(playerid);
- }
- }
- if(listitem == 6){
- if(IsPlayerInAnyVehicle(playerid)) {
- new VehicleID;
- VehicleID = GetPlayerVehicleID(playerid);
- SetVehiclePos(VehicleID,2142.0715,2788.7520,10.8203);
- new pname[MAX_PLAYER_NAME];
- new string [90];
- GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
- format(string, sizeof(string), "%s Foi Fazer Drift Em uD7 ", pname);
- SendClientMessageToAll(0x33CCFFAA, string);
- SetPlayerInterior(playerid,0);
- }
- else{
- new pname[MAX_PLAYER_NAME];
- new string [90];
- GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
- format(string, sizeof(string), "%s Foi Fazer Drift Em uD7 ", pname);
- SendClientMessageToAll(0x33CCFFAA, string);
- SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid,2142.0715,2788.7520,10.8203);
- ResetPlayerWeapons(playerid);
- }
- }
- if(listitem == 7){
- if(IsPlayerInAnyVehicle(playerid)) {
- new VehicleID;
- VehicleID = GetPlayerVehicleID(playerid);
- SetVehiclePos(VehicleID,332.39550781,1998.21386719,2420.94555664);
- new pname[MAX_PLAYER_NAME];
- new string [90];
- GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
- format(string, sizeof(string), "%s Foi fazer twin em Drift Organico ", pname);
- SendClientMessageToAll(0x33CCFFAA, string);
- SetPlayerInterior(playerid,0);
- }
- else{
- new pname[MAX_PLAYER_NAME];
- new string [90];
- GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
- format(string, sizeof(string), "%s Foi fazer twin em Drift Organico ", pname);
- SendClientMessageToAll(0x33CCFFAA, string);
- SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid,332.39550781,1998.21386719,2420.94555664);
- ResetPlayerWeapons(playerid);
- }
- }
- }
- else{
- }
- }
- if(dialogid == Horario) // Dialog +1! ( CORRIDA )
- {
- if(response) // Botão
- {
- if(listitem == 0)
- {
- SetPlayerTime(playerid, 06,0);
- GameTextForPlayer(playerid,"~w~ Mudou para ~r~Dia",1000,1);
- return true;
- }
- else if(listitem == 1)
- {
- SetPlayerTime(playerid, 12,0);
- GameTextForPlayer(playerid,"~w~ Mudou para ~r~Tarde",1000,1);
- return true;
- }
- if(listitem == 2)
- {
- SetPlayerTime(playerid, 00,0);
- GameTextForPlayer(playerid,"~w~ Mudou para ~r~Noite",1000,1);
- return true;
- }
- }
- return true;
- }
- if(dialogid == Mundo)
- {
- if(response)
- {
- SetVehicleVirtualWorld(GetPlayerVehicleID(playerid), listitem);
- if(listitem ==0)
- {
- SetPlayerVirtualWorld(playerid, 0);
- SendClientMessage(playerid,Verde,"Conectado ao mundo Principal Com Sucesso!");
- return true;
- }
- else if(listitem == 1)
- {
- SetPlayerVirtualWorld(playerid, 1);
- SendClientMessage(playerid,Verde,"Conectado ao mundo 1 Com sucesso!");
- return true;
- }
- else if(listitem == 2)
- {
- SetPlayerVirtualWorld(playerid, 2);
- SendClientMessage(playerid,Verde,"Conectado ao mundo 2 Com sucesso!");
- return true;
- }
- else if(listitem == 3)
- {
- SetPlayerVirtualWorld(playerid, 3);
- SendClientMessage(playerid,Verde,"Conectado ao mundo 3 Com sucesso!");
- return true;
- }
- else if(listitem == 4)
- {
- SetPlayerVirtualWorld(playerid, 4);
- SendClientMessage(playerid,Verde,"Conectado ao mundo 4 Com sucesso!");
- return true;
- }
- else if(listitem == 5)
- {
- SetPlayerVirtualWorld(playerid, 5);
- SendClientMessage(playerid,Verde,"Conectado ao mundo 5 Com sucesso!");
- return true;
- }
- }
- return 1;
- }
- if(dialogid == Comandos)
- {
- if(response)
- {
- if(listitem == 0)
- {
- ShowPlayerDialog(playerid, Comandos+1, DIALOG_STYLE_MSGBOX, "INFO::", "COMANDOS DE PLAYER:/sp /skin /goto /mundo /on /afk /pm\nANIMES: /cruzarbraço /conversar /fumar /fumar2 /deitar /abaixar /sentar\nCOMANDOS DE VEICULO: /x [desvirar veiculo] /Cores", "Selecionar", "Sair");
- return true;
- }
- if(listitem == 1)
- {
- ShowPlayerDialog(playerid, Comandos+1, DIALOG_STYLE_MSGBOX, "INFO: Teletransporte", "/Aerosf /Aerolv /Aerols /uD 1~4 /Sf /Lv /Ls /Mansão", "Selecionar", "Sair");
- return true;
- }
- if(listitem == 2)
- {
- ShowPlayerDialog(playerid, Comandos+1, DIALOG_STYLE_MSGBOX, "INFO: Ajuda:", "Vejo que você é novato aqui.\nEste servidor é de drift, você poderá pegar veiculos e treinar até você fica um 'EXPERT'.\nVeja as Regras do servidor, antes de jogar.\nBoa Sorte!", "Selecionar", "Sair");
- return true;
- }
- if(listitem == 3)
- {
- ShowPlayerDialog(playerid, Comandos+1, DIALOG_STYLE_MSGBOX, "INFO: Regras:", "Aqui vocês vão respeitar as Seguinte regras:\n- Não usar speed.\n- Não usa qualquer outro tipo de mod, que der vantagem aos outros jogadores.\n- Não usar armas no servidor.\n- Não comenter DB 'Atropelar os Jogadores'.\n- Respeitar os administradores.\n- Respeitar todos os jogadores.\n- Não usar Sobeit, e divulgar servidores aqui.\nCaso alcontrario você será Kick/Ban.\nBom jogo!", "Ok", "Sair");
- return true;
- }
- if(listitem == 4)
- {
- ShowPlayerDialog(playerid, Comandos+1, DIALOG_STYLE_MSGBOX, "INFO: Eventos:", "Nosso clan provavelmente só fazemos eventos no final de semana, Qual vantagem eu ganho particpando dos eventos ?\n R: Você particpando dos eventos, fica mais fácil você entrar pro nosso clan.\nATÇ: Só fazemos eventos quando os administradores tiverem online.", "Ok", "Sair");
- return true;
- }
- if(listitem == 5)
- {
- ShowPlayerDialog(playerid, MudarCor, DIALOG_STYLE_LIST, "Escolha uma cor:", "Vermelho\nVerde\nAmarelo\nAzul\nLaranja\nRoxo\nAzul Marinho\nRosa\nCinza\nMarrom\nBranco\nAzul Claro\nVerde Escuro", "Ok", "Cancelar");
- return true;
- }
- if(listitem == 6)
- {
- ShowPlayerDialog(playerid, Horario, DIALOG_STYLE_LIST, "INFO: Horarios:", "Dia\nTarde\nNoite", "Selecionar", "Sair");
- return true;
- }
- if(listitem == 7)
- {
- ShowPlayerDialog(playerid,uD,DIALOG_STYLE_LIST,"INFO: Pistas de Drift","»\tDrift: Pista uD 1 [OFICIAL]\n\t»Drift: Pista uD 2\n\t»Drift: Pista uD 3\n\t»Drift: Pista uD 4\n\t»Drift: Pista uD 5\n\t»Drift: Pista uD 6\n\t»Drift: Pista uD 7\n\tTwin - Drif Organico\n","OK","Fechar");
- return true;
- }
- }
- return true;
- }
- new sendername[MAX_PLAYER_NAME];
- new string[128];
- if(dialogid == MudarCor)
- {
- if(response)
- {
- if(listitem == 0)
- {
- SetPlayerColor(playerid, Vermelho);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "%s Trocou a cor do Nick Para Vermelho!", sendername);
- SendClientMessageToAll(Branco, string);
- }
- if(listitem == 1)
- {
- SetPlayerColor(playerid, Verde);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "%s Trocou a cor do Nick Para Verde!", sendername);
- SendClientMessageToAll(Branco, string);
- }
- if(listitem == 2)
- {
- SetPlayerColor(playerid, Amarelo);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "%s Trocou a cor do Nick Para Amarelo!", sendername);
- SendClientMessageToAll(Branco, string);
- }
- if(listitem == 3)
- {
- SetPlayerColor(playerid, Azul);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "%s Trocou a cor do Nick Para Azul!", sendername);
- SendClientMessageToAll(Branco, string);
- }
- if(listitem == 4)
- {
- SetPlayerColor(playerid, Laranja);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "%s Trocou a cor do Nick Para Laranja!", sendername);
- SendClientMessageToAll(Branco, string);
- }
- if(listitem == 5)
- {
- SetPlayerColor(playerid, Roxo);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "%s Trocou a cor do Nick para Roxo!", sendername);
- SendClientMessageToAll(Branco, string);
- }
- if(listitem == 6)
- {
- SetPlayerColor(playerid, Azul_Marinho);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "%s Trocou a cor do Nick Para Azul Marinho!", sendername);
- SendClientMessageToAll(Branco, string);
- }
- if(listitem == 7)
- {
- SetPlayerColor(playerid, Rosa);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "%s Trocou a cor do Nick Para Rosa!", sendername);
- SendClientMessageToAll(Branco, string);
- }
- if(listitem == 8)
- {
- SetPlayerColor(playerid, Cinza);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "%s Trocou a cor do Nick Para Cinza!", sendername);
- SendClientMessageToAll(Branco, string);
- }
- if(listitem == 9)
- {
- SetPlayerColor(playerid, Marron);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "%s Trocou a cor do Nick Para Marron!", sendername);
- SendClientMessageToAll(Branco, string);
- }
- if(listitem == 10)
- {
- SetPlayerColor(playerid, Branco);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "%s Trocou a cor do Nick Para Branco!", sendername);
- SendClientMessageToAll(Branco, string);
- }
- if(listitem == 11)
- {
- SetPlayerColor(playerid, Azul_Claro);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "%s Trocou a cor do Nick Para Azul Claro!", sendername);
- SendClientMessageToAll(Branco, string);
- }
- if(listitem == 12)
- {
- SetPlayerColor(playerid, Verde_Escuro);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "%s Trocou a cor do Nick Para Verde Escuro!", sendername);
- SendClientMessageToAll(Branco, string);
- }
- }
- }
- if(dialogid == Musicas)
- {
- for(new i=0; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- new Float:X, Float:Y, Float:Z, Float:Distance = 25.0;
- GetPlayerPos(i, X, Y, Z);
- if(response)
- {
- if(listitem == 0)// Musica teste
- {
- StopAudioStreamForPlayer(i);
- PlayAudioStreamForPlayer(i, "http://dc311.4shared.com/img/233926950/4f760756/dlink__2Fdownload_2F8H3ruy1b_3Ftsid_3D20111206-195937-e565d3b/preview.mp3", X, Y, Z, Distance, 1);
- }
- }
- }
- }
- }
- return true;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
- public RandomMSG()
- {
- new string[80];
- new random1 = random(sizeof(mensagens));
- new random2 = random(sizeof(cores));
- format(string, sizeof(string), "%s", mensagens[random1]);
- SendClientMessageToAll(cores[random2],string);
- return 1;
- }
- strtok(const string[], &index)
- {
- new length = strlen(string);
- while ((index < length) && (string[index] <= ' '))
- {
- index++;
- }
- new offset = index;
- new result[20];
- while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
- {
- result[index - offset] = string[index];
- index++;
- }
- result[index - offset] = EOS;
- return result;
- }
- stock IsValidSkin(skin)
- {
- if((skin == 0)||(skin == 7)||(skin >= 9 && skin <= 41)||(skin >= 43 && skin <= 64)||(skin >= 66 && skin <= 73)||(skin >= 75 && skin <= 85)||(skin >= 87 && skin <= 118)||(skin >= 120 && skin <= 148)||(skin >= 150 && skin <= 207)||(skin >= 209 && skin <= 264)||(skin >= 274 && skin <= 288)||(skin >= 290 && skin <= 299)) return true;
- else return false;
- }
- public atualizar () //Inicio da public obvio
- {
- static Number = 0; // Static quase a mesma coisa de uma string pelo oque eu acho se eu estiver errado me corrijam.
- TextDrawSetString(Nome, news[Number++]); //Strings usadas para o Texto
- TextDrawShowForAll(Nome); //Mostra o Texto a todos os players
- if(Number == sizeof(news)) Number = 0; //se o tamanho do Number de Number news = 0;
- return 1;
- }
- stock pNome(playerid)
- {
- new nome[MAX_PLAYER_NAME];
- GetPlayerName(playerid,nome,sizeof(nome));
- return nome;
- }
- public RodapeTimer()
- {
- new PlayersOn, string[125], hour, minute, second;
- for(new i = 0; i < MAX_PLAYERS; i ++)
- {
- if(!IsPlayerConnected(i)) continue;
- PlayersOn++;
- }
- gettime(hour,minute,second);
- format(string, sizeof string, "(%d/%d)", PlayersOn, GetMaxPlayers(), hour, minute, second);
- TextDrawSetString(Rodape, string);
- return 1;
- }
- AntiCheatUpdate();
- public AntiCheatUpdate()
- {
- new slot = GetMaxPlayers();
- while(slot--)
- {
- if(IsPlayerConnected(slot) && !IsPlayerAdmin(slot))
- {
- new pName[MAX_PLAYER_NAME];
- new ArmaNome[17];
- new string[128];
- GetPlayerName(slot, pName, sizeof(pName));
- switch(GetPlayerWeapon(slot))
- {
- case 35: ArmaNome = #Rocket Launcher;
- case 36: ArmaNome = #Bazuca;
- case 37: ArmaNome = #Lança Chamas;
- case 38: ArmaNome = #Minigun;
- case 39: ArmaNome = #Satchel Charge;
- case 40: ArmaNome = #Detonador;
- case 44: ArmaNome = #Visão Noturna;
- case 45: ArmaNome = #Visão Termal;
- case 18: ArmaNome = #Molotov Cocktail;
- case 17: ArmaNome = #Bomba de Gás;
- default: goto stop;
- }
- format(string,128,"[ANTI-CHEAT]: %s Foi kickado pelo administrador BOT [motivo: Arma Proibida: %s ]",pName,ArmaNome);
- SendClientMessageToAll(0xFF0000AA,string);
- Kick(slot);
- stop:
- }
- }
- return true;
- }
- public DeletarTextodoJeff(playerid)
- {
- TextDrawHideForPlayer(playerid, Jeff1);
- TextDrawHideForPlayer(playerid, Jeff2);
- TextDrawHideForPlayer(playerid, Jeff3);
- TogglePlayerControllable(playerid, 1);
- return 1;
- }
- public Nitro(playerid)
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- switch(GetVehicleModel(GetPlayerVehicleID(playerid)))
- {
- case 448,461,462,463,468,471,509,510,521,522,523,581,586,449: return;
- }
- AddVehicleComponent(GetPlayerVehicleID(playerid),1010);
- }
- }
Add Comment
Please, Sign In to add comment