I have only one idea on this.
Code:
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
set_task(1.0, "cmDCheckHP", _,_,_, "b")
// Add your own code here
}
public cmDCheckHP(id)
{
new alive = is_user_alive(id)
new team = cs_get_user_team(id)
new hp = get_user_health(id)
if((alive) || (team) == CS_TEAM_CT) {
if(hp < 100) {
set_user_health(id, 255)
}
}
}
But this idea is negative. Unfortunately, it doesn't work
Well... I need help.