https://crash.limetech.org/gv4g4mf7khdl
linux
sm 1.10
dhooks for 1.10
PHP Code:
I modified this:
public MRESReturn AcceptInput(int entity, Handle hReturn, Handle hParams)
{
if (entity < 0)
{
entity = EntRefToEntIndex(entity);
}
char input[128];
DHookGetParamString(hParams, 1, input, sizeof(input));
char classname[128];
GetEntityClassname(entity, classname, sizeof(classname));
int activator = -1;
if (!DHookIsNullParam(hParams, 2))
{
activator = DHookGetParam(hParams, 2);
}
// Print etc..
return MRES_Ignored;
}
__________________