Siemka, Mam takie coś i pętla for nie działa w ogóle tzn są dzwięki nawet jak ktoś ma poniżej 100 szlugów. Co moze byc nie tak??
public hs() { new hsmode[4] get_cvar_string("hs_mode",hsmode,4) new hsmode_bit = read_flags(hsmode) new rand = random_num(0,2) if (hsmode_bit & 1) { new killer_id = read_data(1) new victim_id = read_data(2) new victim_name[33] get_user_name(victim_id,victim_name,33) set_hudmessage(200, 100, 0, -1.0, 0.30, 0, 3.0, 3.0, 0.15, 0.15, 1) switch(rand) { case 0: show_hudmessage(killer_id,"L E B S Z O T !^n Pwn3d %s !!",victim_name) case 1: show_hudmessage(killer_id,"D U P S Z O T !^n Zownowales %s !!",victim_name) case 2: show_hudmessage(killer_id,"H E A D S H O T !^n %s poszedl sie pier**lic!!",victim_name) } } if (hsmode_bit & 2) { for(new i=0; i<=32; i++) { if(get_user_jbpack(i) < 100) continue; log_amx("ZWRACAM COS DO KONSOLI: %d",i); switch(rand) { case 0: client_cmd(i,"spk misc/ut_pl/headshot"); case 1: client_cmd(i,"spk misc/ut_pl/dupszot"); case 2: client_cmd(i,"spk misc/ut_pl/pier**l"); } } } }
I zwraca takie coś (Jest aktualnie 3 osoby na serwerze)
L 03/24/2020 - 00:29:09: [ultimate_sounds_PL.amxx] ZWRACAM COS DO KONSOLI: 2
L 03/24/2020 - 00:29:09: [ultimate_sounds_PL.amxx] ZWRACAM COS DO KONSOLI: 7
L 03/24/2020 - 00:29:09: [ultimate_sounds_PL.amxx] ZWRACAM COS DO KONSOLI: 8
Użytkownik mlekovita edytował ten post 24.03.2020 00:31