23.04.2014, 21:51
There has to be a position of the sound.
then use
Basically, your code is playing that sound at the coordinates 0,0,0 for your player, so you'd only hear it if you were at 0,0,0
Or just replace your line with
pawn Код:
stock PlayerSound(playerid, soundid)
{
new
Float: X,
Float: Y,
Float: Z;
GetPlayerPos(playerid, X, Y, Z);
PlayerPlaySound(playerid, soundid, X, Y, Z);
}
pawn Код:
PlayerSound(50050, playerid);
Or just replace your line with
pawn Код:
new
Float: X,
Float: Y,
Float: Z;
GetPlayerPos(playerid, X, Y, Z);
PlayerPlaySound(playerid, 10050, X, Y, Z);