|
Veteran Member
|
08-22-2018
, 14:35
Re: Orpheu Signatures Collection
|
#67
|
Quote:
Originally Posted by HamletEagle
Code:
{
"name" : "SV_RejectConnection",
"library" : "engine",
"arguments" :
[
{
"type" : "pointer"
},
{
"type" : "char *"
}
],
"identifiers" :
[
{
"os" : "windows",
"value" : [0x55,0x8B,0xEC,0x81,0xEC,0x00,0x04,0x00,0x00,0x8B,0x4D,0x0C]
},
{
"os" : "linux",
"value" : "SV_RejectConnection"
}
]
}
PHP Code:
#include <amxmodx>
#include <orpheu>
public plugin_init()
{
OrpheuRegisterHook(OrpheuGetFunction("SV_RejectConnection"), "SV_RejectConnection")
}
public SV_RejectConnection(DONT_MESS_WITH_ME, reason[128])
{
server_print("Rejected connection with msg [%s]", reason)
}
You are missing the arguments.
The first one is a pointer to a netadr_t structure, so use "pointer" as type. Note that orpheu doesn't support netadr_t struct, so you probably need more code if you actually want to access data from it.
The second argument is the reason.
|
Parsing file "SV_RejectConnection" started
Function name must be a string
FAILED
Parsing file "SV_RejectConnection" ended
|
|
|
|