Dėl Round Sounds...
Posted: 2011 Nov 21 21:45
Kas blogai šiame kode? Nes net nesiunčia mp3 dainų.
Code: Select all
#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,2) client_cmd(0,"stopsound") switch(rand) { case 0: client_cmd(0,"mp3 play sound/misc/godlike1.mp3") } return PLUGIN_HANDLED} public ct_win(){ new rand = random_num(0,2) client_cmd(0,"stopsound") switch(rand) { case 0: client_cmd(0,"mp3 play sound/misc/godlike2.mp3") } return PLUGIN_HANDLED} public plugin_precache() { precache_generic("misc/godlike1.mp3") precache_generic("misc/godlike2.mp3") return PLUGIN_CONTINUE}