Raised This Month: $ Target: $400
 0% 

file.ini and precache


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
vl@d
Senior Member
Join Date: Dec 2006
Location: Romania
Old 09-18-2007 , 14:45   file.ini and precache
Reply With Quote #1

A little help with this plugin
PHP Code:
new soundlist[Maxsounds][] = {"Half-Life01","Half-Life02","Half-Life04","Half-Life12","Half-Life13","Half-Life17"}

public 
client_connect(id){
    if(
get_cvar_num("loading_sound_mode") == 1){ // Cvar: loading_sound_mode 1 (default 1)
    
new i
    i 
random_num(0,Maxsounds-1)
    
client_cmd(id,"mp3 play media/%s",soundlist[i])
    return 
PLUGIN_CONTINUE
    
}
    if(
get_cvar_num("loading_sound_mode") == 2){
    new 
configsDir[64]
    
get_configsdir(configsDir63)
    
format(configsDir63"%s/loading_sound.ini"configsDir)
    }
    return 
PLUGIN_CONTINUE

How can precache the sounds in the file.ini
__________________


I hate Spammers....
vl@d 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 16:03.


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