From 09beb4b81e132c971478f71ad785f9346a4fcdff Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 14 Sep 2006 08:00:55 +0000 Subject: [PATCH] Fixed bug am44776 --- plugins/include/message_stocks.inc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/plugins/include/message_stocks.inc b/plugins/include/message_stocks.inc index 7edf1c8f..4fad45c3 100644 --- a/plugins/include/message_stocks.inc +++ b/plugins/include/message_stocks.inc @@ -26,8 +26,16 @@ stock dod_make_deathmsg(killer, victim, weaponNUM) /* Kills a user without a message. */ stock user_silentkill(index) { - set_msg_block(get_user_msgid("DeathMsg"), BLOCK_ONCE); + static msgid = 0; + new msgblock + if (!msgid) + { + msgid = get_user_msgid("DeathMsg"); + } + msgblock = get_msg_block(msgid); + set_msg_block(msgid, BLOCK_ONCE); user_kill(index, 1); + set_msg_block(msgid, msgblock); return 1; }