You create more public's with the same name.
PHP Code:
public fw_TakeDamage(victim, inflictor, attacker, Float:damage) // if take damage drag off
{
if (is_user_alive(attacker) && (get_pcvar_num(cvar_dmg2stop) > 0))
{
g_ovr_dmg[victim] = g_ovr_dmg[victim] + floatround(damage)
if (g_ovr_dmg[victim] >= get_pcvar_num(cvar_dmg2stop))
{
g_ovr_dmg[victim] = 0
g_WallClimb[victim]
return HAM_IGNORED;
}
}
return HAM_IGNORED;
}
+
PHP Code:
public fw_TakeDamage(victim, inflictor, attacker, Float:damage) // if take damage drag off
{
if (!is_user_connected(attacker) || victim == attacker || !attacker)
return HAM_IGNORED;
while (g_damagedealt[attacker] > get_pcvar_num(cvar_dmg2stop))
{
g_can_climb[victim] = false
g_damagedealt[attacker] -= get_pcvar_num(cvar_dmg2stop)
}
g_damagedealt[attacker] += floatround(damage)
return HAM_IGNORED;
}
The same for fwd_playerprethink, i gave you the solution for problem,now resolve itself.
__________________