So far, this is what I have...
Code:
public cmd_deathmsg(id)
{
message_begin(MSG_ALL, get_user_msgid("DeathMsg"), {0, 0, 0}, 0)
write_byte(0) // killer
write_byte(id) // victim
write_string("starvation") // weapon
message_end()
return PLUGIN_HANDLED
}
Which prints "Spunky killed self with starvation" in the console. What I want is for the actual DeathMsg in the top right to show "Starvation" as the killer instead of the weapon, which doesn't work. Is there a way to do this? If not, then I want to fix it so that it will actually display as the weapon.