Lights are bugged!
#3

Why do you have all that shit? Lol
pawn Code:
CMD:carlights(playerid,params[])
{
    if(GetPlayerState(playerid) == 2)
    {
        new veh = GetPlayerVehicleID(playerid);
        new engine, lights, alarm, doors, bonnet, boot, objective;
        GetVehicleParamsEx(veh,  engine, lights, alarm, doors, bonnet, boot, objective);
        {
            if(lights == 0)
            {
           
                SetVehicleParamsEx(veh,  engine, 1, alarm, doors, bonnet, boot, objective);
                SendEmote(playerid,"presses an button behind the steering wheel to turn on the lights.");
                return 1;
               
            }
            else
            {
           
                SetVehicleParamsEx(veh,  engine, 0, alarm, doors, bonnet, boot, objective);
                SendEmote(playerid,"presses an button behind the steering wheel to turn off the lights.");
                return 1;
               
            }
           
        }

    }
    else
    {
   
        SendErrorMsg(playerid,"You are not in a vehicle.");
        return 1;
       
    }

}
Also make sure to have this in OnGameModeInit()
pawn Code:
ManualVehicleEngineAndLights();
Reply


Messages In This Thread
Lights are bugged! - by Eugene. - 15.10.2013, 12:50
Re: Lights are bugged! - by Blademaster680 - 15.10.2013, 14:01
Re: Lights are bugged! - by Mattakil - 15.10.2013, 14:07
Re: Lights are bugged! - by Unri - 15.10.2013, 14:08
Re: Lights are bugged! - by thomaswilliams - 15.10.2013, 19:30
Re: Lights are bugged! - by Mattakil - 15.10.2013, 23:29
Re: Lights are bugged! - by Ayumi - 15.10.2013, 23:49
Re: Lights are bugged! - by Eugene. - 16.10.2013, 05:11

Forum Jump:


Users browsing this thread: 4 Guest(s)