Raised This Month: $ Target: $400
 0% 

Menu


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
K o T
Senior Member
Join Date: Jan 2011
Old 07-25-2011 , 17:54   Menu
Reply With Quote #1

Code:
{     menu = menu_create("choice_abilities", "menu_handler")         static players[32], num, name[32], cmd[5], itemtxt[60]         get_players(players, num)     for (new i; i < num; i++)     {         get_user_name(players[i], name, 31)                 formatex(cmd, 4, "%i", players[i])         formatex(itemtxt, 59, "%s: %s", name, label[settings[players[i]]])                 menu_additem(menu, itemtxt, cmd)     }         menu_display(id, menu, page)     return PLUGIN_CONTINUE } public menu_handler(id, menu, item) {     if (item < 0)     {         for (new i; i < 33; i++)         {             if (settings[i] != 0)             {                 set_forwards_registered(true)                 return PLUGIN_HANDLED             }         }                 set_forwards_registered(false)         return PLUGIN_HANDLED     }         static cmd[5], callback, access, pid     menu_item_getinfo(menu, item, access, cmd, 4, _, _, callback)         pid = str_to_num(cmd)         if (is_user_connected(pid))     {         settings[pid] = ++settings[pid] % (sizeof mode)     }         menu_destroy(menu)             build_menu(id, item / 7)     return PLUGIN_HANDLED }

who may do menu for of so not appeared others players only player which wrote command only he seen only himself

Last edited by K o T; 07-25-2011 at 23:37.
K o T is offline
 


Thread Tools
Display Modes

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 23:53.


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