If player has armor (Half-Life), it is not correct. Damage will affect on health and armor during the game. Example:
player has 100 HP/100 AP. After taking 50.0 damage he will be 90 HP/ 80 AP
I can calculate the loss of armor & health separately and use set_pev(player, pev_armorvalue, AP) and set_pev(player, pev_health, HP) to set it. But may be it's not best way.
My bad, didn't see the [HL] in the title.
__________________
[ Paid Requests ] DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT