Raised This Month: $ Target: $400
 0% 

menu


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
LynX
Veteran Member
Join Date: Oct 2004
Old 03-13-2005 , 03:39  
Reply With Quote #5

Or you can do menu like this if you want:
Code:
#include <amxmodx> #include <amxmisc> public plugin_init() {     register_plugin("Menu","0.1","LynX")     register_clcmd( "Menu","NewMenu", -1, "Show the selection menu" )     register_menucmd( register_menuid("Choose option:"), 1023, "MenuCommand" )     return PLUGIN_HANDLED } public NewMenu( id ) {     new szMenuBody[256]     new keys     format( szMenuBody, 255, "Choose :^n1. Option 1^n2  Option 2^n3. Option 3^n^n0. Exit" )     keys = (1<<0|1<<1|1<<2|1<<9)           show_menu( id, keys, szMenuBody, -1 )     return PLUGIN_HANDLED } public MenuCommand( id , key ) {     switch( key )     {         case 0:  {                                    client_print(id, print_chat,"Option 1")                  }         case 1:  {                  client_print(id, print_chat, "Option2")                  }         case 2:  {                  client_print(id, print_chat, "Option 3")                  }         case 3: client_print( id, print_chat, "Closed the selection menu" )     }     return PLUGIN_HANDLED }

Works 100%
__________________
Current plugin : SoulPunisher anti-cheat
Percentage done : {||--------} 20%

If you think v3x is a PIMP, paste this into your sig!

If you think Bailopan is DA BOMB, paste this into your sig
LynX is offline
Send a message via ICQ to LynX
 



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 14:06.


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