policeligts - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: policeligts (
/showthread.php?tid=437808)
policeligts -
Starky Yakavetta - 17.05.2013
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;
}
Re : policeligts -
MCZOFT - 17.05.2013
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
Re: policeligts -
Starky Yakavetta - 17.05.2013
no thats not that... this isnt like tuning its more like attachedobject
AW: policeligts -
HurtLocker - 17.05.2013
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.