21.07.2014, 08:52
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(Pressed(KEY_CTRL) && IsPlayerInAnyVehicle(playerid) && !Bike(newcar))
{
new engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(newcar, engine, lights, alarm, doors, bonnet, boot, objective);
if(lights == 1)
{
SetVehicleParamsEx(newcar, engine, 0, alarm, doors, bonnet, boot, objective);
}
else
{
SetVehicleParamsEx(newcar, engine, 1, alarm, doors, bonnet, boot, objective);
}
return 1;
}
}
but when out a car why it work (has way to fix light use on a day normally same night ?) * sorry my english skill not good