PlayerPlaySound
#1

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

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

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).
Reply
#3

ty

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

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.
Reply
#5

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

put this on playerspawn

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

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);
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)