#1

Hi, I was added Neon System on My GM, I've seen server on my country that have command for turn off/on the neon, but when the neon turned off the object doesn't destroyed, but just the color is gone, the object is still under the car, How to make like that ?
Reply
#2

show code
Reply
#3

I use this...
pawn Код:
stock LoadNeon(playerid, vehid)
{
    new v = GetPlayerVehicleID(playerid);
    switch(PlayerVehicleInfo[playerid][vehid][pvNeon])
    {
        case 1:
        {
            SetPVarInt(playerid, "neon", 1);
            SetPVarInt(playerid, "red1", CreateObject(18647,0,0,0,0,0,0));
            SetPVarInt(playerid, "red2", CreateObject(18647,0,0,0,0,0,0));
            AttachObjectToVehicle(GetPVarInt(playerid, "red1"), v, -0.909999, -0.009999, -0.649999, 0.000000, 0.000000, 0.000000);
            AttachObjectToVehicle(GetPVarInt(playerid, "red2"), v, 0.914999, -0.009999, -0.649999, 0.000000, 0.000000, 0.000000);
            PlayerVehicleInfo[playerid][vehid][pvNeonStatus] = 1;
        }
        case 2:
        {
            SetPVarInt(playerid, "neon", 1);
            SetPVarInt(playerid, "green1", CreateObject(18649,0,0,0,0,0,0));
            SetPVarInt(playerid, "green2", CreateObject(18649,0,0,0,0,0,0));
            AttachObjectToVehicle(GetPVarInt(playerid, "green1"), v, -0.909999, -0.009999, -0.649999, 0.000000, 0.000000, 0.000000);
            AttachObjectToVehicle(GetPVarInt(playerid, "green2"), v, 0.914999, -0.009999, -0.649999, 0.000000, 0.000000, 0.000000);
            PlayerVehicleInfo[playerid][vehid][pvNeonStatus] = 1;
        }
        case 3:
        {
            SetPVarInt(playerid, "neon", 1);
            SetPVarInt(playerid, "blue1", CreateObject(18648,0,0,0,0,0,0));
            SetPVarInt(playerid, "blue2", CreateObject(18648,0,0,0,0,0,0));
            AttachObjectToVehicle(GetPVarInt(playerid, "blue1"), v, -0.909999, -0.009999, -0.649999, 0.000000, 0.000000, 0.000000);
            AttachObjectToVehicle(GetPVarInt(playerid, "blue2"), v, 0.914999, -0.009999, -0.649999, 0.000000, 0.000000, 0.000000);
            PlayerVehicleInfo[playerid][vehid][pvNeonStatus] = 1;
        }
        case 4:
        {
            SetPVarInt(playerid, "neon", 1);
            SetPVarInt(playerid, "pink1", CreateObject(18651,0,0,0,0,0,0));
            SetPVarInt(playerid, "pink2", CreateObject(18651,0,0,0,0,0,0));
            AttachObjectToVehicle(GetPVarInt(playerid, "pink1"), v, -0.909999, -0.009999, -0.649999, 0.000000, 0.000000, 0.000000);
            AttachObjectToVehicle(GetPVarInt(playerid, "pink2"), v, 0.914999, -0.009999, -0.649999, 0.000000, 0.000000, 0.000000);
            PlayerVehicleInfo[playerid][vehid][pvNeonStatus] = 1;
        }
        case 5:
        {
            SetPVarInt(playerid, "neon", 1);
            SetPVarInt(playerid, "yellow1", CreateObject(18650,0,0,0,0,0,0));
            SetPVarInt(playerid, "yellow2", CreateObject(18650,0,0,0,0,0,0));
            AttachObjectToVehicle(GetPVarInt(playerid, "yellow1"), v, -0.909999, -0.009999, -0.649999, 0.000000, 0.000000, 0.000000);
            AttachObjectToVehicle(GetPVarInt(playerid, "yellow2"), v, 0.914999, -0.009999, -0.649999, 0.000000, 0.000000, 0.000000);
            PlayerVehicleInfo[playerid][vehid][pvNeonStatus] = 1;
        }
        case 6:
        {
            SetPVarInt(playerid, "neon", 1);
            SetPVarInt(playerid, "white1", CreateObject(18652,0,0,0,0,0,0));
            SetPVarInt(playerid, "white2", CreateObject(18652,0,0,0,0,0,0));
            AttachObjectToVehicle(GetPVarInt(playerid, "white1"), v, -0.909999, -0.009999, -0.649999, 0.000000, 0.000000, 0.000000);
            AttachObjectToVehicle(GetPVarInt(playerid, "white2"), v, 0.914999, -0.009999, -0.649999, 0.000000, 0.000000, 0.000000);
            PlayerVehicleInfo[playerid][vehid][pvNeonStatus] = 1;
        }
    }
    return 1;
}
I want make stock Unload Neon, but like I said, I want when the neon turned off, the object doesn't gone, just the color..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)