SA-MP Forums Archive
PlayerPlaySound - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: PlayerPlaySound (/showthread.php?tid=156876)



PlayerPlaySound - [NTX]MikeQ - 24.06.2010

Hey i was wondering what to put in the float places like

pawn Код:
PlayerPlaySound(playerid,1097,Float:x,Float:y,Float:z);



Re: PlayerPlaySound - Hiddos - 24.06.2010

To just play it globally, use 0-0-0. To play it on a specific location, use co-ords. (If you're setting the Z a few feet above his position, he'll hear the sound above him, same with left/right).


Re: PlayerPlaySound - [NTX]MikeQ - 24.06.2010

ty

EDIT:weird when i spawn the song is still on but i have this line under RequestClass thingy


Re: PlayerPlaySound - Assyria - 24.06.2010

You have to stop the sound when spawn, it was done by playing the next soundid, if I remember right.
Correct me if Im wrong.


Re: PlayerPlaySound - [NTX]MikeQ - 24.06.2010

But how to do this like can you give me the code?


Re: PlayerPlaySound - billiout - 24.06.2010

put this on playerspawn

Код:
PlayerPlaySound(playerid,the next sound id in list,0,0,0);



Re: PlayerPlaySound - Hiddos - 24.06.2010

So for example, if your sound is:
pawn Код:
PlayerPlaySound(playerid,1063,0,0,0);
You'd stop it by

pawn Код:
PlayerPlaySound(playerid,1064,0,0,0);