...no, thats even more broken.
Like, way more.
1. Revert back to the code in OP
2. Put opening bracket before the kill, and closing bracket after the messageall
3. In the messageall, change %player.name to %player.client.getPlayerName()
Preferably do what Port said, but focus on making it work first