demonneni

Sistema de Virar Mortal e Empinar de Carro BETA

Apr 29th, 2012
464
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 3.49 KB | None | 0 0
  1. /*
  2. Sistema de Empinar e Virar Mortal de Carros
  3. Este sistema é para servidores de: Freeroam Stunt
  4. Version:0.1
  5. Tempo de Criação: 15 minutinhos.
  6. Criado por DemonNeniScripter
  7. Conta do Forum.sa-mp.com nome:Schocc
  8.  
  9. CONTATOS -;
  10. Skype: leandro.neni
  11.  
  12.  
  13.  
  14.  
  15. Como usar? -
  16. Simples é só clicar com o mouse LMB
  17. */
  18.  
  19.  
  20.  
  21. #include <a_samp>
  22.  
  23. #pragma tabsize 0
  24.  
  25. #define Dialog_VetGrau 80
  26. #define Dialog_Ajuda2 81
  27. new VetOn[MAX_PLAYERS];
  28.  
  29. public OnPlayerCommandText(playerid, cmdtext[])
  30. {
  31.     if(strcmp("/vetgrau",cmdtext,true,10) == 0)
  32.     {
  33.     if(IsPlayerInAnyVehicle(playerid))
  34.         {
  35.         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");
  36.         }
  37.     }
  38. return 1;
  39. }
  40.  
  41.  
  42. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  43. {
  44. /*Sistema de Empinar e Virar Mortal By DemonNeni ou Schocc*/
  45. if(dialogid == Dialog_VetGrau)
  46. {
  47.     if(response)
  48.         {
  49.             if(listitem == 0) // 1° Empinar
  50.             {
  51.             VetOn[playerid] = 1;
  52.             }
  53.             if(listitem == 1)
  54.             {
  55.             VetOn[playerid] = 2;
  56.             }
  57.             if(listitem == 2)
  58.             {
  59.             VetOn[playerid] = 3;
  60.             }
  61.             if(listitem == 3)
  62.             {
  63.             VetOn[playerid] = 4;
  64.             }
  65.             if(listitem == 4)
  66.             {
  67.             VetOn[playerid] = 5;
  68.             }
  69.             if(listitem == 5)
  70.             {
  71.             VetOn[playerid] = 6;
  72.             }
  73.             if(listitem == 6)
  74.             {
  75.             VetOn[playerid] = 7;
  76.             }
  77.             if(listitem == 7)
  78.             {
  79.             VetOn[playerid] = 8;
  80.             }
  81.             if(listitem == 8)
  82.             {
  83.             ShowPlayerDialog(playerid, 321465 , DIALOG_STYLE_MSGBOX, "Sistema Voop By Demon" , "Sistema de Voop Desativado" , "Sair" ,"");
  84.             VetOn[playerid] = 0;
  85.             }
  86.             if(listitem == 9)
  87.             {
  88.             new Texto[300];
  89.             format(Texto,300,"{6600FF}Ajuda como Usar o Vetgrau\n");
  90.             strcat(Texto,"{6600FF}»/Vetgrau , Entre em um Carro Depois do escolha o Modo Voop e clique com LMB(MOUSE)\n");
  91.             strcat(Texto,"{6600FF}»Desenvolvido por DemonNeni/*Scripter*/");
  92.             ShowPlayerDialog(playerid,Dialog_Ajuda2, DIALOG_STYLE_MSGBOX, "{66FF00}Sistema By \t\tDemonNeni/*Scripter*/\t\t ",Texto, "Sair", "");
  93.             }
  94.         }
  95. return 1;
  96. }
  97.  
  98.  
  99. return 1;
  100. }
  101.  
  102. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  103. {
  104.  
  105.     if((newkeys == KEY_FIRE))
  106.     {
  107.     new
  108.         Float:x , Float:y , Float:z;
  109.         if(VetOn[playerid] == 1)
  110.         {
  111.         return SetVehicleAngularVelocity(GetPlayerVehicleID(playerid), x+0.1 , y , z); //Empinar
  112.         }
  113.         if(VetOn[playerid] == 2)
  114.         {
  115.         return SetVehicleAngularVelocity(GetPlayerVehicleID(playerid), x+0.3 , y , z); //Mortal
  116.         }
  117.         if(VetOn[playerid] == 3)
  118.         {
  119.         return SetVehicleAngularVelocity(GetPlayerVehicleID(playerid), x+0.5 , y , z); //Super Mortal
  120.         }
  121.         if(VetOn[playerid] == 4)
  122.         {
  123.         return SetVehicleAngularVelocity(GetPlayerVehicleID(playerid), x+0.5 , y , z+0.10); //Mortal + Right
  124.         }
  125.         if(VetOn[playerid] == 5)
  126.         {
  127.         return SetVehicleAngularVelocity(GetPlayerVehicleID(playerid), x , y+0.5 , z+0.5);
  128.         }
  129.         if(VetOn[playerid] == 6)
  130.         {
  131.         return SetVehicleAngularVelocity(GetPlayerVehicleID(playerid), x+0.3 , y , z+0.10);
  132.         }
  133.         if(VetOn[playerid] == 7)
  134.         {
  135.         return SetVehicleAngularVelocity(GetPlayerVehicleID(playerid), x , y , z-0.2); //Float Left++
  136.         }
  137.         if(VetOn[playerid] == 8)
  138.         {
  139.         return SetVehicleAngularVelocity(GetPlayerVehicleID(playerid), x , y , z+0.2); //Float Right++
  140.         }
  141.     }
  142.  
  143. /*End of system by Schocc*/
  144.  
  145.  
  146.  
  147. return 1;
  148. }
Advertisement
Add Comment
Please, Sign In to add comment