After a while i got it working
I've used CBaseButton::ButtonUse with this signature:
PHP Code:
{
"name" : "ButtonUse",
"class" : "CBaseButton",
"library" : "mod",
"arguments" :
[
{
"type" : "int"
},
{
"type" : "int"
},
{
"type" : "int"
},
{
"type" : "float"
}
],
"identifiers":
[
{
"os" : "windows",
"mod" : "cstrike",
"value" : [0x56,0x8B,0xF1 ,0x57,"*","*","*","*","*","*","*","*","*",0x0F,0x84,0xFC,0x00,0x00,0x00]
}
]
}
and this code to test it:
PHP Code:
#include <amxmodx>
#include <orpheu>
public plugin_init()
OrpheuRegisterHook(OrpheuGetFunction("ButtonUse", "CBaseButton"), "HandleButtonUse");
public HandleButtonUse(id, iButton, iUseType, Float: flSomething)
client_print(0, print_chat, "Orpheu says: Button used :O");
Thanks man, this is awesome.
__________________