PDA

View Full Version : how to make car lights alltime turned on?


ProdrifterX
16/01/2012, 09:24 AM
hello guys .. i need help with car/veh lights to turn it allways on
exp at 12 : 00 o clock and something.. like this video
watch :O
its awesome work..
http://www.youtube.com/watch?v=gdMwE-l7Vvs

Sinner
16/01/2012, 09:37 AM
http://wiki.sa-mp.com/wiki/SetVehicleParamsForPlayer

ProdrifterX
16/01/2012, 09:40 AM
ok but how ? :D

Min
16/01/2012, 10:07 AM
SetVehicleLights(vehicleid, on)
{
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(vehicleid,engine,lights,alarm,d oors,bonnet,boot,objective);
SetVehicleParamsEx(vehicleid,engine,on,alarm,doors ,bonnet,boot,objective);
}

thimo
16/01/2012, 10:13 AM
Under onplayerentervehicle add this
new engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vehicleid, 1, 1, alarm, doors, bonnet, boot, objective);

:)

spedico
16/01/2012, 01:24 PM
Or add that code under OnVehicleSpawn.

ProdrifterX
16/01/2012, 02:03 PM
thanks guys it works.. but when player enter in vehicle lights is turned on.. when exit lights turning on ? :O how to make alltime on ? !

thimo
16/01/2012, 02:27 PM
Put it under onvehicle spawn :)

ProdrifterX
21/01/2012, 01:09 PM
Thankya
____________
IP : 188.40.57.132:7777
Drift - Generation (http://www.drift-generation.tk)
http://samp.ae-webmedia.de/signature/signature_big.php?bg=000000&text=FFFFFF&border=a0a0a0&ip=188.40.57.132&port=7777&bg_image= (http://samp.ae-webmedia.de/signature/)