Play sound twice
#1

I've tried something like this and it's only playing once.:

pawn Код:
stock RingNearPlayer(playerid)
{
    foreach(Player, i)
    {
        if(PlayerNearPlayer(10.0, playerid, i))
        {
            PlaySound(i, 1138);
            PlaySound(i, 1138);
            SCMEx(i, COLOR_PURPLE, "* %s's phone rings.", GetRPName(playerid));
        }
    }
}
Reply
#2

That will play it twice, yes, but at the same time. You need to play it again on a timer.
Reply
#3

So if I set a timer of 600 mileseconds, it won't lag right?
for example: There are 20 people around him, it will set 20 timers
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)