Hi. I have strange problem. I have plugin to hook this function but when
I only hook this function, I cant change weapon.
My code:
PHP Code:
#include <amxmodx>
#include <orpheu>
public plugin_init()
{
register_plugin("Orpheu Test", "1.0.0", "Owner")
OrpheuRegisterHook(OrpheuGetFunction("DefaultDeploy", "CBasePlayerWeapon"), "on_DefaultDeploy", OrpheuHookPost);
}
public OrpheuHookReturn:on_DefaultDeploy(ent, text1[], text2[], int1, text3[], int2)
{
client_print(0, print_chat, "ent=%i %s %s %i %s %i", ent, text1, text2, int1, text3, int2);
return OrpheuIgnored;
}
And sig:
Code:
{
"name" : "DefaultDeploy",
"class" : "CBasePlayerWeapon",
"library" : "mod",
"arguments" :
[
{
"type" : "char *"
},
{
"type" : "char *"
},
{
"type" : "int"
},
{
"type" : "char *"
},
{
"type" : "int"
}
],
"identifiers" :
[
{
"os" : "windows",
"mod" : "cstrike",
"value" : 0
},
{
"os" : "linux",
"mod" : "cstrike",
"value" : "DefaultDeploy__17CBasePlayerWeaponPcT1iT1i"
}
]
}
I dont want offset for Windows.
__________________