31.05.2009, 18:27
Dynamic Menus (dynMenus)
by MX_Master
ABOUT
USAGE
(!) a_samp.inc (<a_samp>) file must be included before dynMenus include file
(!) place `onPlayerExitedMenu(playerid);` into `OnPlayerExitedMenu` callback
(!) place `onPlayerSelectedMenuRow(playerid,row);` into `OnPlayerSelectedMenuRow` callback
(?) change or create new menu classes, IDs and parameters
(?) use `showMenuForPlayer` and `hideMenuForPlayer` functions wherever you want
PACKAGE
this package contains with include file (with 2 example menus) and example game mode script (source/compiled) which shows how to use dynamic menus in your game modes or filterscripts.
DOWNLOAD
Sources + Compiled GM ( mediafire.com )
Include file source ( pastebin.com )
Example game mode source ( pastebin.com )
this dynamic menus were tested on public server and works fine, BUT if server will show any menu to more than 128 players at the same time, server will crashed
by MX_Master
ABOUT
- you can add more than 128 menus to your scripts ( general limit )
- you can show for different players different versions of one menu
- you can make dynamic titles/column titles for any menu
- you can make dynamic row names/count for any menu
- you can make really interactive menus!
USAGE
(!) a_samp.inc (<a_samp>) file must be included before dynMenus include file
(!) place `onPlayerExitedMenu(playerid);` into `OnPlayerExitedMenu` callback
(!) place `onPlayerSelectedMenuRow(playerid,row);` into `OnPlayerSelectedMenuRow` callback
(?) change or create new menu classes, IDs and parameters
(?) use `showMenuForPlayer` and `hideMenuForPlayer` functions wherever you want
PACKAGE
this package contains with include file (with 2 example menus) and example game mode script (source/compiled) which shows how to use dynamic menus in your game modes or filterscripts.
DOWNLOAD
Sources + Compiled GM ( mediafire.com )
Include file source ( pastebin.com )
Example game mode source ( pastebin.com )
this dynamic menus were tested on public server and works fine, BUT if server will show any menu to more than 128 players at the same time, server will crashed