I am using this code:
PHP Code:
public fwSpawn(id) {
if (is_user_alive(id)) {
new iHealth = pev(id, pev_health);
switch (cs_get_user_team(id)) {
case CS_TEAM_CT: set_pev(id, pev_health, iHealth + gPlayerCtHealth[id]);
case CS_TEAM_T: set_pev(id, pev_health, iHealth + gPlayerTHealth[id]);
}
}
}
It's like your dead all the time but still alive.
Watch the picture.
It worked before, but when i coded abit more (not this health stuff), this happened, then i removed what i made, and its still there :S
gPlayerCtHealth[id] and gPlayerTHealth[id] can only be those values: 0, 10, 20, 30, 40, 50.
Thanks
-zacky