rader_vip |
Noob |
|
|
Dołączył: 20 Cze 2006 |
Posty: 21 |
Przeczytał: 0 tematów
Ostrzeżeń: 1/3
|
|
|
|
|
|
|
|
witam ponownie .
Velvet zrobilem to wszystko jak mówiles i dalej tylko ze teraz mi odtwarza tylko 2 nagrania np.w terro tylko twinnar3 i 2
Kod: |
#include <amxmodx>
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(0,32)
client_cmd(0,"stopsound")
switch(rand)
{
case 0: client_cmd(0,"spk misc/twinnar")
case 1: client_cmd(0,"spk misc/twinnar2")
case 2: client_cmd(0,"spk misc/twinnar3")
case 3: client_cmd(0,"spk misc/twinnar4")
case 4: client_cmd(0,"spk misc/twinnar5")
case 5: client_cmd(0,"spk misc/twinnar6")
case 6: client_cmd(0,"spk misc/twinnar7")
case 7: client_cmd(0,"spk misc/twinnar8")
case 8: client_cmd(0,"spk misc/twinnar9")
case 9: client_cmd(0,"spk misc/twinnar10")
case 10: client_cmd(0,"spk misc/twinnar11")
case 11: client_cmd(0,"spk misc/twinnar12")
case 12: client_cmd(0,"spk misc/twinnar13")
case 13: client_cmd(0,"spk misc/twinnar14")
case 14: client_cmd(0,"spk misc/twinnar15")
case 15: client_cmd(0,"spk misc/twinnar16")
case 16: client_cmd(0,"spk misc/twinnar17")
case 17: client_cmd(0,"spk misc/twinnar18")
case 18: client_cmd(0,"spk misc/twinnar19")
case 19: client_cmd(0,"spk misc/twinnar20")
case 20: client_cmd(0,"spk misc/twinnar21")
case 21: client_cmd(0,"spk misc/twinnar22")
case 22: client_cmd(0,"spk misc/twinnar23")
case 23: client_cmd(0,"spk misc/twinnar24")
case 24: client_cmd(0,"spk misc/twinnar25")
case 25: client_cmd(0,"spk misc/twinnar26")
case 26: client_cmd(0,"spk misc/twinnar27")
case 27: client_cmd(0,"spk misc/twinnar28")
case 28: client_cmd(0,"spk misc/twinnar29")
case 29: client_cmd(0,"spk misc/twinnar30")
case 30: client_cmd(0,"spk misc/twinnar31")
case 31: client_cmd(0,"spk misc/twinnar32")
case 32: client_cmd(0,"spk misc/twinnar33")
}
return PLUGIN_HANDLED
}
public ct_win()
{
new rand = random_num(0,31)
client_cmd(0,"stopsound")
switch(rand)
{
case 0: client_cmd(0,"spk misc/ctwinnar2")
case 1: client_cmd(0,"spk misc/ctwinnar3")
case 2: client_cmd(0,"spk misc/ctwinnar4")
case 3: client_cmd(0,"spk misc/ctwinnar5")
case 4: client_cmd(0,"spk misc/ctwinnar6")
case 5: client_cmd(0,"spk misc/ctwinnar7")
case 6: client_cmd(0,"spk misc/ctwinnar8")
case 7: client_cmd(0,"spk misc/ctwinnar9")
case 8: client_cmd(0,"spk misc/ctwinnar10")
case 9: client_cmd(0,"spk misc/ctwinnar11")
case 10: client_cmd(0,"spk misc/ctwinnar12")
case 11: client_cmd(0,"spk misc/ctwinnar13")
case 12: client_cmd(0,"spk misc/ctwinnar14")
case 13: client_cmd(0,"spk misc/ctwinnar15")
case 14: client_cmd(0,"spk misc/ctwinnar16")
case 15: client_cmd(0,"spk misc/ctwinnar17")
case 16: client_cmd(0,"spk misc/ctwinnar18")
case 17: client_cmd(0,"spk misc/ctwinnar19")
case 18: client_cmd(0,"spk misc/ctwinnar20")
case 19: client_cmd(0,"spk misc/ctwinnar21")
case 20: client_cmd(0,"spk misc/ctwinnar22")
case 21: client_cmd(0,"spk misc/ctwinnar23")
case 22: client_cmd(0,"spk misc/ctwinnar24")
case 23: client_cmd(0,"spk misc/ctwinnar25")
case 24: client_cmd(0,"spk misc/ctwinnar26")
case 25: client_cmd(0,"spk misc/ctwinnar27")
case 26: client_cmd(0,"spk misc/ctwinnar28")
case 27: client_cmd(0,"spk misc/ctwinnar29")
case 28: client_cmd(0,"spk misc/ctwinnar30")
case 29: client_cmd(0,"spk misc/ctwinnar31")
case 30: client_cmd(0,"spk misc/ctwinnar32")
case 31: client_cmd(0,"spk misc/ctwinnar33")
}
return PLUGIN_HANDLED
}
public plugin_precache()
{
precache_sound("misc/ctwinnar2.wav")
precache_sound("misc/ctwinnar3.wav")
precache_sound("misc/ctwinnar4.wav")
precache_sound("misc/ctwinnar5.wav")
precache_sound("misc/ctwinnar6.wav")
precache_sound("misc/ctwinnar7.wav")
precache_sound("misc/ctwinnar8.wav")
precache_sound("misc/ctwinnar9.wav")
precache_sound("misc/ctwinnar10.wav")
precache_sound("misc/ctwinnar11.wav")
precache_sound("misc/ctwinnar12.wav")
precache_sound("misc/ctwinnar13.wav")
precache_sound("misc/ctwinnar14.wav")
precache_sound("misc/ctwinnar15.wav")
precache_sound("misc/ctwinnar16.wav")
precache_sound("misc/ctwinnar17.wav")
precache_sound("misc/ctwinnar18.wav")
precache_sound("misc/ctwinnar19.wav")
precache_sound("misc/ctwinnar20.wav")
precache_sound("misc/ctwinnar21.wav")
precache_sound("misc/ctwinnar22.wav")
precache_sound("misc/ctwinnar23.wav")
precache_sound("misc/ctwinnar24.wav")
precache_sound("misc/ctwinnar25.wav")
precache_sound("misc/ctwinnar26.wav")
precache_sound("misc/ctwinnar27.wav")
precache_sound("misc/ctwinnar28.wav")
precache_sound("misc/ctwinnar29.wav")
precache_sound("misc/ctwinnar30.wav")
precache_sound("misc/ctwinnar31.wav")
precache_sound("misc/ctwinnar32.wav")
precache_sound("misc/ctwinnar33.wav")
precache_sound("misc/twinnar.wav")
precache_sound("misc/twinnar2.wav")
precache_sound("misc/twinnar3.wav")
precache_sound("misc/twinnar4.wav")
precache_sound("misc/twinnar5.wav")
precache_sound("misc/twinnar6.wav")
precache_sound("misc/twinnar7.wav")
precache_sound("misc/twinnar8.wav")
precache_sound("misc/twinnar9.wav")
precache_sound("misc/twinnar10.wav")
precache_sound("misc/twinnar11.wav")
precache_sound("misc/twinnar12.wav")
precache_sound("misc/twinnar13.wav")
precache_sound("misc/twinnar14.wav")
precache_sound("misc/twinnar15.wav")
precache_sound("misc/twinnar16.wav")
precache_sound("misc/twinnar17.wav")
precache_sound("misc/twinnar18.wav")
precache_sound("misc/twinnar19.wav")
precache_sound("misc/twinnar20.wav")
precache_sound("misc/twinnar21.wav")
precache_sound("misc/twinnar22.wav")
precache_sound("misc/twinnar23.wav")
precache_sound("misc/twinnar24.wav")
precache_sound("misc/twinnar25.wav")
precache_sound("misc/twinnar26.wav")
precache_sound("misc/twinnar27.wav")
precache_sound("misc/twinnar28.wav")
precache_sound("misc/twinnar29.wav")
precache_sound("misc/twinnar30.wav")
precache_sound("misc/twinnar31.wav")
precache_sound("misc/twinnar32.wav")
precache_sound("misc/twinnar33.wav")
return PLUGIN_CONTINUE
}
|
i czemu tak sie dzieje?? pomuzcie sory ze tyle to zajelo ale |
|