Well, you could just do
PHP Code:
if (params[0] == "hurt")
{
clientr.hp -= clientr.weapon_damage;
if (clientr.hp <= 0)
{
clientr.dead = 1;
clientr.deaths += 1;
}
}
And have a timeout check for clientr.dead in the clientside part of the script, and if it equals 1, then freeze the player or w/e for when hes dead.
And btw, you need to set the clientr. flags serverside.
Edit: I worded it wrong, sorry