killerid is the player who is killing and the playerid is the one who is getting killed by the killerid.
Yes, so if he is doing /kill then he should be both the killer and the one who is killed, right? Otherwise he could just create his own function and override the /kill command.