11.01.2011, 04:01
instead of using the number 1, you need a variable to store the current state of the lights in.
If you want to check if the lights are on, just do something like:
If you want to check if the lights are on, just do something like:
pawn Код:
new engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(GetVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);
if(lights==1)
{
enter code here
}