Witam,
próbuje zmienić dźwięki w radiu na jail break. Problem w tym, że gdy je podmienie nie działają one na serwerze. Plugin działa lecz nie słychać tych dźwięków. Znalazła by się jakaś dobra dusza, która potrafiła by mi wyjaśnić dlaczego ?
Link do pluginu : https://amxx.pl/topi...844-jail-radio/
SMA :
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #include <core> #define PLUGIN "Jail Radio" #define VERSION "1.0" #define AUTHOR "DarkGL" #define CTMENU_KEYS MENU_KEY_1|MENU_KEY_2|MENU_KEY_3|MENU_KEY_4|MENU_KEY_5 #define TTMENU_KEYS MENU_KEY_1|MENU_KEY_2|MENU_KEY_3|MENU_KEY_4|MENU_KEY_5|MENU_KEY_9 #define TTMENU_2KEYS MENU_KEY_1|MENU_KEY_2|MENU_KEY_3|MENU_KEY_4|MENU_KEY_5|MENU_KEY_8 new rozmawiasz[33]; new param[1] public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_clcmd("say radioTT","TT_radio"); register_clcmd("say radioCT","CT_radio"); register_clcmd("radio1","TT_radio"); register_clcmd("radio2","CT_radio"); register_menu("menu_ct",CTMENU_KEYS,"menu_ct_muza"); register_menu("menu_1tytul",TTMENU_KEYS,"menu_tt_muza"); register_menu("menu_2tytul",TTMENU_2KEYS,"menu_tt_muza2"); } public plugin_precache(){ precache_sound("misc/XXX/t1.wav"); precache_sound("misc/XXX/t2.wav"); precache_sound("misc/XXX/t3.wav"); precache_sound("misc/XXX/t4.wav"); precache_sound("misc/XXX/t5.wav"); precache_sound("misc/XXX/t6.wav"); precache_sound("misc/XXX/t7.wav"); precache_sound("misc/XXX/t8.wav"); precache_sound("misc/XXX/t9.wav"); precache_sound("misc/XXX/t10.wav"); precache_sound("misc/XXX/ct1.wav"); precache_sound("misc/XXX/ct2.wav"); precache_sound("misc/XXX/ct3.wav"); precache_sound("misc/XXX/ct4.wav"); precache_sound("misc/XXX/ct5.wav"); } public client_connect(id){ rozmawiasz[id]=0; } public client_disconnect(id){ rozmawiasz[id]=0; } public CT_radio(id){ if(get_user_team(id) == 2) { if(is_user_alive(id)) { if(rozmawiasz[id] == 0) { menu_ct(id); } } } } public TT_radio(id){ if(get_user_team(id) == 1) { if(is_user_alive(id)) { if(rozmawiasz[id] == 0) { menu_tt(id); } } } } public menu_ct(id){ show_menu(id, CTMENU_KEYS, "\yJebac Wiezniow^n^n\w1. Tu sie sie schowaly te pedaly!!^n2. Lepiej sie poloz ^n3. sp***dalaj!!^n4. Komu teraz za***ac !!^n5. Kladz sie *****!! ",-1,"menu_ct_muza"); return PLUGIN_HANDLED; } public menu_ct_muza(id,key){ switch(key) { case 0: { rozmawiasz[id]=1; emit_sound(id,CHAN_VOICE,"misc/XXX/ct1.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM) param[0] = id set_task(8.0,"mozna_rozmawiac",1,param, 1); } case 1: { rozmawiasz[id]=1; emit_sound(id,CHAN_VOICE,"misc/XXX/ct2.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM) param[0] = id set_task(8.0,"mozna_rozmawiac",2,param, 1); } case 2: { rozmawiasz[id]=1; emit_sound(id,CHAN_VOICE,"misc/XXX/ct3.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM) param[0] = id set_task(8.0,"mozna_rozmawiac",3,param, 1); } case 3: { rozmawiasz[id]=1; emit_sound(id,CHAN_VOICE,"misc/XXX/ct4.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM) param[0] = id set_task(8.0,"mozna_rozmawiac",4,param, 1); } case 4: { rozmawiasz[id]=1; emit_sound(id,CHAN_VOICE,"misc/XXX/ct5.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM) param[0] = id set_task(8.0,"mozna_rozmawiac",5,param, 1); } } } public menu_tt(id){ show_menu(id, TTMENU_KEYS, "\yWyzyj sie ^n^n\w1. Spierdalamy!!^n2. Wolniej *****!!^n3. h*j ci w dupe^n4. Na h*j sie gapisz^n5. Ide z toba!!^n^n9. Nastepne",-1,"menu_1tytul"); return PLUGIN_HANDLED; } public menu_tt_muza(id,key){ switch(key) { case 0: { rozmawiasz[id]=1; emit_sound(id,CHAN_VOICE,"misc/XXX/t1.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM) param[0] = id set_task(8.0,"mozna_rozmawiac",6,param, 1); } case 1: { rozmawiasz[id]=1; emit_sound(id,CHAN_VOICE,"misc/XXX/t2.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM) param[0] = id set_task(8.0,"mozna_rozmawiac",7,param, 1); } case 2: { rozmawiasz[id]=1; emit_sound(id,CHAN_VOICE,"misc/XXX/t3.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM) param[0] = id set_task(8.0,"mozna_rozmawiac",8,param, 1); } case 3: { rozmawiasz[id]=1; emit_sound(id,CHAN_VOICE,"misc/XXX/t4.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM) param[0] = id set_task(8.0,"mozna_rozmawiac",9,param, 1); } case 4: { rozmawiasz[id]=1; emit_sound(id,CHAN_VOICE,"misc/XXX/t5.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM) param[0] = id set_task(8.0,"mozna_rozmawiac",10,param, 1); } case 8: { menu_tt2(id); } } } public menu_tt2(id){ show_menu(id,TTMENU_2KEYS,"\yWyzyj sie ^n^n\w1. Spadamy stad!!^n2. Idziemy !!^n3. Sami spierdalajcie !!^n4. Chcialem sam sp***dalac!!^n5. Myslisz ze jestes kozakiem??^n^n8. Wroc",-1,"menu_2tytul") return PLUGIN_HANDLED; } public menu_tt_muza2(id,key){ switch(key){ case 0: { rozmawiasz[id]=1; emit_sound(id,CHAN_VOICE,"misc/XXX/t6.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM) param[0] = id set_task(8.0,"mozna_rozmawiac",11,param, 1); } case 1: { rozmawiasz[id]=1; emit_sound(id,CHAN_VOICE,"misc/XXX/t7.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM) param[0] = id set_task(8.0,"mozna_rozmawiac",12,param, 1); } case 2: { rozmawiasz[id]=1; emit_sound(id,CHAN_VOICE,"misc/XXX/t8.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM) param[0] = id set_task(8.0,"mozna_rozmawiac",13,param, 1); } case 3: { rozmawiasz[id]=1; emit_sound(id,CHAN_VOICE,"misc/XXX/t9.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM) param[0] = id set_task(8.0,"mozna_rozmawiac",14,param, 1); } case 4: { rozmawiasz[id]=1; emit_sound(id,CHAN_VOICE,"misc/XXX/t10.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM) param[0] = id set_task(8.0,"mozna_rozmawiac",15,param, 1); } case 7: { menu_tt(id); } } } public mozna_rozmawiac(param[1]){ new id = param[0]; rozmawiasz[id]=0; }