mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +03:00
Fixed bug am44776
This commit is contained in:
parent
f48aea7a72
commit
09beb4b81e
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user