stock register_menu_ex(const title[], keys, const function[], outside = 0) {
new iMenuID = register_menuid(title, outside)
register_menucmd(iMenuID, keys, function)
return iMenuID
}
stock bool:check_menu_by_menuid(pPlayer, iMenuIdToCheck) {
new iMenuID, iKeys
get_user_menu(pPlayer, iMenuID, iKeys)
return (iMenuID == iMenuIdToCheck)
}
stock bool:is_player_see_menu(pPlayer, iMenuIdToIgnore = 0) {
new iMenuID, iKeys
get_user_menu(pPlayer, iMenuID, iKeys)
return (iMenuID && iMenuID != iMenuIdToIgnore)
}
stock close_menu(pPlayer) {
show_menu(pPlayer, 0, "", 0)
}