Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Sistema de Empinar e Virar Mortal de Carros
- Este sistema é para servidores de: Freeroam Stunt
- Version:0.1
- Tempo de Criação: 15 minutinhos.
- Criado por DemonNeniScripter
- Conta do Forum.sa-mp.com nome:Schocc
- CONTATOS -;
- Msn: leandroneni@live.com
- Skype: leandro.neni
- Como usar? -
- Simples é só clicar com o mouse LMB
- */
- #include <a_samp>
- #pragma tabsize 0
- #define Dialog_VetGrau 80
- #define Dialog_Ajuda2 81
- new VetOn[MAX_PLAYERS];
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(strcmp("/vetgrau",cmdtext,true,10) == 0)
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- ShowPlayerDialog(playerid, Dialog_VetGrau, DIALOG_STYLE_LIST , "Sistema de Empinar no Grau By DemonNeni", "Empinar \nMortal \nSuper-Mortal \nMortal+Flip \nFlip+Up \nVoop+Flip \nVoop+Direita \nVoop+Esquerda \nDesativar Voops!!\nComo Usar" ,"Ligar","Cancelar");
- }
- }
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- /*Sistema de Empinar e Virar Mortal By DemonNeni ou Schocc*/
- if(dialogid == Dialog_VetGrau)
- {
- if(response)
- {
- if(listitem == 0) // 1° Empinar
- {
- 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 By Demon" , "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");
- strcat(Texto,"{6600FF}»Desenvolvido por DemonNeni/*Scripter*/");
- ShowPlayerDialog(playerid,Dialog_Ajuda2, DIALOG_STYLE_MSGBOX, "{66FF00}Sistema By \t\tDemonNeni/*Scripter*/\t\t ",Texto, "Sair", "");
- }
- }
- return 1;
- }
- 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); //Empinar
- }
- if(VetOn[playerid] == 2)
- {
- return SetVehicleAngularVelocity(GetPlayerVehicleID(playerid), x+0.3 , y , z); //Mortal
- }
- if(VetOn[playerid] == 3)
- {
- return SetVehicleAngularVelocity(GetPlayerVehicleID(playerid), x+0.5 , y , z); //Super Mortal
- }
- if(VetOn[playerid] == 4)
- {
- return SetVehicleAngularVelocity(GetPlayerVehicleID(playerid), x+0.5 , y , z+0.10); //Mortal + Right
- }
- 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); //Float Left++
- }
- if(VetOn[playerid] == 8)
- {
- return SetVehicleAngularVelocity(GetPlayerVehicleID(playerid), x , y , z+0.2); //Float Right++
- }
- }
- /*End of system by Schocc*/
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement