Special Staff Menu
This menu have a special menu and you can edit it!
You can add comands like this:
PHP Code:
public SubMenu( id, iMenu, iItem )
{
if( iItem == MENU_EXIT )
{
menu_destroy( iMenu );
return PLUGIN_HANDLED;
}
new iAccess, iData[ 6 ], iName[ 64 ], iCallBack;
menu_item_getinfo( iMenu, iItem, iAccess, iData, charsmax( iData ), iName, charsmax( iName ), iCallBack );
new iKey = str_to_num( iData );
switch( iKey )
{
case 1:
{
ChooseTeam( id );
}
case 2:
{
client_cmd(id, "say /top15" );
}
case 3:
{
client_cmd(id, "say /rank" );
}
case 4:
{
if(get_user_flags(id) & ADMIN_MENU)
client_cmd(id, "say /m" );
else
menu( id )
}
}
menu_destroy( iMenu );
return PLUGIN_HANDLED;
}
Special staff menu itens:
PHP Code:
public ShowMenu(id)
{
if(get_user_flags(id) & ADMIN_BAN)
{
new szMenu = menu_create("\r[ ServerName ]^n\yMod Menu^n\d[ OFICIAL LINDAO ]","menu_de_mod_handler")
menu_additem(szMenu,"FF")
menu_additem(szMenu,"Revive")
menu_additem(szMenu,"No Clip")
menu_additem(szMenu,"GodMode")
menu_additem(szMenu,"Transfer")
menu_additem(szMenu,"BlockTeams")
menu_display(id,szMenu)
}
Steam link: https://steamcommunity.com/id/PlayerJogador/
Steam Group: https://steamcommunity.com/groups/gamezonecomunidade