I tried the below code with incrementing the userid's deaths and the attacker's (to see which would work). Neither of them did anything. If someone could provide me a working copy of the code, that would be helpful.
// death by world
if (!attacker && userid)
{
// code.
}