How to force? -
Eclips - 11.11.2014
Hello,
I want to force vehicle light to light on, but in day..
How can i do it ? Because i Wan\'t to make blinker
I use encode_lights, but it doesn\'t work..
Re: How to force? -
Toxik - 11.11.2014
search "SAMP Light on/off script "
take the script where is on and put OnPlayerEnterVehicle or something like that
Re : How to force? -
Eclips - 11.11.2014
don\'t work
Re: How to force? -
UltraScripter - 11.11.2014
pawn Code:
SetVehicleParamsEx(vehicleid, 0, 1, 0, 0, 0, 0, 0); //turns on
and
pawn Code:
SetVehicleParamsEx(vehicleid, 0, 0, 0, 0, 0, 0, 0); //turns OFf
Re: How to force? -
UltraScripter - 11.11.2014
pawn Code:
CMD:lon(playerid, params[])
{
SetVehicleParamsEx(vehicleid, 0, 1, 0, 0, 0, 0, 0); //turns lights on
return 1;
}
and
pawn Code:
CMD:loff(playerid, params[])
{
SetVehicleParamsEx(vehicleid, 0, 0, 0, 0, 0, 0, 0); //turns lights off
return 1;
}
Hope It Helped Man!!!........
Re : How to force? -
Eclips - 12.11.2014
no, it\'s already work with this.. But I wan\'t to make a blink systиme (with encode_lights) and it don\'t work
pawn Code:
CMD:lright(playerid, params[])
{
encode_lights(1, 0, 0, 0);
return 1;
}
Re : How to force? -
Eclips - 16.11.2014
bump
Re: How to force? -
RedFusion - 16.11.2014
pawn Code:
new vehicleid = GetPlayerVehicleID(playerid);
if(vehicleid != 0)
{
new engine,
lights,
alarm,
doors,
bonnet,
boot,
objective;
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
lights = (lights == 1) (0) : (1);
SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
}
Re : How to force? -
Eclips - 16.11.2014
That\'s already work, but, for exemple, i want to make cops light in day (
https://sampforum.blast.hk/showthread.php?tid=136277).
I\'ve make my own script with encode_light(0, 0, 0, 0) (example) but, it doesn\'t work for the day !
I want to force, for cops and cops car