Advertisement
Guest User

FS Neon Traduzido

a guest
Mar 20th, 2012
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 6.20 KB | None | 0 0
  1. #define FILTERSCRIPT
  2. #define COLOR_Branco 0xFFFFFFAA
  3. #include <a_samp>
  4. #define NEON 1337
  5. #if defined FILTERSCRIPT
  6.  
  7. public OnFilterScriptInit()
  8. {
  9.         print("----------FS Neon Caregado--------");
  10.         return 1;
  11. }
  12.  
  13. #endif
  14. public OnPlayerCommandText(playerid, cmdtext[])
  15. {
  16.         if (strcmp("/neon", cmdtext, true, 10) == 0)
  17.         {
  18.                 if(IsPlayerInAnyVehicle(playerid))
  19.                 {
  20.                         if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
  21.                         {
  22.                                 SendClientMessage(playerid, COLOR_Branco, "      Vc nao é o Motorista");
  23.                                 return 1;
  24.                         }
  25.                         ShowPlayerDialog(playerid, NEON, DIALOG_STYLE_LIST, "Escolha a sua cor","azul\nverde\nAmarelo\nBranco\nRosa\nTurn off Neon","Add","Close");
  26.                 }
  27.                 else
  28.                 {
  29.                     SendClientMessage(playerid, COLOR_Branco, " Vc Nao esta em Um Veiculo");
  30.                 }
  31.                 return 1;
  32.         }
  33.         return 0;
  34. }
  35. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  36. {
  37.         if(dialogid == NEON)
  38.         {
  39.                 if(response)
  40.                 {
  41.                     if(listitem == 0)
  42.                     {
  43.                         SetPVarInt(playerid, "neon", 1);
  44.                 SetPVarInt(playerid, "azul", CreateObject(18648,0,0,0,0,0,0));
  45.                 SetPVarInt(playerid, "azul1", CreateObject(18648,0,0,0,0,0,0));
  46.                 AttachObjectToVehicle(GetPVarInt(playerid, "azul"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  47.                 AttachObjectToVehicle(GetPVarInt(playerid, "azul1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  48.                 GameTextForPlayer(playerid, "~b~ azul ~w~Neon foi adicionado ao seu veículo",3500,5);
  49.                         }
  50.                         if(listitem == 1)
  51.                         {
  52.                                 SetPVarInt(playerid, "neon", 1);
  53.                         SetPVarInt(playerid, "verde", CreateObject(18649,0,0,0,0,0,0));
  54.                         SetPVarInt(playerid, "verde1", CreateObject(18649,0,0,0,0,0,0));
  55.                         AttachObjectToVehicle(GetPVarInt(playerid, "verde"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  56.                         AttachObjectToVehicle(GetPVarInt(playerid, "verde1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  57.                         GameTextForPlayer(playerid, "~g~verde ~w~Neon foi adicionado ao seu veículo",3500,5);
  58.                         }
  59.                         if(listitem == 2)
  60.                         {
  61.                             SetPVarInt(playerid, "neon", 1);
  62.                         SetPVarInt(playerid, "Amarelo", CreateObject(18650,0,0,0,0,0,0));
  63.                         SetPVarInt(playerid, "Amarelo1", CreateObject(18650,0,0,0,0,0,0));
  64.                 AttachObjectToVehicle(GetPVarInt(playerid, "Amarelo"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  65.                 AttachObjectToVehicle(GetPVarInt(playerid, "Amarelo1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  66.                                 GameTextForPlayer(playerid, "~y~Amarelo~w~ Neon foi adicionado ao seu veículo",3500,5);
  67.                         }
  68.                         if(listitem == 3)
  69.                         {
  70.                                 SetPVarInt(playerid, "neon", 1);
  71.                                 SetPVarInt(playerid, "Branco", CreateObject(18652,0,0,0,0,0,0));
  72.                                 SetPVarInt(playerid, "Branco1", CreateObject(18652,0,0,0,0,0,0));
  73.                         AttachObjectToVehicle(GetPVarInt(playerid, "Branco"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  74.                         AttachObjectToVehicle(GetPVarInt(playerid, "Branco1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  75.                 GameTextForPlayer(playerid, "~w~Branco~w~ Neon foi adicionado ao seu veículo",3500,5);
  76.                         }
  77.                         if(listitem == 4)
  78.                         {
  79.                                 SetPVarInt(playerid, "neon", 1);
  80.                         SetPVarInt(playerid, "Rosa", CreateObject(18651,0,0,0,0,0,0));
  81.                         SetPVarInt(playerid, "Rosa1", CreateObject(18651,0,0,0,0,0,0));
  82.                         AttachObjectToVehicle(GetPVarInt(playerid, "Rosa"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  83.                 AttachObjectToVehicle(GetPVarInt(playerid, "Rosa1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
  84.                                 GameTextForPlayer(playerid, "~p~Rosa~w~ Neon foi adicionado ao seu veículo",3500,5);
  85.                         }
  86.                         if(listitem == 5)
  87.                         {
  88.                                 DestroyObject(GetPVarInt(playerid, "azul"));
  89.                     DeletePVar(playerid, "neon");
  90.                     DestroyObject(GetPVarInt(playerid, "azul1"));
  91.                     DeletePVar(playerid, "neon");
  92.                     DestroyObject(GetPVarInt(playerid, "verde"));
  93.                     DeletePVar(playerid, "neon");
  94.                     DestroyObject(GetPVarInt(playerid, "verde1"));
  95.                     DeletePVar(playerid, "neon");
  96.                     DestroyObject(GetPVarInt(playerid, "Amarelo"));
  97.                     DeletePVar(playerid, "neon");
  98.                     DestroyObject(GetPVarInt(playerid, "Amarelo1"));
  99.                     DeletePVar(playerid, "neon");
  100.                     DestroyObject(GetPVarInt(playerid, "Branco"));
  101.                     DeletePVar(playerid, "neon");
  102.                     DestroyObject(GetPVarInt(playerid, "Branco1"));
  103.                     DeletePVar(playerid, "neon");
  104.                     DestroyObject(GetPVarInt(playerid, "Rosa"));
  105.                     DeletePVar(playerid, "neon");
  106.                     DestroyObject(GetPVarInt(playerid, "Rosa1"));
  107.                     DeletePVar(playerid, "neon");
  108.                     GameTextForPlayer(playerid, "~g~Neon foi excluído de seu veículo",3500,5);
  109.             }
  110.                 }
  111.         }
  112.         return 1;
  113. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement