Quote:
Originally Posted by Fix
i tried it with
edict_t *pKiller = engine->PEntityOfEntIndex(event->GetInt("attacker"));
engine->ClientCommand(pKiller,"kill");
but it doesnt work!
the console just says
StuffCmd: Some entity tried to stuff 'kill' to console buffer of entity 6 when maxclients was set to 8, ignoring
or is there a better way to slay a player? and how about slap? how does this work?
|
events pass the ID of a player not the Index..
get the index of them..then use engine->Clientcommand
__________________