PlayPlayerSound:@
#6

you only need to put the co-ordinates of the player if you are changing them to create an ~offset~ sound effect. In that case you need to get their position, and use the co-ordinates. ( the offset is not in the same format as, say, holding objects)
eg
pawn Code:
PlayerPlaySound(playerid,1098,0.0,0.0,10.0); // will play the sound at 0,0,10 on the map
If you don't need to offset the sound, setting the co-ordinates to 0.0,0.0,0.0 will play the sound for the player to hear.

if you want to offset the sound
pawn Code:
new Float:px,Float:py,Float:pz;
GetPlayerPos(playerid,px,py,pz);
PlayPlayerSound(playerid,1098,px,py,pz+10); // will play the sound 10m above the player
This is explained in the wiki as such, but the example they give is incorrect
Reply


Messages In This Thread
PlayPlayerSound:@ - by ColdXX - 07.10.2010, 15:08
Re: PlayPlayerSound:@ - by LarzI - 07.10.2010, 15:12
Re: PlayPlayerSound:@ - by WillyP - 07.10.2010, 15:13
Re: PlayPlayerSound:@ - by ColdXX - 07.10.2010, 15:15
Re: PlayPlayerSound:@ - by Conroy - 07.10.2010, 15:15
Re: PlayPlayerSound:@ - by Rachael - 07.10.2010, 15:16
Re: PlayPlayerSound:@ - by ColdXX - 07.10.2010, 15:22
Re: PlayPlayerSound:@ - by CrucixTM - 07.10.2010, 15:58
Re: PlayPlayerSound:@ - by WillyP - 07.10.2010, 16:05

Forum Jump:


Users browsing this thread: 1 Guest(s)