mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2025-01-24 20:58:06 +03:00
Merge pull request #323 from luxxxoor/patch-1
Adding flag parameter to user_silentkill.
This commit is contained in:
commit
01d703cdbb
@ -29,7 +29,7 @@ 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, flag = 1)
|
||||||
{
|
{
|
||||||
static msgid = 0;
|
static msgid = 0;
|
||||||
new msgblock;
|
new msgblock;
|
||||||
@ -39,7 +39,7 @@ stock user_silentkill(index)
|
|||||||
}
|
}
|
||||||
msgblock = get_msg_block(msgid);
|
msgblock = get_msg_block(msgid);
|
||||||
set_msg_block(msgid, BLOCK_ONCE);
|
set_msg_block(msgid, BLOCK_ONCE);
|
||||||
user_kill(index, 1);
|
user_kill(index, flag);
|
||||||
set_msg_block(msgid, msgblock);
|
set_msg_block(msgid, msgblock);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user