i changed the code to this:
PHP Code:
if ((get_team(victim) == 2) && (get_team(attacker) == 1) && is_user_alive(victim)) //Vamp attacks slayer and slayer still lives
{
set_user_frags(attacker, get_user_frags(attacker)+1)
set_msg_block(get_user_msgid("DeathMsg"), BLOCK_ONCE)
user_kill(victim)
set_user_frags(victim, get_user_frags(victim)+1)
make_deathMsg(attacker,victim,"claw")
console_print(0, "%s limbed %s", attackername, victimname)
}
return PLUGIN_HANDLED
It does the same, but solves the silentkill problem and only leaves the set_user_frags problem.
Are you saying that i have to hook the ScoreInfo message and create my own, like i did with the DeathMsg? Or is there a way to only refresh the frags? Im trying to figure out the ScoreInfo with the register_message command but i have no idea if that is the right way or if that even works...