16.11.2014, 11:39
pawn Code:
new vehicleid = GetPlayerVehicleID(playerid);
if(vehicleid != 0)
{
new engine,
lights,
alarm,
doors,
bonnet,
boot,
objective;
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
lights = (lights == 1) (0) : (1);
SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
}