Gdy wygra któraś ze stron to niegra muzyczka, kod SMA :
#include <amxmodx> public plugin_init() { register_plugin("RoundSound","1.1","Jesiu") 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,18) client_cmd(0,"stopsound") switch(rand) { case 0: client_cmd(0,"spk misc/PaCcinaa1") case 1: client_cmd(0,"spk misc/PaCcinaa2") case 3: client_cmd(0,"spk misc/PaCcinaa3") case 4: client_cmd(0,"spk misc/PaCcinaa5") case 5: client_cmd(0,"spk misc/PaCcinaa6") case 6: client_cmd(0,"spk misc/PaCcinaa7") case 7: client_cmd(0,"spk misc/PaCcinaa8") case 8: client_cmd(0,"spk misc/PaCcinaa9") case 9: client_cmd(0,"spk misc/PaCcinaa10") case 10: client_cmd(0,"spk misc/PaCcinaa11") case 11: client_cmd(0,"spk misc/PaCcinaa12") case 12: client_cmd(0,"spk misc/PaCcinaa13") case 13: client_cmd(0,"spk misc/PaCcinaa14") case 14: client_cmd(0,"spk misc/PaCcinaa15") case 15: client_cmd(0,"spk misc/PaCcinaa16") case 16: client_cmd(0,"spk misc/PaCcinaa17") case 17: client_cmd(0,"spk misc/PaCcinaa18") case 18: client_cmd(0,"spk misc/PaCcinaa19") } return PLUGIN_CONTINUE } public ct_win() { new rand = random_num(0,18) client_cmd(0,"stopsound") switch(rand) { case 0: client_cmd(0,"spk misc/PaCcinaa1") case 1: client_cmd(0,"spk misc/PaCcinaa2") case 3: client_cmd(0,"spk misc/PaCcinaa3") case 4: client_cmd(0,"spk misc/PaCcinaa5") case 5: client_cmd(0,"spk misc/PaCcinaa6") case 6: client_cmd(0,"spk misc/PaCcinaa7") case 7: client_cmd(0,"spk misc/PaCcinaa8") case 8: client_cmd(0,"spk misc/PaCcinaa9") case 9: client_cmd(0,"spk misc/PaCcinaa10") case 10: client_cmd(0,"spk misc/PaCcinaa11") case 11: client_cmd(0,"spk misc/PaCcinaa12") case 12: client_cmd(0,"spk misc/PaCcinaa13") case 13: client_cmd(0,"spk misc/PaCcinaa14") case 14: client_cmd(0,"spk misc/PaCcinaa15") case 15: client_cmd(0,"spk misc/PaCcinaa16") case 16: client_cmd(0,"spk misc/PaCcinaa17") case 17: client_cmd(0,"spk misc/PaCcinaa18") case 18: client_cmd(0,"spk misc/PaCcinaa19") } return PLUGIN_CONTINUE } public plugin_precache() { precache_sound("misc/PaCcinaa1.mp3") precache_sound("misc/PaCcinaa2.mp3") precache_sound("misc/PaCcinaa3.mp3") precache_sound("misc/PaCcinaa4.mp3") precache_sound("misc/PaCcinaa5.mp3") precache_sound("misc/PaCcinaa6.mp3") precache_sound("misc/PaCcinaa7.mp3") precache_sound("misc/PaCcinaa8.mp3") precache_sound("misc/PaCcinaa9.mp3") precache_sound("misc/PaCcinaa10.mp3") precache_sound("misc/PaCcinaa11.mp3") precache_sound("misc/PaCcinaa12.mp3") precache_sound("misc/PaCcinaa13.mp3") precache_sound("misc/PaCcinaa14.mp3") precache_sound("misc/PaCcinaa15.mp3") precache_sound("misc/PaCcinaa16.mp3") precache_sound("misc/PaCcinaa17.mp3") precache_sound("misc/PaCcinaa18.mp3") precache_sound("misc/PaCcinaa19.mp3") return PLUGIN_CONTINUE }
Daje +
Użytkownik Jesiu edytował ten post 02.07.2012 18:33