set_user_health() not doing anything
Hey, just started playing around with my first AMX MOD X mod, and true to form, I'm stuck. Just trying out a simple script that picks a random player on each team and puts them at 5 health. I'm not getting any errors, and it displays the names of the chosen players correctly, but it doesn't actually change anyones health.
Is there something else I have to do after calling set_user_health to actually apply the health change? Or is something else immediately resetting the health to 100? Any help is appreciated, thanks. Code:
#include <amxmodx> |
Re: set_user_health() not doing anything
Figured it out. Had to set a timer to delay the health change slightly. New code for reference:
Code:
#include <amxmodx> |
Re: set_user_health() not doing anything
|
Re: set_user_health() not doing anything
Thanks. I had read that (that's where I got the syntax for the HTLV event), but I missed the part about not being called the first round. Whoops.
|
| All times are GMT -4. The time now is 15:15. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.