I want to hook when a player get steamid from the server with orpheu. I have something like that but the function can't be found.
The function looks like that
I tried with SV_GetIDString and _Z23SV_GetIDString_internalP8USERID_s but doesn't work.
I read that the reapi has something to hook that function, but i search for it everywhere but no results
C++:
#include <amxmodx>
#include <orpheu>
public plugin_precache()
{
OrpheuRegisterHook(OrpheuGetFunction("SV_GetIDString_internal"),"OnSV_GetIDString",OrpheuHookPost)
}
public OnSV_GetIDString(steamid[])
{
server_print("%s", steamid);
}
C++:
{
"name" : "SV_GetIDString",
"library" : "engine",
"arguments" :
[
{
"type" : "pointer"
}
],
"return" :
{
"type" : "char *"
},
"identifiers":
[
{
"os" : "windows",
"value" : [0x55,0x8B,0xEC,0x83,0xEC,0x30,0x8B,0x4D,0x08,0xC6,"*","*","*","*","*","*",0x85 ,0xC9,0x0F,"*","*","*","*","*",0x8B,0x01,0x48,0x0F]
},
{
"os" : "linux",
"value" : "SV_GetIDString_internal"
}
]
}
I read that the reapi has something to hook that function, but i search for it everywhere but no results