[Ajuda] Neon!
#1

Eae Forum Samp..
Bom estou usando esse FS de neon :
https://sampforum.blast.hk/showthread.php?tid=287650

Bom..
Quando eu uso esse filterscript,em gm padrao(lvdm,etc..)
O Neon apareзe na boa..
Agora...
Quando eu uso esse filterscript,em meu gm que criei
O Neon nгo apareзe,apareзe a dialog,as mensagem,etc..
So que a luz(neon) nгo apareзe ss

Ja mudei id de dialog,fiz varias coisas,adicionei no gm etc.. e nao deu

+ REP para quem me ajudar..
Reply
#2

Olha o retorno das funзхes, possiveis id's de diбlogos iguais, etc
Reply
#3

mande o code de como estб no seu gm .
Reply
#4

Quote:
Originally Posted by Viniborn
Посмотреть сообщение
Olha o retorno das funзхes, possiveis id's de diбlogos iguais, etc
Jб verifiquei tudo..
ID diferentes,tudinho.
returnos a 0..

Fallen.
Nгo estб em meu gm mais,retirei,para testar em FS normal..

Olhe como estб o fs :
pawn Код:
//*********************************************************//
//        This is simple neon system V2 by : wizzi            //
//              Please dont remove credits                 //
//*********************************************************//
#include <a_samp>

#define TheNeon 8000
#define COLOR_BLUE 0x1229FAFF

// --
#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
    print("\nSistema de Neon : Wizzi");
    return 1;
}
#else

