Posts: 1,046
Threads: 250
Joined: Nov 2014
Reputation:
0
Hello guys, I script since a while but I never was interested in sounds or how to add them, but now I want to add a sound when a 911 comes in for the cops, I know how to make it only for the cops but the thing that I don't know is what site should I use to make the .mp3 file working with the script and what should I type in the script to add the song? Also If It is possible to play it without showing on the chat that there is a song playing.
Posts: 570
Threads: 55
Joined: Oct 2016
Add under
PHP код:
public OnPlayerConnect(playerid)
{
PlayAudioStreamForPlayer(playerid,"Your Audio or song site");
return 1;
}
if you want it to play when someone join just.
if you want it as Command use (zcmd):
PHP код:
#include <zcmd>
CMD:music(playerid,params[])
{
PlayAudioStreamForPlayer(playerid,"Your Audio or song site");
return 1;
}
i don't thing and there's a way to hide it from main chat.
Posts: 944
Threads: 128
Joined: Sep 2014
Reputation:
0
I'd say Dropbox is good, but no you can't hide the audio stream message, but what you can do is use PlayerPlaySound instead and play some sounds from the game, but of course if you can't find the sound you need you must play an audio stream.
Posts: 1,046
Threads: 250
Joined: Nov 2014
Reputation:
0
Can I make the sound follow a vehicle? Like make my custom police siren?