problem with sound onplayerconnect rep+
#1

how to create sound on playerconnect like sound from game?
Reply
#2

Your custom mp3 song or...? ingame sounds?
Reply
#3

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;
}
Reply
#4

i want sounds from gta no .mp3
Reply
#5

@ Mijata sounds list can be found here: https://sampwiki.blast.hk/wiki/PlayerPlaySound
Reply
#6

how i can stop this sound on player spawn?
Reply
#7

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

This function would be handy...
Quote:

stock StopPlayerSound(playerid, soundid)
{
PlayerPlaySound(playerid, soundid+1, 0.0, 0.0, 10.0);
return 1;
}

Reply
#9

oh thanks rep+ for all
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)