Hello Medic zombie does not working
Please repair and I need to when steer on player and touch R that add to zombie 300 HP
Thank you


Kod:
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <zombieplague>
#include <fun>

#define PLUGIN "Zombie Medic"
#define VERSION "1.0"
#define AUTHOR "nikhilgupta345"

new const zclass_name[] = "Medic Zombie"
new const zclass_info[] = "[Lieci ostatnych zombikov]"
new const zclass_model[] = "zm_liecivy"
new const zclass_clawmodel[] = "liecivy_hand.mdl"
const zclass_health = 2000
const zclass_speed = 300
const Float:zclass_gravity = 1.0
const Float:zclass_knockback = 1.2

new gRegisterZombie

public plugin_init() 
{
  register_plugin(PLUGIN, VERSION, AUTHOR)
  gRegisterZombie = zp_register_zombie_class(zclass_name, zclass_info, zclass_model, zclass_clawmodel, zclass_health, zclass_speed, zclass_gravity, zclass_knockback)    
    
}

public Client_PreThink(id)
{
  if(zp_get_user_zombie_class(id) != gRegisterZombie || !is_user_alive(id)) return PLUGIN_HANDLED_MAIN
  new target, body, name[32], name2[32]
  get_user_name(id, name2, charsmax(name2))
  if(entity_get_int(id,EV_INT_button) & IN_RELOAD)
  {
    get_user_aiming(id, target, body, 50)
    {
      if(zp_get_user_zombie(target) && is_user_alive(target))
      {
        get_user_name(target, name, charsmax(name))
        set_user_health(target, get_user_health(target) + 2)
        
        set_hudmessage(255, 0, 0, -1.0, 0.35, 0, 6.0, 1.0, _, _, 1)
        show_hudmessage(target, "Bol si vylieceny %s", name2)
        show_hudmessage(id, "You are healing %s.", name)
      }
      
      else return PLUGIN_HANDLED
    }
  }
  return PLUGIN_HANDLED_MAIN
}