How to force?
#1

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..
Reply
#2

search "SAMP Light on/off script "
take the script where is on and put OnPlayerEnterVehicle or something like that
Reply
#3

don\'t work
Reply
#4

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
Reply
#5

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!!!........
Reply
#6

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;
}
Reply
#7

bump
Reply
#8

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);
}
Reply
#9

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)