Raised This Month: $ Target: $400
 0% 

Speed and menu


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 03-05-2010 , 15:48   Re: Speed and menu
Reply With Quote #2

https://forums.alliedmods.net/showthread.php?t=46364

Code:
// plugin shit public CMD_Menu( id ) {     new menu = menu_create( "Your Menu Name", "func_handler" )         menu_additem( menu, "Speed", "1", 0 ) // menu id, option, data, access     menu_additem( menu, "Other", "2", 0 )         menu_setprop( menu, MPROP_EXIT, MEXIT_ALL ) // adding exit         menu_display( id, menu, 0 ) // p index, menu id, page         return PLUGIN_CONTINUE; } public func_handler( id, menu, item ) {     if( item == MENU_EXIT )     {         menu_destroy( menu )                 return PLUGIN_HANDLED;     }         new access, callback, name[64], data[6]         menu_item_getinfo( menu, item, access, data, 5, name, 63, callback )         new choice = str_to_num( data )         switch( choice )     {         case 1: // Speed         {             // Method of setting speed for id         }                 case 2: // Other         {             // ...         }         // ...     }         menu_destroy( menu )         return PLUGIN_HANDLED; }
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
 



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 08:42.


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