Okay I've done that, but when I add this (first code) into login.lua, a player doesn't die when on 0 health and this error comes up on the server and spams until the player on 0 health logs out, and still nothing comes up on the PVP channel:
registerCreatureEvent(cid, "PlayerKill")...