How do I save Neon Lights on vehicles?
#1

Hello!

I have made a simple neon cmd that adds neon type lights at the bottom of the vehicle.
My problem is that they do not save; when you close the console or vehicles reload they're removed from the vehicle.

Here is my code:

pawn Code:
CMD:addneon(playerid, params[])
   {
    new neon1 = CreateObject(18648,0,0,0,0,0,0,100.0);
    new neon2 = CreateObject(18648,0,0,0,0,0,0,100.0);
    if(PlayerInfo[playerid][pAdmin] < 3)
    {
        return SendClientMessageEx(playerid, COLOR_RED, "You do not have permission to use this cmd.");
    }
    if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, COLOR_GREY, "You are not in a vehicle.");
    AttachObjectToVehicle(neon1, GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(neon2,GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    SendClientMessage(playerid, 0xFFFFFFFF, "Neon lights have been installed to the vehicle..");
    return 1;
 }
I need help with making these neon's save. Thanks for any help.

I am also new with Pawno so no bullying!
Regards,
Aaron.
Reply


Messages In This Thread
How do I save Neon Lights on vehicles? - by aaronwelsh - 02.01.2013, 00:59
Re: How do I save Neon Lights on vehicles? - by mrtms - 02.01.2013, 02:24
Re: How do I save Neon Lights on vehicles? - by Threshold - 02.01.2013, 03:35

Forum Jump:


Users browsing this thread: 1 Guest(s)