a bit unfamiliar
#1

I am a bit unfamiliar with PlayerPlaySound could someone help out? I am trying to make a garage opening and closing sound and its not stopping the sound.

Quote:

if(GarInfo[garid][IsOpened]==false)
{
MoveObject(GarInfo[garid][Garid], GarInfo[garid][Xpos2], GarInfo[garid][Ypos2], GarInfo[garid][Zpos2],GarInfo[garid][GarSpeed],GarInfo[garid][XApos2], GarInfo[garid][YApos2], GarInfo[garid][ZApos2]);
PlayerPlaySound(playerid, 1035, X, Y, Z);
GarInfo[garid][IsOpened]=true;
}
else
{
MoveObject(GarInfo[garid][Garid], GarInfo[garid][Xpos1], GarInfo[garid][Ypos1], GarInfo[garid][Zpos1],GarInfo[garid][GarSpeed],GarInfo[garid][XApos1], GarInfo[garid][YApos1], GarInfo[garid][ZApos1]);
PlayerPlaySound(playerid, 1035, X, Y, Z);
GarInfo[garid][IsOpened]=false;
}

Reply
#2

Are you trying the play the sound to the player in general, or at a certain position?
If you simply want to play the sound, use
pawn Код:
PlayerPlaySound(playerid, 1035, 0, 0, 0);
Reply
#3

sry nvm I'm dumb just used the stop sound ID from https://sampwiki.blast.hk/wiki/SoundID
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)