Raised This Month: $ Target: $400
 0% 

problem with end round sound


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Milki
New Member
Join Date: May 2013
Old 05-10-2013 , 10:20   problem with end round sound
Reply With Quote #1

hello!
i have this code:

PHP Code:
#include <amxmodx>

public plugin_precache() 
{
precache_sound("misc/rs1.wav")
precache_sound("misc/rs2.wav")
precache_sound("misc/rs3.wav")
precache_sound("misc/rs4.wav")
precache_sound("misc/rs5.wav")
precache_sound("misc/rs6.wav")

return 
PLUGIN_CONTINUE
}

public 
plugin_init() 

register_plugin("RoundSound","1.0","FastPanel")
register_event("SendAudio""t_win""a""2&%!MRAD_terwin")
register_event("SendAudio""ct_win""a""2&%!MRAD_ctwin"
}

public 
t_win()
{
new 
rand random_num(0,2)

client_cmd(0,"stopsound")

switch(
rand)
{
case 
0client_cmd(0,"spk misc/rs4.wav")
case 
1client_cmd(0,"spk misc/rs5.wav")
case 
2client_cmd(0,"spk misc/rs6.wav")
}

return 
PLUGIN_CONTINUE
}

public 
ct_win()
{
new 
rand random_num(0,2)

client_cmd(0,"stopsound")

switch(
rand)
{
case 
0client_cmd(0,"spk misc/rs1.wav")
case 
1client_cmd(0,"spk misc/rs2.wav")
case 
2client_cmd(0,"spk misc/rs3.wav")
}

return 
PLUGIN_CONTINUE

The problem is that it does not make sounds that are on sound/misc/rs1.wav / sound/misc/rs2.wav ans so.

ty for helpers!
Milki is offline
Reply



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 10:46.


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