22.10.2015, 08:16
I want hel with vehicle light...
if player in vehicle = light on (day,night)
and left ALT light off...
if player in vehicle = light on (day,night)
and left ALT light off...
public OnPlayerEnterVehicle(playerid, vehicleid, bool:ispassenger)
{
new hour, minute;
GetPlayerTime(playerid, hour, minute);
if(hour>19 || hour<5)
{
new engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vehicleid, engine, 1, alarm, doors, bonnet, boot, objective);
}
return 1;
}