pai1ne13
Active member
- Joined
- Jan 2, 2019
- Messages
- 59
- Reaction score
- 4
hello, i wanna play more sounds when a the player have a check point on but I do not know how to declare this function and when i press "X" or 'Y" the sounds start at exactly time. How can i fix it?
Code:
{$CLEO .cs}
0000: NOP
repeat
wait 50
until 0AFA: is_samp_structures_available
repeat
wait 50
until 056D: actor $PLAYER_ACTOR defined
while true
wait 0
if or
key_down 89 = 30@
key_down 88 = 32@
then
0AAE: release_mp3 30@
0aae: 32@
0AAC: 30@ = load_audiostream "CLEO/music/s1.MP3"
0AAC: 32@ = load_audiostream "CLEO/music/s2.MP3"
0ABC: set_audiostream 30@ volume 2.0
0ABC: set_audiostream 32@ volume 2.0
0AAD: set_mp3 30@ perform_action 1
0AAD: set_mp3 32@ perform_action 1
0AAF: 1@ = get_mp3_length 30@
0AAF: 0@ = get_mp3_length 32@
0AAC: 30@ = load_audiostream "CLEO/music/s1.MP3"
0AAC: 32@ = load_audiostream "CLEO/music/s2.MP3"
wait 1000
end
end
Last edited: