28.06.2015, 16:49
how to create sound on playerconnect like sound from game?
//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;
}
PlayerPlaySound(playerid, soundid+1, 0.0, 0.0, 0.0); |
stock StopPlayerSound(playerid, soundid) { PlayerPlaySound(playerid, soundid+1, 0.0, 0.0, 10.0); return 1; } |