Skip to content

The menu does not close #58

Description

@jobmail

Hi!

For a player in the any team with the parameter m_iJoiningState = SHOWTEAMSELECT or m_iJoiningState = JOINED, the menu does not close at the end of the countdown. And if the map has been extended, the menu continues to hang on the screen with time 1 sec.

At

This one work fine in a loop:

stock my_reset_menu(const id) {
    static i_msg;
    if (is_valid_player(i)) {
        set_member(id, m_iMenu, Menu_OFF);
        if (!i_msg)
            i_msg = get_user_msgid("ShowMenu");
        message_begin(MSG_ONE, i_msg, _, id);
        {
            write_short(0);
            write_char(0);
            write_byte(0);
            write_string("");
        }
        message_end();
    }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions