Roundsound MP3, skrypt ? CS


(Sebastian Semmerling) #1

Witam.

Mam problem z dodaniem dzwięków mp3 pod koniec rundy na swój serwer w Counter-Strike.

Miałem piosenki waw, ale za długo się pobierały, a teraz chce mp3, ale nie chce mi grać jak daje taki skrypt:

/* Plugin generated by AMXX-Studio */

include

include

define PLUGIN "New Plugin"

define VERSION "1.0"

define AUTHOR "Author"

public plugin_init() {

register_plugin(PLUGIN, VERSION, AUTHOR)

register_event("SendAudio", "t_win", "a", "2&%!MRAD_terwin")

register_event("SendAudio", "ct_win", "a", "2&%!MRAD_ctwin")

// Add your code here...

}

public t_win()

{

new rand = random_num(0,3)

client_cmd(0,"mp3 stop")

switch(rand)

{

case 0: client_cmd(0,"mp3 loop misc/sebatt1.mp3")

case 1: client_cmd(0,"mp3 loop misc/sebatt2.mp3")

case 2: client_cmd(0,"mp3 loop misc/sebatt3.mp3")

case 3: client_cmd(0,"mp3 loop misc/sebatt4.mp3")

case 4: client_cmd(0,"mp3 loop misc/sebatt5.mp3")

case 5: client_cmd(0,"mp3 loop misc/sebatt6.mp3")

case 6: client_cmd(0,"mp3 loop misc/sebatt7.mp3")

case 7: client_cmd(0,"mp3 loop misc/sebatt8.mp3")

case 8: client_cmd(0,"mp3 loop misc/sebatt9.mp3")

case 9: client_cmd(0,"mp3 loop misc/sebatt10.mp3")

case 10: client_cmd(0,"mp3 loop misc/sebatt11.mp3")

case 11: client_cmd(0,"mp3 loop misc/sebatt12.mp3")

case 12: client_cmd(0,"mp3 loop misc/sebatt13.mp3")

case 13: client_cmd(0,"mp3 loop misc/sebatt14.mp3")

case 14: client_cmd(0,"mp3 loop misc/sebatt15.mp3")

}

return PLUGIN_CONTINUE

}

public ct_win()

{

new rand = random_num(0,3)

client_cmd(0,"mp3 stop")

switch(rand)

{

case 0: client_cmd(0,"mp3 loop misc/sebact1.mp3")

case 1: client_cmd(0,"mp3 loop misc/sebact2.mp3")

case 2: client_cmd(0,"mp3 loop misc/sebact3.mp3")

case 3: client_cmd(0,"mp3 loop misc/sebact4.mp3")

case 4: client_cmd(0,"mp3 loop misc/sebact5.mp3")

case 5: client_cmd(0,"mp3 loop misc/sebact6.mp3")

case 6: client_cmd(0,"mp3 loop misc/sebact7.mp3")

case 7: client_cmd(0,"mp3 loop misc/sebact8.mp3")

case 8: client_cmd(0,"mp3 loop misc/sebact9.mp3")

case 9: client_cmd(0,"mp3 loop misc/sebact10.mp3")

case 10: client_cmd(0,"mp3 loop misc/sebact11.mp3")

case 11: client_cmd(0,"mp3 loop misc/sebact12.mp3")

case 12: client_cmd(0,"mp3 loop misc/sebact13.mp3")

case 13: client_cmd(0,"mp3 loop misc/sebact14.mp3")

case 14: client_cmd(0,"mp3 loop misc/sebact15.mp3")

}

return PLUGIN_CONTINUE

}

public plugin_precache()

{

precache_sound("misc/sebact1.mp3")

precache_sound("misc/sebact2.mp3")

precache_sound("misc/sebact3.mp3")

precache_sound("misc/sebact4.mp3")

precache_sound("misc/sebact5.mp3")

precache_sound("misc/sebact6.mp3")

precache_sound("misc/sebact7.mp3")

precache_sound("misc/sebact8.mp3")

precache_sound("misc/sebact9.mp3")

precache_sound("misc/sebact10.mp3")

precache_sound("misc/sebact11.mp3")

precache_sound("misc/sebact12.mp3")

precache_sound("misc/sebact13.mp3")

precache_sound("misc/sebact14.mp3")

precache_sound("misc/sebact15.mp3")

precache_sound("misc/sebatt1.mp3")

precache_sound("misc/sebatt2.mp3")

precache_sound("misc/sebatt3.mp3")

precache_sound("misc/sebatt4.mp3")

precache_sound("misc/sebatt5.mp3")

precache_sound("misc/sebatt6.mp3")

precache_sound("misc/sebatt7.mp3")

precache_sound("misc/sebatt8.mp3")

precache_sound("misc/sebatt9.mp3")

precache_sound("misc/sebatt10.mp3")

precache_sound("misc/sebatt11.mp3")

precache_sound("misc/sebatt12.mp3")

precache_sound("misc/sebatt13.mp3")

precache_sound("misc/sebatt14.mp3")

precache_sound("misc/sebatt15.mp3")

return PLUGIN_CONTINUE

}

Pomożecie mi z tym?;]

z góry dziękuje;)