Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////
- // bNeon - By: Boliva
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////
- #define FILTERSCRIPT
- #include <a_samp>
- #include streamer
- #if defined FILTERSCRIPT
- #define DIALOG_NEON 532
- #define COR_BRANCA 0xFFFFFFAA
- public OnFilterScriptInit()
- {
- print("\n-------------------------------------------------------");
- print(" SISTEMA DE NEON BY: Boliva RevolutioN && Rodrigo GomeS");
- print("---------------------------------------------------------\n");
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- SendClientMessage(playerid, 0xFFFFFFAA, "Este Servidor contem um FS (Sistema de Neon) Feito por Boliva RevolutioN");
- return 1;
- }
- #else
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/colocarneon", cmdtext, true, 10) == 0)
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- ShowPlayerDialog(playerid, DIALOG_NEON, DIALOG_STYLE_LIST, "Neon by Boliva & Rodrigo", "Vermelho\nAzul\nVerde\nAmarelo\nRosa\nBranco", "Selecionar", "Sair");
- }
- else
- {
- SendClientMessage(playerid, COR_BRANCA, " Voce presisa estar em um veiculo para colocar um Neon !!");
- }
- return 1;
- }
- if(strcmp("/creditosneon", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, 0x00FFFFAA, "Creditos a Boliva RevolutioN pelo Sistema de Neon \nRodrigo Gomes pelo Destruir Neon (Ultima opcao do dialog)");
- return 1;
- }
- return 0;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == DIALOG_NEON)
- {
- if(response)
- {
- if(listitem == 0)
- {
- // Vermelho //
- SetPVarInt(playerid, "Neon", 1);
- SetPVarInt(playerid, "Vermelho", CreateObject(18647,0,0,0,0,0,0));
- SetPVarInt(playerid, "Vermelhoo", CreateObject(18647,0,0,0,0,0,0));
- AttachObjectToVehicle(GetPVarInt(playerid, "Vermelho"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- AttachObjectToVehicle(GetPVarInt(playerid, "Vermelhoo"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, 0xFFFFFFAA, "Voce adicionou Neon Vermelho no veiculo !!");
- }
- if(listitem == 1)
- {
- // Azul //
- SetPVarInt(playerid, "Neon", 1);
- SetPVarInt(playerid, "Azul", CreateObject(18648,0,0,0,0,0,0));
- SetPVarInt(playerid, "Azull", 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, "Azull"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, 0xFFFFFFAA, "Voce adicionou Neon Azul no veiculo !!");
- }
- if(listitem == 2)
- {
- // Verde //
- SetPVarInt(playerid, "Neon", 1);
- SetPVarInt(playerid, "Verde", CreateObject(18649,0,0,0,0,0,0));
- SetPVarInt(playerid, "Verdee", 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, "Verdee"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, 0xFFFFFFAA, "Voce adicionou Neon Verde no veiculo !!");
- }
- if(listitem == 3)
- {
- // Amarelo //
- SetPVarInt(playerid, "Neon", 1);
- SetPVarInt(playerid, "Amarelo", CreateObject(18650,0,0,0,0,0,0));
- SetPVarInt(playerid, "Amareloo", 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, "Amareloo"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, 0xFFFFFFAA, "Voce adicionou Neon Amarelo no veiculo !!");
- }
- if(listitem == 4)
- {
- // Rosa //
- SetPVarInt(playerid, "Neon", 1);
- SetPVarInt(playerid, "Rosa", CreateObject(18651,0,0,0,0,0,0));
- SetPVarInt(playerid, "Rosaa", 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, "Rosaa"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, 0xFFFFFFAA, "Voce adicionou Neon Rosa no veiculo !!");
- }
- if(listitem == 5)
- {
- // Branco //
- SetPVarInt(playerid, "Neon", 1);
- SetPVarInt(playerid, "Branco", CreateObject(18652,0,0,0,0,0,0));
- SetPVarInt(playerid, "Brancoo", 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, "Brancoo"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- SendClientMessage(playerid, 0xFFFFFFAA, "Voce adicionou Neon Branco no veiculo !!");
- }
- }
- }
- return 1;
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement