#include <amxmodx>
public plugin_init()
{
register_plugin("Show timeleft for CSDM", "1.0", "neygomon");
public csdm_CfgInit()
set_task(1.0, "RegMsg");
}
public RegMsg()
{
new msg = get_user_msgid("RoundTime");
if(get_msg_block(msg) != BLOCK_NOT)
set_msg_block(msg, BLOCK_NOT);
register_message(msg, "msgRoundTime");
register_message(get_user_msgid("HideWeapon"), "msgHideWeapon");
}
public msgRoundTime(msgId, msgDesc, msgEnt)
set_msg_arg_int(1, ARG_SHORT, get_timeleft());
public msgHideWeapon(msgId, msgDesc, msgEnt)
{
static flags; flags = get_msg_arg_int(1);
if(flags & (1 << 4)) set_msg_arg_int(1, ARG_BYTE, flags & ~(1 << 4));)) set_msg_arg_int(1, ARG_BYTE, flags & ~(1 << 4));