Witam mam problem z pewnym kawalkiem kodu
public fwTakeDamage(ofiara, atakujacy, idinflictor, Float:damage, damagebits){ if(berek){ if(is_user_alive(atakujacy) && get_user_team(atakujacy) == 2) { new wid = get_user_weapon(atakujacy) if(wid == CSW_KNIFE && is_user_alive(ofiara) && get_user_team(ofiara) == 1) { czas[ofiara] = 15 set_task(1.0, "zamroz", ofiara, _, _, "b"); fm_set_user_maxspeed(ofiara, 0.1) fm_set_user_rendering(ofiara, kRenderFxGlowShell, 0, 0, 255, kRenderGlow, 30) } } if(is_user_alive(atakujacy)){ if(get_user_weapon(atakujacy) == CSW_KNIFE && get_user_team(atakujacy) == 1){ fm_set_user_maxspeed(ofiara, get_pcvar_float(pCvar_speed_tt)); client_cmd(ofiara, "cl_forwardspeed 400; cl_backspeed 400; cl_sidespeed 400") fm_set_user_rendering(ofiara, kRenderFxNone, 0, 0, 0, kRenderNormal); remove_task(ofiara) } } } return HAM_IGNORED; }
Chodzi o to,ze jesli ten plugin jest wlaczony z slinkiem od jailbreaka nie idzie odmrozic tt przez tt poprzez uderzenie nozem.
Tu wycinek z slinika
public player_attack(victim, attacker, Float:damage, Float:direction[3], tracehandle, damagebits) { if(!is_user_connected(victim) || !is_user_connected(attacker) || victim == attacker) return HAM_IGNORED if(duel[victim] || duel[attacker]) { if((victim == g_DuelA && attacker == g_DuelB) || (victim == g_DuelB && attacker == g_DuelA)) return HAM_IGNORED return HAM_SUPERCEDE } if(blokada[attacker] || has_fd[victim] != 0 && has_fd[victim] == rundy && get_user_team(attacker) == 1) return HAM_SUPERCEDE if(get_user_team(victim) == 2 && get_user_team(attacker) == 2) return HAM_SUPERCEDE if(get_user_team(victim) == 1 && get_user_team(attacker) == 1 && !friendly_tt) return HAM_SUPERCEDE if(get_user_team(victim) == 1 && get_user_team(attacker) == 2 && zywi != 1 && killday) return HAM_SUPERCEDE if(get_user_team(victim) == 2 && get_user_team(attacker) == 1 && zywi != 1 && killday) return HAM_SUPERCEDE return HAM_IGNORED }
a dokladnie blokuje to:
if(get_user_team(victim) == 1 && get_user_team(attacker) == 1 && !friendly_tt) return HAM_SUPERCEDE
probowalem zastapic returna innym.lecz wtedy tt moga sie bic ze soba w kazdej rundzie.
Ma ktos moze jakis pomysl jak to zrobic.Jesli cos jest nie jasne postaram sie bardziej opisac problem.