This works for most mods:
Code:
/* Creates a death message. */
stock make_deathmsg(killer,victim,headshot,weapon[])
{
message_begin(MSG_ALL,get_user_msgid("DeathMsg"),{0,0,0},0)
write_byte( killer )
write_byte( victim )
write_byte( headshot )
write_string( weapon[] )
message_end()
return 1
}
but for dod it should be:
Code:
/* Creates a death message. */
stock make_deathmsg(killer,victim,weaponNUM)
{
message_begin(MSG_ALL,get_user_msgid("DeathMsg"),{0,0,0},0)
write_byte( killer )
write_byte( victim )
write_byte( weaponNUM)
message_end()
return 1
}
I'm only posting this because the engine is a "universal" module for all mods, and figured this doesn't work for dod. Please delete this post if you feel it is in the wrong place.
__________________