How to stop sound.. - 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)
+--- Thread: How to stop sound.. (
/showthread.php?tid=345944)
How to stop sound.. -
Dr0gIraN - 26.05.2012
Hello I made movable door and taking place this door, you hear the sound 1165 to all players who are near to the site, but I do not know how to do stop the sound with ID 1166 to play four seconds after the launch ..Someone will help you make a stopping?
Sorry for my bad English!
Re: How to stop sound.. -
TheDominator - 26.05.2012
Try assigning a timer to it.
Re: How to stop sound.. -
Kitten - 26.05.2012
I believe this would work if not, Dominator way would work but having timers for such a small function/thing is pointless.
pawn Код:
forward YourFunction()
public YourFunction()
{
MoveObject(gateid,Float:x,Float:y,Float:z,3.0);
PlayerPlaySound(playerid, 1165, 0.0, 0.0, 0.0);
return 1;
}
public OnObjectMoved(objectid)
{
if(objectid == gateid) return PlayerPlaySound(playerid,1166,0.0,0.0,0.0);
return 1;
}