So this is what I tried:
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#define PLUGIN "New Plugin"
#define AUTHOR "Unknown"
#define VERSION "1.0"
new bool:IAmUsed[33]
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_Use,"counter_start","event_hostage_used",1)//possible button name
RegisterHam(Ham_Use,"clockstartbutton","event_hostage_used",1)//possible button name
RegisterHam(Ham_Use,"firsttimerelay","event_hostage_used",1)//possible button name
RegisterHam(Ham_Use,"gogogo","event_hostage_used",1)//possible button name
RegisterHam(Ham_Use,"multi_start","event_hostage_used",1)//possible button name
RegisterHam(Ham_Use,"func_button","event_hostage_used",1)//the entire button class
}
public event_hostage_used(hostage, id) {
client_print(id, print_chat, "HI")
}
I tried it with and without the func_button one, but alas, failure. Sorry I'm so not awesome with HamSandwich.
EDIT
--------------------------
D'OH...I didn't try just plain old func_button. I'm stupid. I didn't read classname and I thought entity name. So once I call the function (in this case
event_hostage_used), I have to check what entities are within a sphere of the player? Or can I send the entity that called the function TO the function and then extract the entity name from there?
Thanks again!
--MALON