Raised This Month: $12 Target: $400
 3% 

[request] up volume


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
arvEL.
Senior Member
Join Date: Dec 2014
Location: Iraq
Old 07-15-2015 , 11:58   [request] up volume
Reply With Quote #1

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <csx>
#include <hamsandwich>
#include <cstrike>
#include <engine>
#include <fun>
#include <fakemeta>
#include <colorchat>
#include <dhudmessage> 

// Apocalypse Round -----------------------------------------------------
#define Maxsounds 1
new soundlist[Maxsounds][] = {"Half-Life01"}
new 
g_Apocalypsecvar
new g_nextround_Apocalypse false
new g_Apocalypseround false
#define LIGHTS "b"
new g_usedapo false
//--------------------------------------------------------------------------
public plugin_init() {
// Apocalypse Round -----------------------------------------------------
    
register_clcmd"cs_apo""Apocalypse"ADMIN_BAN"Apocalypse Round Has Been Started!!!" )
    
register_event("HLTV""Event_NewRoundL""a""1=0""2=0")
    
register_logevent("LOGE_ENDL"2"1=Round_End")
    
g_Apocalypsecvar register_cvar("cs_apocalypse""1")
    
register_clcmd("drop""blockdropL")
    
register_message(get_user_msgid("StatusIcon"), "Message_StatusIconL"); //Block buy zone
    
register_event("CurWeapon""CurWeaponL""be""1=1"
//------------------------------------------------------------------
}
// Apocalypse Round -----------------------------------------------------
public Event_NewRoundL(id)
{
    if(
g_nextround_Apocalypse)
    {
        
set_lights("#OFF")
        
client_cmd(id,"mp3 stop")
        
g_nextround_Apocalypse false
        g_Apocalypseround 
false
    
}
}

public 
Apocalypseidlevelcid ) {    
    if( !
cmd_accessidlevelcid) ) return PLUGIN_HANDLED;    
    if(
g_usedapo)
    {
    
ColorChat(id ,GREY"^4[CS] ^1This command was ^4already used ^1in this map.")
    return 
PLUGIN_HANDLED
    

    
set_task2.0"Apocalypse_START"id );
    new 
szname[32]
    
get_user_name(idsznamecharsmax(szname))
    if(
get_pcvar_num(g_Apocalypsecvar) == 1)
    {
        
g_nextround_Apocalypse true
        g_usedapo 
true
        ColorChat
(0GREY"^1[ADMIN] ^4%s^1: started ^4Apocalypse ^1round!!"szname)
        
console_print(0"[ADMIN] %s: started Apocalypse round!!"szname)
        
client_cmd 0"spk ^"weapons/start_mod^"" );
        
set_lights(LIGHTS)
        new 
i
        i 
random_num(0,Maxsounds-1)
        
client_cmd(id,"mp3 play media/%s",soundlist[i])
        
ApocalypseShake(id)        
    }
    return 
PLUGIN_CONTINUE;
}
public 
Apocalypse_START( ) {    
    
g_Apocalypseround true
    set_hudmessage
(25520155, -1.00.1710.05.01.01.0, -1)
    
show_hudmessage(0,"Apocalypse Round Has Been Started!!!")
    new 
players32 ], num;
    
get_playersplayersnum );
    for( new 
0num i++ )
    {
        new 
item players];
        
strip_user_weapons(item)
        
give_item(item"weapon_m4a1")
        
give_item(item"weapon_ak47")
        
give_item(item"weapon_hegrenade")
        
give_item(item"weapon_smokegrenade")
        
give_item(item"weapon_flashbang")
        
give_item(item"weapon_deagle")
        
cs_set_user_bpammo(item,CSW_M4A1,800)
        
cs_set_user_bpammo(item,CSW_DEAGLE,800)
        
cs_set_user_bpammo(item,CSW_AK47,800)
        
cs_set_user_bpammo(item,CSW_HEGRENADE,2)
        
cs_set_user_bpammo(item,CSW_SMOKEGRENADE,2)
        
cs_set_user_bpammo(item,CSW_FLASHBANG,5)
        
set_user_health(item250)
        
cs_set_user_nvg(item,  )
        
