I tried this
Code:
{
"name" : "EntSelectSpawnPoint",
"library" : "mod",
"arguments" :
{
"type" : "CBaseEntity *"
},
"return" :
{
"type" : "edict_s *"
},
"identifiers" :
[
{
"os" : "windows",
"mod" : "cstrike",
"value" : [0x53,0x8B,"*","*","*",0x55,0x56,0x8B,"*","*",0x57,0x8B,"*","*","*","*","*",0x89]
},
{
"os" : "linux",
"mod" : "cstrike",
"value" : "find later"
}
]
}
PHP Code:
#include <amxmodx>
#include <orpheu>
public plugin_init()
{
OrpheuRegisterHook(OrpheuGetFunction("EntSelectSpawnPoint"), "OnEntSelectSpawnPoint_Post", OrpheuHookPost);
}
public OnEntSelectSpawnPoint_Post(id)
{
server_print("EntSelectSpawnPoint(%d) -> return %d;", id, OrpheuGetReturn());
client_print(0, print_chat, "EntSelectSpawnPoint(%d) -> return %d;", id, OrpheuGetReturn());
}
But it doesn't seems to work, function not found.
__________________