#include <amxmodx>
new const sounds_ct[][] = {"sound/misc/cct1.mp3","sound/misc/cct2.mp3","sound/misc/cct3.mp3","sound/misc/cct4.mp3","sound/misc/cct5.mp3","sound/misc/cct6.mp3","sound/misc/cct7.mp3","sound/misc/cct8.mp3","sound/misc/cct9.mp3","sound/misc/cct10.mp3"}
new const sounds_terro[][] = {"sound/misc/tte1.mp3","sound/misc/tte2.mp3","sound/misc/tte3.mp3","sound/misc/tte4.mp3","sound/misc/tt5.mp3","sound/misc/tt6.mp3","sound/misc/tt7.mp3","sound/misc/tt8.mp3","sound/misc/tt9.mp3","sound/misc/tt10.mp3"}
public plugin_init()
{
register_plugin("RoundSoundy","1","Sal")
register_event("SendAudio", "ct", "a", "2&%!MRAD_ctwin")
register_event("SendAudio", "terro", "a", "2&%!MRAD_terwin")
}
public plugin_precache()
{
new i
for(i = 0; i < sizeof sounds_ct; i++)
precache_generic(sounds_ct[i])
new u
for(u = 0; u < sizeof sounds_terro; u++)
precache_generic(sounds_terro[u])
}
public ct()
{
client_cmd(0,"stopsound")
client_cmd(0, "mp3 stop")
client_cmd(0, "mp3 play %s", sounds_ct[random_num(0, charsmax(sounds_ct))] )
}
public terro()
{
client_cmd(0,"stopsound")
client_cmd(0, "mp3 stop")
client_cmd(0, "mp3 play %s", sounds_terro[random_num(0, charsmax(sounds_terro))] )
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{ rtf1 ansi deff0{ fonttbl{ f0 fnil Tahoma;}}n viewkind4 uc1 pard lang1045 f0 fs16 n par }
*/Co zrobic zeby losowalo mi z tych 10 utworow nute jaka bedzie na koniec rundy? teraz losuje tak z 4 moze i nieraz w ogóle nie ma nuty -.-. proszę o pomoc w tym kodzie.


Dodatki SourceMod



Temat jest zamknięty









