[SNIPPET] Play Sounds

Always wanted to play SOUNDS.. but never wanted to use .mp3 files?
You may know 03CF but cant find the perfect sound?

Find it out now:
http://ocain.kilu.de/gtasa_sasp/

Code:
:WAV_LOAD
03CF: load_wav 18407 as 1 // 18407 = Sound-ID

:WAV_PRELOAD
0001: wait 0 ms
00D6: if 
03D0:   wav 1 loaded
004D: jump_if_false @WAV_PRELOAD
03D1: play_wav 1

:WAV_CHECK
0001: wait 0 ms
00D6: if
03D2:   wav 1 ended 
004D: jump_if_false @WAV_CHECK
040D: unload_wav 1
 
Top