SA-MP Forums Archive
[Include] [INC] Dynamic Menus - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] [INC] Dynamic Menus (/showthread.php?tid=79909)



[INC] Dynamic Menus - MX_Master - 31.05.2009

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


Re: [INC] Dynamic Menus - sant - 31.05.2009

Looks Cool, Nice Job


Re: [INC] Dynamic Menus - Correlli - 31.05.2009

This looks useful, i will try it.


Re: [INC] Dynamic Menus - miokie - 31.05.2009

Ahh, thats pretty cool!
Good job!


Re: [INC] Dynamic Menus - yezizhu - 01.06.2009

different shntax,nice work^^
But I wont use urs,that is isn't good enough(more than 128 will crash)...


Re: [INC] Dynamic Menus - MX_Master - 01.06.2009

thanks

i'm using this include for all of my game modes and it's better than create menus on game mode init!


Re: [INC] Dynamic Menus - mysan - 01.06.2009

looks nice . im release this on my site (author be saved)


Re: [INC] Dynamic Menus - MX_Master - 01.06.2009

Quote:
Originally Posted by mysan
looks nice . im release this on my site (author be saved)
ы, русские рулят ))
ok )


Re: [INC] Dynamic Menus - Luka P. - 01.06.2009

This will be very very usefull!
Nice job,man!