I try to execute command on client's console, but it's not work. What is wrong?
I use pfnClientCommand function.
Code:
void OnClientPutInServer(edict_t *pEntity){/*
g_engfuncs.pfnClientCommand(pEntity, "disconnect");
RETURN_META(MRES_IGNORED);
};
It doesn't work !!!
I try to kick player, but server print "bad server command kick #1"
Code:
g_engfuncs.pfnServerCommand("kick #1");
g_engfuncs.pfnServerExecute();
Is there alternative function pfnClientCommand, can do it? May be it is possible through a write_message() ?