Raised This Month: $ Target: $400
 0% 

Download the sounds if they do not have


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 05-10-2012 , 10:01   Re: Download the sounds if they do not have
Reply With Quote #4

Code:
#include <amxmodx> #define MaxSounds 2 new soundlist[MaxSounds][] = { "sound/loading/loading_1.mp3", "sound/loading/loading_2.mp3" } public plugin_init() {     register_plugin("Loading Sound", "1.5", "Sutar") } public client_connect(id) {     client_cmd(id, "mp3 play %s", soundlist[random_num(1, MaxSounds)])     return PLUGIN_CONTINUE } public plugin_precache() {     for(new i = 0; i < MaxSounds; i++)     {         if(!file_exists(soundlist[i])){             precache_sound(soundlist[i])     }         return PLUGIN_CONTINUE } }

precache_sound doesnt not support formated lines
__________________
The functional way is the right way
GordonFreeman (RU) is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:19.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode