Kurde... Robie wszystko tak jak ma byc.. A plugin dalej nie działa Może mi ktoś powiedziec co jest w nim źle?!
I jeśli jest dobrze... To jak go prawidłowo zainstalowac..
Może jakieś cvary do amxx.cfg?
#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,9)
client_cmd(0,"stopsound")
switch(rand)
{
case 0: client_cmd(0,"mp3 play misc/counterowiec.pl/tt1")
case 1: client_cmd(0,"mp3 play misc/counterowiec.pl/tt2")
case 2: client_cmd(0,"mp3 play misc/counterowiec.pl/tt3")
case 3: client_cmd(0,"mp3 play misc/counterowiec.pl/tt4")
case 4: client_cmd(0,"mp3 play misc/counterowiec.pl/tt5")
case 5: client_cmd(0,"mp3 play misc/counterowiec.pl/tt6")
case 6: client_cmd(0,"mp3 play misc/counterowiec.pl/tt7")
case 7: client_cmd(0,"mp3 play misc/counterowiec.pl/tt8")
case 8: client_cmd(0,"mp3 play misc/counterowiec.pl/tt9")
case 9: client_cmd(0,"mp3 play misc/counterowiec.pl/tt10")
}
return PLUGIN_CONTINUE
}
public ct_win()
{
new rand = random_num(0,9)
client_cmd(0,"stopsound")
switch(rand)
{
case 0: client_cmd(0,"mp3 play misc/counterowiec.pl/ct1")
case 1: client_cmd(0,"mp3 play misc/counterowiec.pl/ct2")
case 2: client_cmd(0,"mp3 play misc/counterowiec.pl/ct3")
case 3: client_cmd(0,"mp3 play misc/counterowiec.pl/ct4")
case 4: client_cmd(0,"mp3 play misc/counterowiec.pl/ct5")
case 5: client_cmd(0,"mp3 play misc/counterowiec.pl/ct6")
case 6: client_cmd(0,"mp3 play misc/counterowiec.pl/ct7")
case 7: client_cmd(0,"mp3 play misc/counterowiec.pl/ct8")
case 8: client_cmd(0,"mp3 play misc/counterowiec.pl/ct9")
case 9: client_cmd(0,"mp3 play misc/counterowiec.pl/ct10")
}
return PLUGIN_CONTINUE
}
public plugin_precache()
{
precache_sound("misc/counterowiec.pl/tt1.mp3")
precache_sound("misc/counterowiec.pl/tt2.mp3")
precache_sound("misc/counterowiec.pl/tt3.mp3")
precache_sound("misc/counterowiec.pl/tt4.mp3")
precache_sound("misc/counterowiec.pl/tt5.mp3")
precache_sound("misc/counterowiec.pl/tt6.mp3")
precache_sound("misc/counterowiec.pl/tt7.mp3")
precache_sound("misc/counterowiec.pl/tt8.mp3")
precache_sound("misc/counterowiec.pl/tt9.mp3")
precache_sound("misc/counterowiec.pl/tt10.mp3")
precache_sound("misc/counterowiec.pl/ct1.mp3")
precache_sound("misc/counterowiec.pl/ct2.mp3")
precache_sound("misc/counterowiec.pl/ct3.mp3")
precache_sound("misc/counterowiec.pl/ct4.mp3")
precache_sound("misc/counterowiec.pl/ct5.mp3")
precache_sound("misc/counterowiec.pl/ct6.mp3")
precache_sound("misc/counterowiec.pl/ct7.mp3")
precache_sound("misc/counterowiec.pl/ct8.mp3")
precache_sound("misc/counterowiec.pl/ct9.mp3")
precache_sound("misc/counterowiec.pl/ct10.mp3")
return PLUGIN_CONTINUE
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1045\\ f0\\ fs16 \n\\ par }
*/
Witamy w Nieoficjalnym polskim support'cie AMX Mod X
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Guest Message by DevFuse