Raised This Month: $119 Target: $400
 29% 

The DoD1.3 Victory Sound Help!!!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
zhcp211
Junior Member
Join Date: Apr 2020
Old 11-11-2020 , 04:28   The DoD1.3 Victory Sound Help!!!
Reply With Quote #1

i try to make a victory sound plugin, but it's not work.... somebody help!!!

//RoundSound.amxx -by MeiX

#include <amxmodx>

public plugin_init()
{
register_plugin("DOD 國歌音效","1.0","MeiX")
register_event("SendAudio", "MAP_ALLIED_VICTORY1", "a", "2&%!MRAD_RoundState")
register_event("SendAudio", "MAP_ALLIED_VICTORY2", "a", "2&%!MRAD_RoundState")
register_event("SendAudio", "MAP_AXIS_VICTORY1", "a", "2&%!MRAD_RoundState")
register_event("SendAudio", "MAP_AXIS_VICTORY2", "a", "2&%!MRAD_RoundState")
}

public MAP_ALLIED_VICTORY1()
{
new rand = random_num(0,2)

client_cmd(0,"stopsound")

switch(rand)
{
case 0: client_cmd(0,"spk ambience/sduswin.wav")
}

return PLUGIN_HANDLED
}

public MAP_ALLIED_VICTORY2()
{
new rand = random_num(0,2)

client_cmd(0,"stopsound")

switch(rand)
{
case 0: client_cmd(0,"spk ambience/sdbritwin.wav")
}

return PLUGIN_HANDLED
}

public MAP_AXIS_VICTORY1()
{
new rand = random_num(0,2)

client_cmd(0,"stopsound")

switch(rand)
{
case 0: client_cmd(0,"spk ambience/sdgermanwin.wav")
}

return PLUGIN_HANDLED
}

public MAP_AXIS_VICTORY2()
{
new rand = random_num(0,2)

client_cmd(0,"stopsound")

switch(rand)
{
case 0: client_cmd(0,"spk ambience/sdgermanwin.wav")
}

return PLUGIN_HANDLED
}

public plugin_precache()
{
precache_sound("ambience/sduswin.wav")
precache_sound("ambience/sdbritwin.wav")
precache_sound("ambience/sdgermanwin.wav")

return PLUGIN_CONTINUE
}

Last edited by zhcp211; 11-11-2020 at 04:56.
zhcp211 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-11-2020 , 23:36   Re: The DoD1.3 Victory Sound Help!!!
Reply With Quote #2

According to this, SendAudio is only a Counter-Strike feature. It's probably better to replace the sound in the entity data when the map is loading. I've never done it before but I've edited other map entities successfully.
__________________

Last edited by fysiks; 11-11-2020 at 23:46.
fysiks 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 08:02.


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