on death: if victim is a player: if attacker is a player: add 1 to {kills.%attacker%}
this works but i would like to point out what was wrong with your skript. first: players are not in on death event so use victim or attacker and second: you didnt indent right third: zuyn's skript didnt have a closing bracket.