policeligts
#1

i found this command to put policelights on any vehicle but it doesnt saves them afer restart ets.. so how can i make save them

CMD:coplight(playerid,params[])
{
lights = CreateObject(19419,0.0,0.0,0.0,0.0,0.0,0.0,100.0);//use objectid 19419 or 19419, these are the light bars
new vehicleid = GetPlayerVehicleID(playerid);
AttachObjectToVehicle(lights, vehicleid, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);//play around with this coords a bit, i am not sure which coords are good...
return 1;
}
CMD:removecoplights(playerid,params[])
{
DestroyObject(lights);
return 1;
}
Reply
#2

if am sure , Try there is allot of FilterScripts who can Save Car with evry effect even after restart !
good luck

like this one , FS saving car tunning even after restart
i hope it will help you to give you an idea about how to save the cop light
https://sampforum.blast.hk/showthread.php?tid=256748
Reply
#3

no thats not that... this isnt like tuning its more like attachedobject
Reply
#4

Add a line in player's .ini file like: CopLights = 0/1. OnPlayerEnterVehicle check if this is 0/1. If its 1 then set lights on vehicle. The commands will only change the value inside the .ini file.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)