Thread: Shop plugin
View Single Post
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 12-06-2014 , 21:38   Re: Shop plugin
Reply With Quote #5

Other suggestion is you can use set_pev(id, pev_health, floatmin(pev(id, pev_health) + 10.0, 100.0)) for health regeneration.

While set_pev(id, pev_armorvalue, floatmin(pev(id, pev_armorvalue) + 10.0, 100.0)) for armor regeneration.

This will ensure the health and armor regeneration will not exceed the limit value. In this case, the limit value is "100". ;)

Yet, you need to #include <fakemeta>.

Last edited by zmd94; 12-08-2014 at 01:43.
zmd94 is offline