Fixed bug am44776

This commit is contained in:
David Anderson 2006-09-14 08:00:55 +00:00
parent f48aea7a72
commit 09beb4b81e

View File

@ -26,8 +26,16 @@ stock dod_make_deathmsg(killer, victim, weaponNUM)
/* Kills a user without a message. */ /* Kills a user without a message. */
stock user_silentkill(index) 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); user_kill(index, 1);
set_msg_block(msgid, msgblock);
return 1; return 1;
} }