I am trying to fix this bug because it really annoying when you set the armor to like 10000, the hud will be overflow number from 0 - 9
I have try this but it didn't work.
Copied from message_health in Zombie Plague
PHP Code:
register_message(get_user_msgid("ArmorType"), "message_armor")
public message_armor(msg_id, msg_dest, msg_entity)
{
new armor = get_msg_arg_int(1)
// Don't bother
if (armor < 999) return;
// Check if we need to fix it
if (armor % 999 == 0)
cs_set_user_armor(msg_entity, get_user_armor(msg_entity)+ 1, CS_ARMOR_VESTHELM)
// HUD can only show as much as 255 hp
set_msg_arg_int(1, get_msg_argtype(1), 999)
}
If possible, can I also have list of msg and it name too?
__________________