15.04.2013, 22:01
Hey i have a weird problem, which would be when i enter a vehicle, does i have to press Key_Handbrake, this is correct to turn the engine on, but it also shall turn the lights on which doesn't happen, they turn only on when i leave the vehicle. Here the code:
He is in a Timer Callback, because the engine shall start after a small duration. Everything works fine only this stupid lights not. Would great when someone can tell me what i've done wrong.
pawn Код:
public EngineTimer(playerid)
{
new engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(GetPlayerVehicleID(playerid),1,1, alarm,doors, bonnet, boot, objective);
return 1;
}

