SA-MP Forums Archive
PlayerPlaySound (For everybody?) - 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: PlayerPlaySound (For everybody?) (/showthread.php?tid=373644)



PlayerPlaySound (For everybody?) - [p3]pr0t0typ3 - 31.08.2012

I was wondering,how would you use PlayerPlaySound to play a sound for all players and not just playerid?I dont think their is a callback to play it for all is their

If somebody knows how can you help plz?


Re: PlayerPlaySound (For everybody?) - IceMeteor - 31.08.2012

pawn Код:
for(new i; i<MAX_PLAYERS; i++)
{
    PlayerPlaySound(i, soundid, 0.0, 0.0, 0.0)
}
Dont forget to replace soundid!


Re: PlayerPlaySound (For everybody?) - [p3]pr0t0typ3 - 31.08.2012

thanks