07.09.2014, 16:49
Is there a way to save a player (for example killerid from "OnPlayerDeath") and use it in other callback (for example in "OnPlayerCommandText") without using sscanf?
//global
new someID;
//somewhere in OnPlayerDeath
someID = killerid;
//somewhere in OnPlayerCommandText
//do your thing with "someID" as killerid of OnPlayerDeath here
OnPlayerCommandText(killerid,"_");
//and then parse cmdtext of OnPlayerCommandText at the top for "_"