Advertisement
Guest User

AudioEx by KopriVa

a guest
Aug 5th, 2012
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. #include <a_samp>
  2. #include <foreach>
  3.  
  4. /*
  5.  
  6. AudioEx by Marko Koprivanac(Kopriva) v0.1
  7.  
  8. Changelog:
  9.  
  10. v0.1 Initial Release
  11.  
  12. */
  13.  
  14. stock PlayAudioStreamForAll(url[])
  15. {
  16. foreach (new i : Player)
  17. {
  18. PlayAudioStreamForPlayer(i, url);
  19. }
  20. }
  21.  
  22. stock StopAudioStreamForAll()
  23. {
  24. foreach (new i : Player)
  25. {
  26. StopAudioStreamForPlayer(i);
  27. }
  28. }
  29.  
  30. stock StopAudioStreamEx(Float:AudioRange, Float:AudioX, Float:AudioY, Float:AudioZ)
  31. {
  32. foreach (new i : Player)
  33. {
  34. if(IsPlayerInRangeOfPoint(i,AudioRange,AudioX,AudioY,AudioZ))
  35. {
  36. StopAudioStreamForPlayer(i);
  37. }
  38. }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement