Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <foreach>
- /*
- AudioEx by Marko Koprivanac(Kopriva) v0.1
- Changelog:
- v0.1 Initial Release
- */
- stock PlayAudioStreamForAll(url[])
- {
- foreach (new i : Player)
- {
- PlayAudioStreamForPlayer(i, url);
- }
- }
- stock StopAudioStreamForAll()
- {
- foreach (new i : Player)
- {
- StopAudioStreamForPlayer(i);
- }
- }
- stock StopAudioStreamEx(Float:AudioRange, Float:AudioX, Float:AudioY, Float:AudioZ)
- {
- foreach (new i : Player)
- {
- if(IsPlayerInRangeOfPoint(i,AudioRange,AudioX,AudioY,AudioZ))
- {
- StopAudioStreamForPlayer(i);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement