Not tested but this may work for you:
PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>
public plugin_init()
{
register_plugin("ZE Show Button Used", "1.0", "Wicked-");
RegisterHam(Ham_Use, "func_button", "fwButtonUsed");
new ent = -1, target[6];
while((ent = engfunc(EngFunc_FindEntityByString,ent ,"classname", "func_button")) != 0)
{
pev(ent, pev_targetname, target, 5);
if(target[0] == 'h' && target[1] == 'e' && target[2] == 'l' && target[3] == 'i')
return set_fail_state("[ZE Show Button Used] Zombie Escape Button not found.");
}
return PLUGIN_CONTINUE;
}
public fwButtonUsed(ent, id)
{
new target[6];
pev(ent, pev_targetname, target, 5);
if(target[0] == 'h' && target[1] == 'e' && target[2] == 'l' && target[3] == 'i')
{
new name[32];
get_user_name(id, name, 31);
client_print(0, print_chat, "[ZE] '%s' used the escape button.", name);
}
}
If someone can test it and it works post a reply pls