Simple question rep+
#3

I have that their.. But thats to set it to what the current engine state is.

pawn Код:
else if(newstate == PLAYER_STATE_DRIVER)
    {
        new carid = GetPlayerVehicleID(playerid);
        if(Vehicles[carid][Engine] == 0)
        {
            new engine, lights, alarm, doors, bonnet, boot, objective;
            GetVehicleParamsEx(carid, engine, lights, alarm, doors, bonnet, boot, objective);
            SetVehicleParamsEx(carid, 0, lights, false, doors, bonnet, boot, objective);
        }
        else if(Vehicles[carid][Engine] == 1)
        {
            new engine, lights, alarm, doors, bonnet, boot, objective;
            GetVehicleParamsEx(carid, engine, lights, alarm, doors, bonnet, boot, objective);
            SetVehicleParamsEx(carid, 1, lights, false, doors, bonnet, boot, objective);
        }
    }
Reply


Messages In This Thread
Simple question rep+ - by Azzeto - 12.02.2012, 01:38
Re: Simple question rep+ - by Lilcuete - 12.02.2012, 01:40
Re: Simple question rep+ - by Azzeto - 12.02.2012, 01:45
Re: Simple question rep+ - by Lilcuete - 12.02.2012, 01:56
Re: Simple question rep+ - by Nuke547 - 12.02.2012, 03:02
Re: Simple question rep+ - by nmader - 12.02.2012, 03:07
Re: Simple question rep+ - by Lynn - 12.02.2012, 03:22
Re: Simple question rep+ - by Nuke547 - 12.02.2012, 03:31
Re: Simple question rep+ - by Lynn - 12.02.2012, 03:34

Forum Jump:


Users browsing this thread: 2 Guest(s)