Advertisement
demonneni

Sistema de Virar Mortal e Empinar de Carro BETA

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