#endif
//**************Commands*********************//
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp(cmdtext, "/Neons", true)==0)
    {
    if(IsPlayerInAnyVehicle(playerid))
    {
    ShowPlayerDialog(playerid, TheNeon, DIALOG_STYLE_LIST, "{828282}Escolha uma Cor", "{E6E6FA}Azul\n{E6E6FA}Vermelho\n{E6E6FA}Verde\n{E6E6FA}Branco\n{E6E6FA}Violeta\n{E6E6FA}Amarelo\n{E6E6FA}Azul 2\n{E6E6FA}Azul 3\n{E6E6FA}Rosa\n{E6E6FA}Laranja\n{E6E6FA}Verde 2\n{E6E6FA}Amarelo 2\n{FF4500}Remover Neon", "Abrir", "Fechar");
    }
    else
    {
    SendClientMessage(playerid,COLOR_BLUE,"Tu nгo ta no veiculo.");
    }
    return 1;
    }
    return 0;
}
//**************Dialog*********************//
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
  if (dialogid == TheNeon) {
    if (response) {
        if (listitem == 0) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon", CreateObject(18648, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon1", CreateObject(18648, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 1) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon2", CreateObject(18647, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon3", CreateObject(18647, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon2"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon3"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 2) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon4", CreateObject(18649, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon5", CreateObject(18649, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon4"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon5"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x00FF00AA, "[x] Neon Instalado [x]");
        }
        if (listitem == 3) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon6", CreateObject(18652, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon7", CreateObject(18652, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon6"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon7"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 4) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon8", CreateObject(18651, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon9", CreateObject(18651, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon8"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon9"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 5) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon10", CreateObject(18650, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon11", CreateObject(18650, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon10"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon11"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 6) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon12", CreateObject(18648, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon13", CreateObject(18648, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon14", CreateObject(18649, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon15", CreateObject(18649, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon12"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon13"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon14"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon15"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 7) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon16", CreateObject(18648, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon17", CreateObject(18648, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon18", CreateObject(18652, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon19", CreateObject(18652, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon16"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon17"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon18"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon19"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 8) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon20", CreateObject(18647, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon21", CreateObject(18647, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon22", CreateObject(18652, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon23", CreateObject(18652, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon20"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon21"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon22"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon23"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 9) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon24", CreateObject(18647, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon25", CreateObject(18647, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon26", CreateObject(18650, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon27", CreateObject(18650, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon24"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon25"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon26"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon27"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 10) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon28", CreateObject(18649, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon29", CreateObject(18649, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon30", CreateObject(18652, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon31", CreateObject(18652, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon28"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon29"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon30"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon31"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 11) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon32", CreateObject(18652, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon33", CreateObject(18652, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon34", CreateObject(18650, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon35", CreateObject(18650, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon32"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon33"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon34"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon35"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 12) {
         DestroyObject(GetPVarInt(playerid, "neon"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon1"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon2"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon3"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon4"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon5"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon6"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon7"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon8"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon9"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon10"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon11"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon12"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon13"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon14"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon15"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon16"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon17"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon18"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon19"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon20"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon21"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon22"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon23"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon24"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon25"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon26"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon27"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon28"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon29"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon30"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon31"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon32"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon33"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon34"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon35"));
        }
        }
        }
          return 0;
        }
Reply
#5

pawn Код:
//*********************************************************//
//        This is simple neon system V2 by : wizzi            //
//              Please dont remove credits                 //
//*********************************************************//
#include <a_samp>

#define TheNeon 8000
#define COLOR_BLUE 0x1229FAFF


public OnFilterScriptInit()
{
    print("\nSistema de Neon : Wizzi");
    return 1;
}
//**************Commands*********************//
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp(cmdtext, "/Neons", true)==0)
    {
    if(IsPlayerInAnyVehicle(playerid))
    {
    ShowPlayerDialog(playerid, TheNeon, DIALOG_STYLE_LIST, "{828282}Escolha uma Cor", "{E6E6FA}Azul\n{E6E6FA}Vermelho\n{E6E6FA}Verde\n{E6E6FA}Branco\n{E6E6FA}Violeta\n{E6E6FA}Amarelo\n{E6E6FA}Azul 2\n{E6E6FA}Azul 3\n{E6E6FA}Rosa\n{E6E6FA}Laranja\n{E6E6FA}Verde 2\n{E6E6FA}Amarelo 2\n{FF4500}Remover Neon", "Abrir", "Fechar");
    }
    else
    {
    SendClientMessage(playerid,COLOR_BLUE,"Tu nгo ta no veiculo.");
    }
    return 1;
    }
    return 0;
}
//**************Dialog*********************//
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
  if (dialogid == TheNeon) {
    if (response) {
        if (listitem == 0) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon", CreateObject(18648, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon1", CreateObject(18648, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 1) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon2", CreateObject(18647, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon3", CreateObject(18647, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon2"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon3"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 2) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon4", CreateObject(18649, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon5", CreateObject(18649, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon4"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon5"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x00FF00AA, "[x] Neon Instalado [x]");
        }
        if (listitem == 3) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon6", CreateObject(18652, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon7", CreateObject(18652, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon6"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon7"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 4) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon8", CreateObject(18651, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon9", CreateObject(18651, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon8"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon9"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 5) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon10", CreateObject(18650, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon11", CreateObject(18650, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon10"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon11"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 6) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon12", CreateObject(18648, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon13", CreateObject(18648, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon14", CreateObject(18649, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon15", CreateObject(18649, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon12"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon13"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon14"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon15"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 7) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon16", CreateObject(18648, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon17", CreateObject(18648, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon18", CreateObject(18652, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon19", CreateObject(18652, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon16"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon17"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon18"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon19"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 8) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon20", CreateObject(18647, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon21", CreateObject(18647, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon22", CreateObject(18652, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon23", CreateObject(18652, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon20"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon21"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon22"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon23"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 9) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon24", CreateObject(18647, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon25", CreateObject(18647, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon26", CreateObject(18650, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon27", CreateObject(18650, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon24"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon25"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon26"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon27"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 10) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon28", CreateObject(18649, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon29", CreateObject(18649, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon30", CreateObject(18652, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon31", CreateObject(18652, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon28"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon29"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon30"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon31"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 11) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon32", CreateObject(18652, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon33", CreateObject(18652, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon34", CreateObject(18650, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon35", CreateObject(18650, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon32"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon33"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon34"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon35"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 12) {
         DestroyObject(GetPVarInt(playerid, "neon"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon1"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon2"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon3"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon4"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon5"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon6"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon7"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon8"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon9"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon10"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon11"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon12"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon13"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon14"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon15"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon16"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon17"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon18"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon19"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon20"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon21"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon22"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon23"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon24"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon25"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon26"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon27"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon28"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon29"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon30"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon31"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon32"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon33"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon34"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon35"));
        }
        }
        }
        return 1;
    }
    return 0;
}
Reply
#6

Quote:
Originally Posted by Don_Speed
Посмотреть сообщение
pawn Код:
//*********************************************************//
//        This is simple neon system V2 by : wizzi            //
//              Please dont remove credits                 //
//*********************************************************//
#include <a_samp>

#define TheNeon 8000
#define COLOR_BLUE 0x1229FAFF


public OnFilterScriptInit()
{
    print("\nSistema de Neon : Wizzi");
    return 1;
}
//**************Commands*********************//
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp(cmdtext, "/Neons", true)==0)
    {
    if(IsPlayerInAnyVehicle(playerid))
    {
    ShowPlayerDialog(playerid, TheNeon, DIALOG_STYLE_LIST, "{828282}Escolha uma Cor", "{E6E6FA}Azul\n{E6E6FA}Vermelho\n{E6E6FA}Verde\n{E6E6FA}Branco\n{E6E6FA}Violeta\n{E6E6FA}Amarelo\n{E6E6FA}Azul 2\n{E6E6FA}Azul 3\n{E6E6FA}Rosa\n{E6E6FA}Laranja\n{E6E6FA}Verde 2\n{E6E6FA}Amarelo 2\n{FF4500}Remover Neon", "Abrir", "Fechar");
    }
    else
    {
    SendClientMessage(playerid,COLOR_BLUE,"Tu nгo ta no veiculo.");
    }
    return 1;
    }
    return 0;
}
//**************Dialog*********************//
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
  if (dialogid == TheNeon) {
    if (response) {
        if (listitem == 0) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon", CreateObject(18648, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon1", CreateObject(18648, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 1) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon2", CreateObject(18647, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon3", CreateObject(18647, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon2"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon3"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 2) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon4", CreateObject(18649, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon5", CreateObject(18649, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon4"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon5"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x00FF00AA, "[x] Neon Instalado [x]");
        }
        if (listitem == 3) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon6", CreateObject(18652, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon7", CreateObject(18652, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon6"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon7"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 4) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon8", CreateObject(18651, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon9", CreateObject(18651, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon8"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon9"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 5) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon10", CreateObject(18650, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon11", CreateObject(18650, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon10"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon11"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 6) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon12", CreateObject(18648, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon13", CreateObject(18648, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon14", CreateObject(18649, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon15", CreateObject(18649, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon12"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon13"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon14"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon15"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 7) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon16", CreateObject(18648, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon17", CreateObject(18648, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon18", CreateObject(18652, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon19", CreateObject(18652, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon16"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon17"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon18"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon19"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 8) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon20", CreateObject(18647, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon21", CreateObject(18647, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon22", CreateObject(18652, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon23", CreateObject(18652, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon20"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon21"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon22"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon23"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 9) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon24", CreateObject(18647, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon25", CreateObject(18647, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon26", CreateObject(18650, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon27", CreateObject(18650, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon24"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon25"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon26"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon27"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 10) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon28", CreateObject(18649, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon29", CreateObject(18649, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon30", CreateObject(18652, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon31", CreateObject(18652, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon28"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon29"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon30"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon31"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 11) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon32", CreateObject(18652, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon33", CreateObject(18652, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon34", CreateObject(18650, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon35", CreateObject(18650, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon32"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon33"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon34"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon35"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 12) {
         DestroyObject(GetPVarInt(playerid, "neon"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon1"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon2"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon3"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon4"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon5"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon6"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon7"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon8"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon9"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon10"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon11"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon12"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon13"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon14"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon15"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon16"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon17"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon18"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon19"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon20"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon21"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon22"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon23"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon24"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon25"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon26"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon27"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon28"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon29"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon30"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon31"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon32"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon33"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon34"));
         DeletePVar(playerid, "Status");
         DestroyObject(GetPVarInt(playerid, "neon35"));
        }
        }
        }
        return 1;
    }
    return 0;
}
Nгo deu.

As mensagem,dialog etc,aparece!
Somente o neon(luz) nгo aparece...
Reply
#7

pawn Код:
#include <a_samp>
#include streamer

#define TheNeon 8000
#define COLOR_BLUE 0x1229FAFF


public OnFilterScriptInit()
{
    print("\nSistema de Neon : Wizzi");
    return 1;
}
//**************Commands*********************//
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp(cmdtext, "/Neons", true)==0)
    {
    if(IsPlayerInAnyVehicle(playerid))
    {
    ShowPlayerDialog(playerid, TheNeon, DIALOG_STYLE_LIST, "{828282}Escolha uma Cor", "{E6E6FA}Azul\n{E6E6FA}Vermelho\n{E6E6FA}Verde\n{E6E6FA}Branco\n{E6E6FA}Violeta\n{E6E6FA}Amarelo\n{E6E6FA}Azul 2\n{E6E6FA}Azul 3\n{E6E6FA}Rosa\n{E6E6FA}Laranja\n{E6E6FA}Verde 2\n{E6E6FA}Amarelo 2\n{FF4500}Remover Neon", "Abrir", "Fechar");
    }
    else
    {
    SendClientMessage(playerid,COLOR_BLUE,"Tu nгo ta no veiculo.");
    }
    return 1;
    }
    return 0;
}
//**************Dialog*********************//
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
  if (dialogid == TheNeon)
  {
    if (response) {
        if (listitem == 0) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon", CreateDynamicObject(18648, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon1", CreateDynamicObject(18648, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 1) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon2", CreateDynamicObject(18647, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon3", CreateDynamicObject(18647, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon2"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon3"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 2) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon4", CreateDynamicObject(18649, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon5", CreateDynamicObject(18649, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon4"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon5"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x00FF00AA, "[x] Neon Instalado [x]");
        }
        if (listitem == 3) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon6", CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon7", CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon6"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon7"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 4) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon8", CreateDynamicObject(18651, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon9", CreateDynamicObject(18651, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon8"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon9"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 5) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon10", CreateDynamicObject(18650, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon11", CreateDynamicObject(18650, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon10"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon11"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 6) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon12", CreateDynamicObject(18648, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon13", CreateDynamicObject(18648, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon14", CreateDynamicObject(18649, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon15", CreateDynamicObject(18649, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon12"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon13"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon14"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon15"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 7) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon16", CreateDynamicObject(18648, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon17", CreateDynamicObject(18648, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon18", CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon19", CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon16"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon17"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon18"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon19"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 8) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon20", CreateDynamicObject(18647, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon21", CreateDynamicObject(18647, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon22", CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon23", CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon20"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon21"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon22"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon23"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 9) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon24", CreateDynamicObject(18647, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon25", CreateDynamicObject(18647, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon26", CreateDynamicObject(18650, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon27", CreateDynamicObject(18650, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon24"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon25"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon26"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon27"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 10) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon28", CreateDynamicObject(18649, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon29", CreateDynamicObject(18649, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon30", CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon31", CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon28"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon29"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon30"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon31"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 11) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon32", CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon33", CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon34", CreateDynamicObject(18650, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon35", CreateDynamicObject(18650, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon32"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon33"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon34"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon35"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 12) {
         DestroyDynamicObject(GetPVarInt(playerid, "neon"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon1"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon2"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon3"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon4"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon5"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon6"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon7"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon8"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon9"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon10"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon11"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon12"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon13"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon14"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon15"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon16"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon17"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon18"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon19"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon20"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon21"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon22"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon23"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon24"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon25"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon26"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon27"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon28"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon29"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon30"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon31"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon32"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon33"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon34"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon35"));
      }
    }
  }
  return 0;
}
Reply
#8

Quote:
Originally Posted by Don_Speed
Посмотреть сообщение
pawn Код:
#include <a_samp>
#include streamer

#define TheNeon 8000
#define COLOR_BLUE 0x1229FAFF


public OnFilterScriptInit()
{
    print("\nSistema de Neon : Wizzi");
    return 1;
}
//**************Commands*********************//
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp(cmdtext, "/Neons", true)==0)
    {
    if(IsPlayerInAnyVehicle(playerid))
    {
    ShowPlayerDialog(playerid, TheNeon, DIALOG_STYLE_LIST, "{828282}Escolha uma Cor", "{E6E6FA}Azul\n{E6E6FA}Vermelho\n{E6E6FA}Verde\n{E6E6FA}Branco\n{E6E6FA}Violeta\n{E6E6FA}Amarelo\n{E6E6FA}Azul 2\n{E6E6FA}Azul 3\n{E6E6FA}Rosa\n{E6E6FA}Laranja\n{E6E6FA}Verde 2\n{E6E6FA}Amarelo 2\n{FF4500}Remover Neon", "Abrir", "Fechar");
    }
    else
    {
    SendClientMessage(playerid,COLOR_BLUE,"Tu nгo ta no veiculo.");
    }
    return 1;
    }
    return 0;
}
//**************Dialog*********************//
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
  if (dialogid == TheNeon)
  {
    if (response) {
        if (listitem == 0) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon", CreateDynamicObject(18648, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon1", CreateDynamicObject(18648, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 1) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon2", CreateDynamicObject(18647, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon3", CreateDynamicObject(18647, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon2"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon3"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 2) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon4", CreateDynamicObject(18649, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon5", CreateDynamicObject(18649, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon4"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon5"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, 0x00FF00AA, "[x] Neon Instalado [x]");
        }
        if (listitem == 3) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon6", CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon7", CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon6"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon7"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 4) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon8", CreateDynamicObject(18651, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon9", CreateDynamicObject(18651, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon8"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon9"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 5) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon10", CreateDynamicObject(18650, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon11", CreateDynamicObject(18650, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon10"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon11"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 6) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon12", CreateDynamicObject(18648, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon13", CreateDynamicObject(18648, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon14", CreateDynamicObject(18649, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon15", CreateDynamicObject(18649, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon12"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon13"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon14"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon15"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 7) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon16", CreateDynamicObject(18648, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon17", CreateDynamicObject(18648, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon18", CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon19", CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon16"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon17"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon18"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon19"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 8) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon20", CreateDynamicObject(18647, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon21", CreateDynamicObject(18647, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon22", CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon23", CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon20"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon21"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon22"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon23"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 9) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon24", CreateDynamicObject(18647, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon25", CreateDynamicObject(18647, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon26", CreateDynamicObject(18650, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon27", CreateDynamicObject(18650, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon24"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon25"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon26"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon27"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 10) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon28", CreateDynamicObject(18649, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon29", CreateDynamicObject(18649, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon30", CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon31", CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon28"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon29"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon30"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon31"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 11) {
            SetPVarInt(playerid, "Status", 1);
            SetPVarInt(playerid, "neon32", CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon33", CreateDynamicObject(18652, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon34", CreateDynamicObject(18650, 0, 0, 0, 0, 0, 0));
            SetPVarInt(playerid, "neon35", CreateDynamicObject(18650, 0, 0, 0, 0, 0, 0));
            AttachObjectToVehicle(GetPVarInt(playerid, "neon32"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon33"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon34"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "neon35"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1, "Seu Neon foi instalado :D");
        }
        if (listitem == 12) {
         DestroyDynamicObject(GetPVarInt(playerid, "neon"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon1"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon2"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon3"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon4"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon5"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon6"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon7"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon8"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon9"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon10"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon11"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon12"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon13"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon14"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon15"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon16"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon17"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon18"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon19"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon20"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon21"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon22"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon23"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon24"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon25"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon26"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon27"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon28"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon29"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon30"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon31"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon32"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon33"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon34"));
         DeletePVar(playerid, "Status");
         DestroyDynamicObject(GetPVarInt(playerid, "neon35"));
      }
    }
  }
  return 0;
}
Edit
Consegui arrumar o erro do comando..
Desse jeito o neon apareзeu

Obrigado *--*

+REP'
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)