hehehe well this module gives us ALOT of options, so why not give it a try ;)
And yes it works fine now after placeing the args. right. Thanks! ->
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <Orpheu>
#include <fakemeta>
/*
Offset WIN32 = 20
CBasePlayer::Killed(entvars_s *, int)
*/
public plugin_init()
{
new OrpheuFunction:Player_Killed = OrpheuGetFunctionFromClass("player","Killed", "CBasePlayer" )
OrpheuRegisterHook(Player_Killed,"Killed")
}
public Killed(victim, killer, something)
{
new victim1[32]
get_user_name(victim, victim1, 31)
new killer1[32]
get_user_name(killer, killer1, 31)
new isomething[32]
pev(something, pev_classname, isomething, 31)
client_print(0, 3, "%s killed %s with %s", killer1, victim1, isomething)
// FYI isomething printet player...
}
/*
Killed file :
/////////////////////////////////////////////////////////////////////////
{
"name" : "Killed",
"class" : "CBasePlayer",
"library" : "mod",
"arguments" :
[
{
"type" : "entvars_s *"
},
{
"type" : "int"
}
],
"indexes" :
[
{
"os" : "windows",
"mod" : "dod",
"value" : 20
},
{
"os" : "linux",
"mod" : "dod",
"value" : 22
}
]
}
//////////////////////////////////////////////////////////////////////////
Path to Killed is:
\dod\addons\amxmodx\configs\orpheu\virtualFunctions\CBasePlayer
*/
One more, what if the function returns void -> CBasePlayer::Spawn(void) e.g.
It doesnt like void ->
Code:
"arguments" :
[
{
"type" : "void"
}
],
__________________