HLMOD.HU Forrás Megtekintés
- www.hlmod.hu#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <fun>
#define PLUGIN "HPG"
#define VERSION "1.0"
#define AUTHOR "qKKKJ"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
}
public client_PreThink(id)
{
new hp = get_user_health(id)
if(is_user_alive(id))
{
if(100 <= hp && hp > 60)
{
set_user_rendering(id, kRenderFxGlowShell, 0, 255, 0, kRenderNormal,16)
}
else if(60 <= hp && hp > 30)
{
set_user_rendering(id, kRenderFxGlowShell, 255, 255, 0, kRenderNormal,16)
}
else if(hp < 30)
{
set_user_rendering(id, kRenderFxGlowShell, 255, 0, 0, kRenderNormal,16)
}
}
}