Sound File
How can i run sound files?
PHP Code:
|
Re: Sound File
precache_sound("path/to/sound/file.wav);
client_cmd(0,... change to: client_cmd(<id_of_player_to_play_sound_on>,.. . |
Re: Sound File
Yes, i know i add precache_sound();
but, i would like to use a random sound. EDIT: PHP Code:
|
Re: Sound File
Don't think you can precache the whole array at once, you'd probably need to precache each sound, one by one.
Then in random instead of charsmax(sounds) use sizeof(sounds) |
Re: Sound File
Quote:
And there's nothing wrong with using charsmax, apart from readability reasons, since: PHP Code:
|
Re: Sound File
Quote:
|
Re: Sound File
Quote:
lol think before say ay. |
Re: Sound File
Quote:
You just don't type the same code over and over again... |
Re: Sound File
Code:
|
Re: Sound File
hmmm, nice thnx
|
| All times are GMT -4. The time now is 21:36. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.