08.10.2016, 20:26
Код:
if(newkeys & KEY_ACTION && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
new vehicle = GetPlayerVehicleID(playerid);
GetVehicleParamsEx(vehicle, engine, lights, alarm, doors, bonnet, boot, objective);
if(lights == 0)
{
SetVehicleParamsEx(vehicle, engine, 1, alarm, doors, bonnet, boot, objective);
}
else if(lights == 1)
{
SetVehicleParamsEx(vehicle, engine, 0, alarm, doors, bonnet, boot, objective);
}
}
For some reason, nothing happens when I press CTRL.
Why is that so?


