Getting HP
#1

How would I get the hp of my team? I am making a textdraw to display the hp of the team.

I was thinking to get the team hp at the beginning of the match I can just get the teamcount and * 200 to get the full hp + armour count but after someone starts losing hp or armor on a team I have no clue on how to count this..

Do I need to calculate and subtract it or is there a way I can just get all the players on the team hp count every few seconds and keep updating the textdraw?
Reply
#2

This should help: https://sampwiki.blast.hk/wiki/GetPlayerHealth
Reply
#3

Just loop through all players in the team and add up the armour and hp
Reply
#4

Quote:
Originally Posted by Nero_3D
Посмотреть сообщение
Just loop through all players in the team and add up the armour and hp
After I posted this I just figured it out. Use the i and get hp yeah, thanks I had a brain fart, I realized how to do it after I posted the topic. Thanks anyway :P
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)