Quote:
Originally Posted by RedRobster
The way to do this is...
PHP Code:
public plugin_init()
{
RegisterHam( Ham_Spawn, "player", "Player_Spawn", 1 )
}
public Player_Spawn(id)
{
if(cs_get_user_team == CS_TEAM_T && is_user_alive( id ) ) //Will only do it to Ts (Zombies if I remember correctly). Second thing is just an extra check, won't hurt to have it).
set_user_health( id, 100 ) //100 or w/e you want starting health to be
}
|
is_user_alive is not needed, everytime you spawn the player, he is alive, also you need to return HAM_IGNORED
__________________