11.01.2011, 03:49
(
Последний раз редактировалось Antonio [G-RP]; 11.01.2011 в 22:37.
)
fix.
new engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(GetVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);
if(lights==1)
{
enter code here
}
if(GetPlayerState(playerid) != 2) return SendClientMessage(playerid, COLOR_RED, "[ERROR] You cannot use this command while you are not the driver of a vehicle!");
GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);
if(lights != 1) SetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, 1, alarm, doors, bonnet, boot, objective);
else SetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, 0, alarm, doors, bonnet, boot, objective);