Am gasit in plmenu.sma ce tine de amx_banmenu:
Code: Select all
public cmdBanMenu(id, level, cid)
{
if (!cmd_access(id, level, cid, 1))
{
return PLUGIN_HANDLED;
}
g_menuOption[id] = 0;
if (ArraySize(g_bantimes) > 0)
{
g_menuSettings[id] = ArrayGetCell(g_bantimes, g_menuOption[id]);
}
else
{
// should never happen, but failsafe
g_menuSettings[id] = 0;
}
displayBanMenu(id, g_menuPosition[id] = 0);
return PLUGIN_HANDLED;
}