Page 1 of 1

devotion aura

Posted: Thu Jul 10, 2008 5:19 pm
by whosyourdaddy
i was wondering if there's a way to make it so if the person has more than 175 hp his hp will be lowered to 175.. we have some plugins on our servers that give u some hp and with prep of health people cant max there hp to 225... i was wondering if its possible to mabye put an if statement in there to get the hp and if its > 175 it will automatically make it equal 175.. if this is possible can some1 make the script and tell me where to inserted it in the script

Re: devotion aura

Posted: Thu Jul 10, 2008 11:06 pm
by Geesu
This may be semi difficult - I don't know of an "on health change" function which could be called (at least that could be hooked when set_user_health is called).

Possible if it's checked on client_prethink - but rather intensive to be honest...

What is the issue with having more than 175 health?

Re: devotion aura

Posted: Fri Jul 11, 2008 3:40 pm
by whosyourdaddy
makes it almost impossible to kill a invisble human with 225 hp... is there a way you can do like

Code: Select all

if( user_health > 225)
{
set_user_health(175)
}
or something like that

Re: devotion aura

Posted: Mon Jul 14, 2008 3:47 pm
by Geesu
yea - just make a new plugin and put that exact line in client_prethink(id)