PHP Code:
public PlayerSpawn(id)
{
if (is_user_alive(id))
{
if(csa_health[id] != 100)
{
set_user_health(id,csa_health[id]);
}
}
}
You should also set pev_max_health to csa_health[id] (<- float).
So i suggest you to set pev_health and pev_max_health, so you can also get rid of fun module.
__________________