Hello,
I am new to sourcemod scripting, and I wonder how I can fetch data from the "killer" in a game.
I basically want the killer to die, if he doesn't kill the correct player.
So, bascially something like this (and no it is not real code)
Code:
if(killer Killed badPlayer) {
makeDeath(killer);
} else {
print ("you killed the right player");
}
I don't really know how to do this, I've looked trough several plugins source code to see if I can use anything of that, but I can't find anything relevant. So preferably, if it's easy I could use a finished code for that. Or I just need to know how to get the client of the "killer" so I can use it somehow.
Any ideas?