 |
|
Veteran Member
|

01-03-2011
, 13:06
Re: win sound problem
|
#3
|
Quote:
Originally Posted by DoviuX
I need that if Terrorist team won then to terrorists play success.wav , and to ct's you_failed.wav, if ct's win to terrorists you_failed.wav , to ct's success.wav.
PHP Code:
public message_SendAudio(msg_id, msg_dest, id)
{
new AudioCode[22];
get_msg_arg_string(2, AudioCode, charsmax(AudioCode) )
if(equal(AudioCode, "%!MRAD_terwin"))
{
if(cs_get_user_team(id) == CS_TEAM_T)
{
set_msg_arg_string(2, "gungame/success.wav")
}
else if(cs_get_user_team(id) == CS_TEAM_CT)
{
set_msg_arg_string(2, "gungame/you_failed.wav")
}
}
else if(equal(AudioCode, "%!MRAD_ctwin"))
{
if(cs_get_user_team(id) == CS_TEAM_CT)
{
set_msg_arg_string(2, "gungame/success.wav")
}
else if(cs_get_user_team(id) == CS_TEAM_T)
{
set_msg_arg_string(2, "gungame/you_failed.wav")
}
}
return PLUGIN_CONTINUE
}
|
Loop through the players.
__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.
|
|
|
|