Raised This Month: $ Target: $400
 0% 

file.ini and precache


Post New Thread Reply   
 
Thread Tools Display Modes
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
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-18-2007 , 15:20   Re: file.ini and precache
Reply With Quote #2

You can use this plugin, or one of links you'll find there :
http://forums.alliedmods.net/showthread.php?p=447122
ConnorMcLeod is offline
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 09-18-2007 , 16:10   Re: file.ini and precache
Reply With Quote #3

Quote:
Originally Posted by connorr View Post
You can use this plugin, or one of links you'll find there :
http://forums.alliedmods.net/showthread.php?p=447122
What happened to the penguin? It was cute
__________________
M249-M4A1 is offline
vl@d
Senior Member
Join Date: Dec 2006
Location: Romania
Old 09-20-2007 , 07:38   Re: file.ini and precache
Reply With Quote #4

Nvm i trashed the pluginu to hell and put direct in the .sma
__________________


I hate Spammers....
vl@d is offline
Reply



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