devotion aura

Read log files for errors! If this fails, come here for help

Moderator: Forum Moderator

Post Reply
whosyourdaddy
Spell Breaker
Posts: 398
Joined: Sun Apr 27, 2008 10:11 pm

devotion aura

Post by whosyourdaddy » Thu Jul 10, 2008 5:19 pm

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
Image

User avatar
Geesu
<b>King of the world!</b>
Posts: 3159
Joined: Tue Jul 05, 2005 9:24 pm
Contact:

Re: devotion aura

Post by Geesu » Thu Jul 10, 2008 11:06 pm

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?
No Support via PM

whosyourdaddy
Spell Breaker
Posts: 398
Joined: Sun Apr 27, 2008 10:11 pm

Re: devotion aura

Post by whosyourdaddy » Fri Jul 11, 2008 3:40 pm

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
Image

User avatar
Geesu
<b>King of the world!</b>
Posts: 3159
Joined: Tue Jul 05, 2005 9:24 pm
Contact:

Re: devotion aura

Post by Geesu » Mon Jul 14, 2008 3:47 pm

yea - just make a new plugin and put that exact line in client_prethink(id)
No Support via PM

Post Reply