27.05.2012, 18:49
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; } |