So, I tried to hook CBasePlayer::HostageUse function and I get this error( oprheu config ):
Code:
Parsing folder "CBasePlayer" started
Parsing file "HostageUse" started
Invalid index data
FAILED
My signature file looks like this:
Code:
{
"name" : "HostageUse",
"class" : "CBasePlayer",
"library" : "mod",
"indexes" :
[
{
"os" : "windows",
"mod" : "cstrike",
"value" : [0x56,0x8B,0xF1,0xF6,0x86,0x30,0x03,0x00,0x00,0x10,"*","*",0x8B,0x86,0xC8,0x01]
},
{
"os" : "linux",
"mod" : "cstrike",
"value" : "HostageUsed__11CBasePlayer"
}
]
}
Test plugin that I use:
Code:
#include < amxmodx >
#include < orpheu >
public plugin_init()
{
OrpheuRegisterHook(OrpheuGetFunctionFromClass( "player", "HostageUse", "CBasePlayer" ),"OnHostageUse", OrpheuHookPre )
}
public OrpheuHookReturn:OnHostageUse( id )
{
client_print( id, print_chat, "Used a hostage" )
}
What's wrong with the sign ?
__________________