Senior Member
Join Date: Dec 2014
Location: Iraq
|
07-15-2015
, 11:58
[request] up volume
|
#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 Apocalypse( id, level, cid ) { if( !cmd_access( id, level, cid, 1 ) ) return PLUGIN_HANDLED; if(g_usedapo) { ColorChat(id ,GREY, "^4[CS] ^1This command was ^4already used ^1in this map.") return PLUGIN_HANDLED } set_task( 2.0, "Apocalypse_START", id ); new szname[32] get_user_name(id, szname, charsmax(szname)) if(get_pcvar_num(g_Apocalypsecvar) == 1) { g_nextround_Apocalypse = true g_usedapo = true ColorChat(0, GREY, "^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(255, 20, 155, -1.0, 0.17, 1, 0.0, 5.0, 1.0, 1.0, -1) show_hudmessage(0,"Apocalypse Round Has Been Started!!!") new players[ 32 ], num; get_players( players, num ); for( new i = 0; i < num ; i++ ) { new item = players[ i ]; 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(item, 250) cs_set_user_nvg(item, 1 ) engclient_cmd(item, "nightvision") ColorChat(item, GREY, "^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(iMsgId, iMsgDest, id) { if(g_knivesround) { static szIcon[8]; get_msg_arg_string(2, szIcon, charsmax(szIcon)); if(equal(szIcon, "buyzone")) { if(get_msg_arg_int(1)) { set_pdata_int(id, 235, get_pdata_int(id, 235) & ~(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.
|
|