Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define FILTERSCRIPT
- #define COLOR_Branco 0xFFFFFFAA
- #include <a_samp>
- #define NEON 1337
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("----------FS Neon Caregado--------");
- return 1;
- }
- #endif
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/neon", cmdtext, true, 10) == 0)
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
- {
- SendClientMessage(playerid, COLOR_Branco, " Vc nao é o Motorista");
- return 1;
- }
- ShowPlayerDialog(playerid, NEON, DIALOG_STYLE_LIST, "Escolha a sua cor","azul\nverde\nAmarelo\nBranco\nRosa\nTurn off Neon","Add","Close");
- }
- else
- {
- SendClientMessage(playerid, COLOR_Branco, " Vc Nao esta em Um Veiculo");
- }
- return 1;
- }
- return 0;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == NEON)
- {
- if(response)
- {
- if(listitem == 0)
- {
- SetPVarInt(playerid, "neon", 1);
- SetPVarInt(playerid, "azul", CreateObject(18648,0,0,0,0,0,0));
- SetPVarInt(playerid, "azul1", CreateObject(18648,0,0,0,0,0,0));
- AttachObjectToVehicle(GetPVarInt(playerid, "azul"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- AttachObjectToVehicle(GetPVarInt(playerid, "azul1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- GameTextForPlayer(playerid, "~b~ azul ~w~Neon foi adicionado ao seu veículo",3500,5);
- }
- if(listitem == 1)
- {
- SetPVarInt(playerid, "neon", 1);
- SetPVarInt(playerid, "verde", CreateObject(18649,0,0,0,0,0,0));
- SetPVarInt(playerid, "verde1", CreateObject(18649,0,0,0,0,0,0));
- AttachObjectToVehicle(GetPVarInt(playerid, "verde"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- AttachObjectToVehicle(GetPVarInt(playerid, "verde1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- GameTextForPlayer(playerid, "~g~verde ~w~Neon foi adicionado ao seu veículo",3500,5);
- }
- if(listitem == 2)
- {
- SetPVarInt(playerid, "neon", 1);
- SetPVarInt(playerid, "Amarelo", CreateObject(18650,0,0,0,0,0,0));
- SetPVarInt(playerid, "Amarelo1", CreateObject(18650,0,0,0,0,0,0));
- AttachObjectToVehicle(GetPVarInt(playerid, "Amarelo"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- AttachObjectToVehicle(GetPVarInt(playerid, "Amarelo1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- GameTextForPlayer(playerid, "~y~Amarelo~w~ Neon foi adicionado ao seu veículo",3500,5);
- }
- if(listitem == 3)
- {
- SetPVarInt(playerid, "neon", 1);
- SetPVarInt(playerid, "Branco", CreateObject(18652,0,0,0,0,0,0));
- SetPVarInt(playerid, "Branco1", CreateObject(18652,0,0,0,0,0,0));
- AttachObjectToVehicle(GetPVarInt(playerid, "Branco"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- AttachObjectToVehicle(GetPVarInt(playerid, "Branco1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- GameTextForPlayer(playerid, "~w~Branco~w~ Neon foi adicionado ao seu veículo",3500,5);
- }
- if(listitem == 4)
- {
- SetPVarInt(playerid, "neon", 1);
- SetPVarInt(playerid, "Rosa", CreateObject(18651,0,0,0,0,0,0));
- SetPVarInt(playerid, "Rosa1", CreateObject(18651,0,0,0,0,0,0));
- AttachObjectToVehicle(GetPVarInt(playerid, "Rosa"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- AttachObjectToVehicle(GetPVarInt(playerid, "Rosa1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- GameTextForPlayer(playerid, "~p~Rosa~w~ Neon foi adicionado ao seu veículo",3500,5);
- }
- if(listitem == 5)
- {
- DestroyObject(GetPVarInt(playerid, "azul"));
- DeletePVar(playerid, "neon");
- DestroyObject(GetPVarInt(playerid, "azul1"));
- DeletePVar(playerid, "neon");
- DestroyObject(GetPVarInt(playerid, "verde"));
- DeletePVar(playerid, "neon");
- DestroyObject(GetPVarInt(playerid, "verde1"));
- DeletePVar(playerid, "neon");
- DestroyObject(GetPVarInt(playerid, "Amarelo"));
- DeletePVar(playerid, "neon");
- DestroyObject(GetPVarInt(playerid, "Amarelo1"));
- DeletePVar(playerid, "neon");
- DestroyObject(GetPVarInt(playerid, "Branco"));
- DeletePVar(playerid, "neon");
- DestroyObject(GetPVarInt(playerid, "Branco1"));
- DeletePVar(playerid, "neon");
- DestroyObject(GetPVarInt(playerid, "Rosa"));
- DeletePVar(playerid, "neon");
- DestroyObject(GetPVarInt(playerid, "Rosa1"));
- DeletePVar(playerid, "neon");
- GameTextForPlayer(playerid, "~g~Neon foi excluído de seu veículo",3500,5);
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement