SA-MP Forums Archive
Police radio effects for RP servers. - 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 radio effects for RP servers. (/showthread.php?tid=393128)



Police radio effects for RP servers. - Kethrios - 17.11.2012

Hello everyone !

Well, I'm the worst pawn newbie ever, and I'm asking here for help, thank you in advance.

I am looking for a way to code something, this something is :
For example when someone is calling 911 for the police, the police officers in duty receive a certain sound.
Same thing, for example when a police officer need backup
Or when someone is in custody.

I'm not asking for you, pro coders, to make it for me.
I'm just looking for someone who can help me by explaining how it is working, and how I can find a way to do it.

PS : Remember, I just started to work on pawn few days ago, so... I don't know anything.


Re: Police radio effects for RP servers. - [HK]Ryder[AN] - 17.11.2012

Check this out
playAudioStreamForPlayer
Syntax goes like this -
Код:
PlayAudioStreamForPlayer(playerid, url[])



Re : Police radio effects for RP servers. - Kethrios - 17.11.2012

I thank you, I'll try this out !


Re : Police radio effects for RP servers. - Kethrios - 17.11.2012

Hmm, do you know which file contain the police radio sounds actually ?
I have no idea o_o


Re: Police radio effects for RP servers. - Sting. - 17.11.2012

Well in GTA San Andreas there are certain recoreded voices by the LSPD local police but its not custom.


Re : Police radio effects for RP servers. - Kethrios - 17.11.2012

Yes that's what I'm talking about, for example playing a "immediate response" radio when someone call 911.
Sing is that I don't know which sound file contain them.


Re: Police radio effects for RP servers. - [HK]Ryder[AN] - 17.11.2012

PlayAudioStreamForPlayer does not play soundid's
it plays mp3 files
you can create/find an mp3, and direct link it
example would be this
PlayAudioStreamForPlayer(playerid, "www.mydomainname.com/yooooooooo.mp3");

OFC ^^ thats not gonna work :P


Re : Police radio effects for RP servers. - Kethrios - 17.11.2012

Yeah I saw this ^^ Thing is I need the audio file to upload them as mp3 files and then being able to use them in the script.


Re: Police radio effects for RP servers. - Vince - 17.11.2012

There are a lot of sounds that make up the police radio actually. You just have to mold them together. Kind of like how a GPS device works in your car. For example:

We've got a 10 - 54 - in - central - Rodeo

You may want to look into PlayCrimeReportForPlayer.


Re : Police radio effects for RP servers. - Kethrios - 17.11.2012

Hmm I'm kind of confused.
How can I mold them together ? I mean, I really don't get it.

Yeah I have to put different tracks together but... how ?
And with this : PlayCrimeReportForPlayer
I don't see anything that play a sound o.o

I'm a real newbie here guys.

EDIT :

PlayerPlaySound(playerid, 1130, 0.0, 0.0, 10.0);

Can you explain me this line ? 1130 is the sound that is played ? If yes what are 0.0, 0.0, 10.0 ?