Check VGUI menu

Статус
В этой теме нельзя размещать новые ответы.
Сообщения
219
Реакции
42
All people use this to check if player is opening the team menu with VGUI:
Код:
register_message(get_user_msgid("VGUIMenu"), "message_VGUI");

public message_VGUI(msg, des, rec)
{
  if (get_msg_arg_int(1) != 2) // not Jointeam VGUI menu
  {
    return PLUGIN_CONTINUE;
  }

  // show my cool new team menu
  return PLUGIN_HANDLED;
}

but Why number 2?? Are there other numbers to check other VGUI menus?
I tried to find something but nothing,
only this related to get_user_msgid("ShowMenu"): https://forums.alliedmods.net/showthread.php?t=130708?t=130708
 
Статус
В этой теме нельзя размещать новые ответы.

Пользователи, просматривающие эту тему

Сейчас на форуме нет ни одного пользователя.
Сверху Снизу