Чё тебе дать?напиши подробний ото я не понял. Добавлено (2011-10-04, 18:50)
---------------------------------------------
Может ты это иммел ввиду.
//RoundSound.amxx
#include
public plugin_init()
{
register_plugin("RoundSound","1.0","PaintLancer")
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(1,8)
client_cmd(0,"stopsound")
switch(rand)
{
case 1: client_cmd(0,"spk misc/roundsound/sven1")
case 2: client_cmd(0,"spk misc/roundsound/sven2")
case 3: client_cmd(0,"spk misc/roundsound/sven3")
case 4: client_cmd(0,"spk misc/roundsound/sven4")
case 5: client_cmd(0,"spk misc/roundsound/sven5")
case 6: client_cmd(0,"spk misc/roundsound/sven6")
case 7: client_cmd(0,"spk misc/roundsound/sven7")
case 8: client_cmd(0,"spk misc/roundsound/sven8")
}
return PLUGIN_HANDLED
}
public ct_win()
{
new rand = random_num(1,8)
client_cmd(0,"stopsound")
switch(rand)
{
case 1: client_cmd(0,"spk misc/roundsound/sven11")
case 2: client_cmd(0,"spk misc/roundsound/sven12")
case 3: client_cmd(0,"spk misc/roundsound/sven13")
case 4: client_cmd(0,"spk misc/roundsound/sven14")
case 5: client_cmd(0,"spk misc/roundsound/sven15")
case 6: client_cmd(0,"spk misc/roundsound/sven16")
case 7: client_cmd(0,"spk misc/roundsound/sven17")
case 8: client_cmd(0,"spk misc/roundsound/sven18")
}
return PLUGIN_HANDLED
}
public plugin_precache()
{
precache_sound("misc/roundsound/sven1.wav")
precache_sound("misc/roundsound/sven2.wav")
precache_sound("misc/roundsound/sven3.wav")
precache_sound("misc/roundsound/sven4.wav")
precache_sound("misc/roundsound/sven5.wav")
precache_sound("misc/roundsound/sven6.wav")
precache_sound("misc/roundsound/sven7.wav")
precache_sound("misc/roundsound/sven8.wav")
precache_sound("misc/roundsound/sven11.wav")
precache_sound("misc/roundsound/sven12.wav")
precache_sound("misc/roundsound/sven13.wav")
precache_sound("misc/roundsound/sven14.wav")
precache_sound("misc/roundsound/sven15.wav")
precache_sound("misc/roundsound/sven16.wav")
precache_sound("misc/roundsound/sven17.wav")
precache_sound("misc/roundsound/sven18.wav")
return PLUGIN_CONTINUE
}