set_user_health / set_user_armor
Hey =)
I'm just playing around with all the syntaxes you can use with AMXX... And I made this so that the clients would have 150 HP and 150 Armor when they spawn... Well... they have..... Sort of... =) I can take an M4A1 and shoot all my bullets to the head, still they don't die... Until I put a knife in their head... Why? PHP Code:
|
Re: set_user_health / set_user_armor
public client_PreThink(id)
That is called every frame. So you're setting the clients hp to 150 about 100 times every second... |
Re: set_user_health / set_user_armor
Quote:
Ok, nice to know that... But how come I can kill them with the knife? ;D |
Re: set_user_health / set_user_armor
You might do enough dmg to kill them in one hit.
Then they wouldn't be able to heal up as the damage is done directly. This is how you would set their health and armor at spawn. Code:
|
Re: set_user_health / set_user_armor
I'd imagine it to be true in Counter-Strike as well that a stab in the head will do more than 100 damage...a good way to tell is to type %h after you get killed. If it's below 0, yep.
So you may want to set it above 150 to prevent that. |
| All times are GMT -4. The time now is 01:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.