SA-MP Forums Archive
Police help - 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: Police help (/showthread.php?tid=635673)



Police help - silverms - 11.06.2017

I was playing on an server cnr one and when I was a cop if I was in any vehicle and press H it turn one police siren sound how can I do that? I mean by an player sound or anything how can I do that?


Re: Police help - Man43 - 11.06.2017

are you trying to say how to hear your siren sound?

Just Try if the server had commands like.. /siren if there not /siren just Press H - Capslock automacily you hear a sound.


Re: Police help - Jerry12 - 11.06.2017

Explain more...

Did you meant that you heard a new siren sound, different than the default?


Re: Police help - Toroi - 11.06.2017

https://sampwiki.blast.hk/wiki/CreateVehicle

Код:
(vehicletype, Float:x, Float:y, Float:z, Float:rotation, color1, color2, respawn_delay, addsiren=0)
Set the addsiren parameter to 1 for the vehicle you want to have siren.


Re: Police help - silverms - 11.06.2017

well that what I'm looking for but one problem
in my script I got /siren command to add an siren to the vehicle so how ill will create the vehicle with siren if it is already created I mean can I set vehicle siren without deleting and creating back


Re: Police help - Toroi - 11.06.2017

You have to set that parameter the moment you create that vehicle. It activates as if it were a cop car (by hitting the 'H' key). There's no need for a command.

However if what you want is to add and remove the siren of the vehicle the times you want, yeah, I think you must delete and create the vehicle again.


Re: Police help - silverms - 12.06.2017

mm okay thanks for help and my /siren command add the siren object to the car so that I wanted it to be realistic


Re: Police help - Kane - 12.06.2017

https://sampwiki.blast.hk/wiki/OnVehicleSirenStateChange

Script it to add the object when the siren goes on.