Police radio effects for RP servers.
#1

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.
Reply
#2

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

I thank you, I'll try this out !
Reply
#4

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

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

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.
Reply
#7

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
Reply
#8

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.
Reply
#9

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.
Reply
#10

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 ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)