How to stop sound..
#1

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!
Reply
#2

Try assigning a timer to it.
Reply
#3

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


Forum Jump:


Users browsing this thread: 1 Guest(s)