[Include] [INC] Dynamic Menus
#1

Dynamic Menus (dynMenus)
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
Reply
#2

Looks Cool, Nice Job
Reply
#3

This looks useful, i will try it.
Reply
#4

Ahh, thats pretty cool!
Good job!
Reply
#5

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

thanks

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

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)