I am using statusicon msg to display the amount of lasermines i have.
It happens this after install lasermines
Code:
PHP Code:
public update_lmmsg(id)
{
if(is_user_connected(id) && !is_user_bot(id))
{
update_finalmsg(id, 0)
update_finalmsg(id, is_user_alive(id) ? 1 : 0)
}
}
public update_finalmsg(id, onoff)
{
static LMSprites[33]
format(LMSprites, sizeof(LMSprites), "number_%d", g_havemine[id])
message_begin(MSG_ONE_UNRELIABLE, g_Msg_StatusIcon, {0,0,0}, id)
write_byte(onoff)
write_string(LMSprites)
write_byte(42) // red
write_byte(212) // green
write_byte(255) // blue
message_end()
}
__________________