From c3151b312ad50104d7acbf974c5093c26e6a25b5 Mon Sep 17 00:00:00 2001 From: Steve Dudenhoeffer Date: Sun, 26 Sep 2004 00:43:43 +0000 Subject: [PATCH] Fixed (and slightly tweaked) make_deathmsg (jtp10181) --- plugins/include/engine_stocks.inc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plugins/include/engine_stocks.inc b/plugins/include/engine_stocks.inc index f2bd812b..ad1a1d8a 100755 --- a/plugins/include/engine_stocks.inc +++ b/plugins/include/engine_stocks.inc @@ -155,8 +155,12 @@ 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[] ) + + new mod_name[32] + get_modname(mod_name,31) + if (equal(mod_name,"cstrike") || equal(mod_name,"czero") || equal(mod_name,"csv15") || equal(mod_name,"cs13")) + write_byte( headshot ) + write_string( weapon ) message_end() return 1