user_origin help
How do I check every players health, and when one of there health is at 6hp, then it teleports them to
origin, x:1560 y:1372 z-403 stored help me out her,e I havent coded in 3 - 4 months, I can understand the coding but I cant really write it without getting errors, thx. |
Use get_user_health
then if their health is below a certain value use set_user_origin.. |
I already knew those two
I wanna know how to check there freakin health ... I tried Code:
Maybe im not checking all players? Do i have to put 30 in quotes? |
What mod is this for?
|
The Specialists...
well, heres my coding(horrible) Code:
|
Quote:
Code:
btw, your != you're. |
Code:
|
[edit]Freecode beat me to it.
|
wow u guys are really helping me here :P
thanks. But I wanted it at exactly a certain health then teleport em.. cause if someone gets shot by a gun & they get under 10 health or whatever, they'll be teleported then the person who was supposed to kill him wont be able to. This could be good for a hospital thing :P Question: if x = 0 then how is x the id dude? Confusing, maybe 0 is all players so itll teleport them all, lol. agh. |
Good point on the x thing, Freecode's may not work, he forgot to access the players array. Use this instead:
Code:
Also, funny to see that people are still using my code. |
| All times are GMT -4. The time now is 19:29. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.