Something like this!
Code:
#include <amxmodx>
#include <fakemeta>
#define PLUGIN "New Plugin"
#define VERSION "1.0"
#define AUTHOR "Author"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_forward(FM_Touch,"fwd_touch")
}
public fwd_touch(ent,id)
{
new g_classname[32]
pev(ent, pev_classname, g_classname, 31)
/*static health
health = pev(id,pev_health)*/
if(equali(g_classname, "class_name"))
{
set_pev(id,pev_health,100)
}
}

Or if you want to call a contiousy a function a set_task wher you check class!
Code:
if(equali(g_classname, "class_name"))
{
set_task(1.0,"give_health",id,_,_,"b")
}
__________________