Raised This Month: $32 Target: $400
 8% 

The DoD1.3 Victory Sound Help!!!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
zhcp211
Junior Member
Join Date: Apr 2020
Old 11-11-2020 , 03: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 03:56.
zhcp211 is offline
 



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 19:29.


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