problem with sound onplayerconnect rep+ - 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: problem with sound onplayerconnect rep+ (
/showthread.php?tid=579613)
problem with sound onplayerconnect rep+ -
Mijata - 28.06.2015
how to create sound on playerconnect like sound from game?
Re: problem with sound onplayerconnect rep+ -
Ritzy2K - 28.06.2015
Your custom mp3 song or...? ingame sounds?
Re: problem with sound onplayerconnect rep+ -
kloning1 - 28.06.2015
put some sound from cloud, database,
format sound ".mp3"
then
pawn Код:
//PlayAudioStreamForPlayer(playerid, url[], Float:posX = 0.0, Float:posY = 0.0, Float:posZ = 0.0, Float:distance = 50.0, usepos = 0)
OnPlayerConnect(playerid)
{
PlayAudioStreamForPlayer(playerid, "http://k003.kiwi6.com/hotlink/ggu8dozoep/TheAtlanticCraft_Minecraft_Parody_of_Eminem_and_Rihanna_s_Monster_-The_Herobrine_ebooks.com.mp3");
// some data
return 1;
}
Re: problem with sound onplayerconnect rep+ -
Mijata - 28.06.2015
i want sounds from gta no .mp3
Re: problem with sound onplayerconnect rep+ - justice96 - 28.06.2015
@
Mijata sounds list can be found here:
https://sampwiki.blast.hk/wiki/PlayerPlaySound
Re: problem with sound onplayerconnect rep+ -
Mijata - 28.06.2015
how i can stop this sound on player spawn?
Re: problem with sound onplayerconnect rep+ -
hamzajaved780 - 28.06.2015
Use this
Quote:
PlayerPlaySound(playerid, soundid+1, 0.0, 0.0, 0.0);
|
Replace the sound id with the sound id(Add +1 as written) you are using
It will stop the sound being played
Re: problem with sound onplayerconnect rep+ -
hamzajaved780 - 28.06.2015
This function would be handy...
Quote:
stock StopPlayerSound(playerid, soundid)
{
PlayerPlaySound(playerid, soundid+1, 0.0, 0.0, 10.0);
return 1;
}
|
Re: problem with sound onplayerconnect rep+ -
Mijata - 28.06.2015
oh thanks rep+ for all