Play sound twice - 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: Play sound twice (
/showthread.php?tid=447854)
Play sound twice -
PaulDinam - 01.07.2013
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));
}
}
}
Re: Play sound twice -
MP2 - 01.07.2013
That will play it twice, yes, but
at the same time. You need to play it again on a timer.
Re: Play sound twice -
PaulDinam - 02.07.2013
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