Code:
register_event("ResetHUD", "zombie_health", "e")
Code:
public zombie_health(id) {
if(is_user_bot(id)) {
set_user_health(id, get_cvar_num(g_pcvarzombiehp))
}
return PLUGIN_CONTINUE
}
Won't this cuase it so that every time the Hud is reset, the npc will get his HP restored? O.o
Read this before using ResetHUD to make sure your using the correct event.
http://forums.alliedmods.net/showthread.php?t=42159
If I'm not mistaken, doesn't ResetHUD also activate even in the middle of the round? So wouldn't the 'zombies' heal in the middle of the round?
O.o
__________________