RSSy MYGO.pl Opublikowano Marzec 9, 2024 o 15:48 RSSy Udostępnij Opublikowano Marzec 9, 2024 o 15:48 So, whenever someone has selected the cerberus class a message gets sent, which is good. But when they are nemesis and they also have selected cerberus class the message gets sent, which i dont want. Could anyone help? I use ZP 4.3 . The Tesla class works, I tried doing it the same way but it doesnt work PHP Code: public zp_user_infected_post(id, infector) { if (zp_get_user_zombie_class(id) == g_cerberus) { ColorChat(id, GREEN, "^x04[SPK ZM]^x01 [Ability: %d Fury | Cooldown: 1 round]", get_pcvar_num(cvar_fury)) g_veces[id] = get_pcvar_num(cvar_fury) i_fury_time[id] = get_pcvar_num(cvar_furytime) emit_sound(id, CHAN_STREAM, idle, 1.0, ATTN_NORM, 0, PITCH_HIGH) remove_task(id) } { if (g_cerberus == zp_get_user_zombie_class(id) && !zp_get_user_nemesis(id)) ColorChat(id, GREEN, "^x04[SPK ZM]^x01 Test", get_pcvar_num(cvar_fury)) } } Tesla one ( works good ) PHP Code: public zp_user_infected_post(id, infector) { reset_cvars(id) if (g_zclass_energyball == zp_get_user_zombie_class(id)) { ChatColor(id, "!g[SPK ZM] !y%L",id,"TESLA_INFO11"); } { if (g_zclass_energyball == zp_get_user_zombie_class(id) && !zp_get_user_nemesis(id)) emit_sound(id, CHAN_VOICE, g_Classic_Infect_Sound[random(sizeof g_Classic_Infect_Sound)], VOL_NORM, ATTN_NORM, 0, PITCH_NORM) } } Przeczytaj cały wpis Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi