AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   file.ini and precache (https://forums.alliedmods.net/showthread.php?t=61005)

vl@d 09-18-2007 14:45

file.ini and precache
 
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

ConnorMcLeod 09-18-2007 15:20

Re: file.ini and precache
 
You can use this plugin, or one of links you'll find there :
http://forums.alliedmods.net/showthread.php?p=447122

M249-M4A1 09-18-2007 16:10

Re: file.ini and precache
 
Quote:

Originally Posted by connorr (Post 532680)
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

vl@d 09-20-2007 07:38

Re: file.ini and precache
 
Nvm i trashed the pluginu to hell and put direct in the .sma :P


All times are GMT -4. The time now is 16:03.

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