Raised This Month: $ Target: $400
 0% 

Help with Menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Podarok
BANNED
Join Date: Jan 2011
Location: Narnia
Old 04-16-2013 , 02:28   Re: Help with Menu
Reply With Quote #1

Here we go
Code:
public vipmainmenu(id) {     if(is_user_vip(id))     {         new msg[222]         formatex(msg, charsmax(msg), "\yMATRICA VIP Main Menu")         new menu = menu_create(msg,"vipmainmenu_handler")                 // 1. VIP Items         formatex(msg, charsmax(msg), "\yVIP Items")         menu_additem(menu, msg, "1")                     // 2. VIP AP XP Menu         formatex(msg, charsmax(msg), "\yVIP AP/XP Menu")         menu_additem(menu, msg, "2")                 menu_setprop(menu, MPROP_PERPAGE, 0);         menu_setprop(menu,MPROP_NUMBER_COLOR,"\r")         menu_additem(menu, "Exit", "0")         menu_setprop(menu, MPROP_EXITNAME, "Exit")         menu_display(id,menu, 0)     } } public vipmainmenu_handler( id, menu, item ) {     if( item == MENU_EXIT )     {         menu_destroy( menu );         return PLUGIN_HANDLED;     }     new data[6], iName[64];     new access, callback;     menu_item_getinfo( menu, item, access, data,5, iName, 63, callback );     new key = str_to_num( data );     switch( key )     {         case 1:         {               client_cmd(id, "vipitems");         }         case 2:         {             client_cmd(id, "vipapxpmenu");         }     }     return PLUGIN_HANDLED; }
Podarok is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:57.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode