From dc8e162e26911602a59a536ac54f8409466d3411 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 14 Mar 2006 17:50:38 +0000 Subject: [PATCH] added menu_cancel --- plugins/include/amxmodx.inc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/include/amxmodx.inc b/plugins/include/amxmodx.inc index 48abfdad..ee5cee4d 100755 --- a/plugins/include/amxmodx.inc +++ b/plugins/include/amxmodx.inc @@ -808,6 +808,11 @@ native menu_addblank(menu, slot=1); //The third value depends on the property native menu_setprop(menu, prop, ...); +//Cancels a player's menu, effectively forcing the player to select MENU_EXIT +//The menu will still exist on their screen but any results are invalidated, +//and the callback is invoked. +native menu_cancel(player); + // Gets distance between two origins (float) native Float:get_distance_f( Float:Origin1[3], Float:Origin2[3] );