Wtf? O.o
PHP Code:

Â*

simanovich
SourceMod Donor

Join Date: Jun 2012
Location: Israel

Â*Yesterday , 09:07 PM Â* Re: Bleeding Death
Â*Â*Â*#4
Fixed:
Code:
#include <amxmodx> #include <cstrike> #include <fun> //Variables new PLUGIN[]="Bleeding Death"; new AUTHOR[]="The Gaming Guy"; new VERSION[]="1.00"; new g_current_hp , g_next_hp , cvar_hp_dec , cvar_hp_time , cvar_hp_dec_start, g_hp_dec , g_hp_dec_start; new Float:g_hp_time; public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR); cvar_hp_dec = register_cvar("amx_bleed_hp","1"); cvar_hp_time = register_cvar("amx_bleed_time","10"); cvar_hp_dec_start = register_cvar("amx_bleed_start_hp","20"); } public client_putinserver(id) { g_hp_dec_start = get_pcvar_num(cvar_hp_dec_start); g_hp_time = get_pcvar_float(cvar_hp_time); g_current_hp = get_user_health(id); set_task(1.0, "loop",id); } public loop(id) { if (g_current_hp <= g_hp_dec_start) set_task(g_hp_time,"health_dec"); } public health_dec(id){ g_hp_dec = get_pcvar_num(cvar_hp_dec); g_next_hp = (g_current_hp - g_hp_dec); set_user_health(id,g_next_hp); set_task(0.1,"loop",id); }
__________________