engclient_cmd(item"nightvision")
        
ColorChat(itemGREY"^4[CS] ^1Press ^3N ^1to ^4disable ^1the ^4nightvision")
    }
    return 
PLUGIN_CONTINUE;
}

public 
blockdropL(id)
{
    if(
g_Apocalypseround)
    {
      return 
PLUGIN_HANDLED 
    
}
    return 
PLUGIN_CONTINUE;
}
public 
Message_StatusIconL(iMsgIdiMsgDestid
{
    if(
g_knivesround)
    {
        static 
szIcon[8];  
        
get_msg_arg_string(2szIconcharsmax(szIcon));
        if(
equal(szIcon"buyzone"))
        {  
            if(
get_msg_arg_int(1))
            {  
                
set_pdata_int(id235get_pdata_int(id235) & ~(1<<0));
                return 
PLUGIN_HANDLED;  
            }  
        }
    }
    return 
PLUGIN_CONTINUE;  
}
public 
LOGE_ENDL(id)
{
    if(
g_Apocalypseround)
    {
        
client_cmd(id,"mp3 stop"
        
set_lights("#OFF")
        
g_Apocalypseround false
    
}
}
public 
CurWeaponL(id)
{
    if(
g_Apocalypseround)
    {
        new 
weapon read_data(2)
         if(
weapon != CSW_FLASHBANG && weapon != CSW_DEAGLE &&  weapon != CSW_AK47 && weapon != CSW_M4A1 && weapon !=  CSW_HEGRENADE && weapon != CSW_SMOKEGRENADE)
        {
        
strip_user_weapons(id)
        
give_item(id"weapon_m4a1")
        
give_item(id"weapon_flashbang")
        
give_item(id"weapon_ak47")
        
give_item(id"weapon_hegrenade")
        
give_item(id"weapon_deagle")
        
give_item(id"weapon_smokegrenade")
        }
    }
}
//------------------------------------------------------------------------------------------------------------------------------------ 
here,, when the mod started he run the sound..
PHP Code:
client_cmd(id,"mp3 play media/%s",soundlist[i]) 
I want to adjust the volume degree
I want to be a sound high
[img]http://s29.************/3wix60hzb/y34y43y.png[/img]
i hope you are understand what i want..

Last edited by arvEL.; 07-15-2015 at 11:59.
arvEL. is offline
Send a message via Skype™ to arvEL.
Depresie
Veteran Member
Join Date: Nov 2013
Old 07-15-2015 , 13:50   Re: [request] up volume
Reply With Quote #2

well, i will tell you why this is not a good ideea

first, there are players, like me, which have their speaker's sound very high, and play cs with a volume of 0.005 / 0.01..
also you can't get the value of the user's client volume to increase it by a percent, to avoid the issue posted above...

also, i don't think this is in conformity with the forum's rules, because you modify the client ettings of players without their agreement

Last edited by Depresie; 07-15-2015 at 13:50.
Depresie is offline
arvEL.
Senior Member
Join Date: Dec 2014
Location: Iraq
Old 07-16-2015 , 07:19   Re: [request] up volume
Reply With Quote #3

Quote:
Originally Posted by Depresie View Post
well, i will tell you why this is not a good ideea

first, there are players, like me, which have their speaker's sound very high, and play cs with a volume of 0.005 / 0.01..
also you can't get the value of the user's client volume to increase it by a percent, to avoid the issue posted above...

also, i don't think this is in conformity with the forum's rules, because you modify the client ettings of players without their agreement
[SVLOED] convinced of your talk
thank you very much Emanuel
arvEL. is offline
Send a message via Skype™ to arvEL.
Depresie
Veteran Member
Join Date: Nov 2013
Old 07-16-2015 , 20:19   Re: [request] up volume
Reply With Quote #4

btw, you could try to turn up the volume of the mp3 file if it is too low, or better, use wav format !
wav files will be at the same volume as the other background sounds, for example gun shots etc
the volume of all wav format files is controled by the "Sound effects volume" knob

here is a tutorial how to convert files properly to .wav
Depresie is offline
Reply


Thread Tools
Display Modes

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 03:36.


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