Raised This Month: $ Target: $400
 0% 

Help to making a menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
pagh
Junior Member
Join Date: Jan 2007
Old 01-20-2007 , 10:32   Re: Help to making a menu
Reply With Quote #1

yeah but how do i make a code to send them to another menu? or to make them show a list of users like clcmdmenu?
pagh is offline
mexykanu
Member
Join Date: Oct 2006
Old 03-05-2007 , 13:34   Re: Help to making a menu
Reply With Quote #2

Code:
 switch (key) {
  case 0:{
  //do something with the First choise 
  }
  case 1:(
  //do something with the Second choise 
  }
  case 2:{
  //do something with the Third choise  
  }
  case 3: { // 4
  //do something with the last choise 
  }
Code:
//do something with the First choise



Learn PAWN...
mexykanu is offline
allenwr
Veteran Member
Join Date: Jan 2006
Location: The place where the karm
Old 03-05-2007 , 23:39   Re: Help to making a menu
Reply With Quote #3

Quote:
Learn PAWN...
Learn PAWN better...

PHP Code:
#include <amxmodx>
#include <amxmisc>
 
#define KEYS (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<9) //1-5 and 0
#define KEYS2 (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<9) //1-5 and 0
 
public plugin_init() {
    
register_plugin("Allenwr","0.1","Example Menu")
    
register_clcmd("say /menu","cmdmenu",ADMIN_ALL,"")
    
register_menucmd(register_menuid("Menu"),KEYS,"MenuSelect")
    
register_menucmd(register_menuid("Menu2"),KEYS2,"MenuSelect2")}
 
plugin cmdmenu(idlevelcid) {
    if(!
cmd_access(idlevelcid2))
        return 
PLUGIN_HANDLED;
 
    
show_menu(idKEYS"\yMenu^n^n\w1. Option^n2. Option^n3. Option^n4. Option^n5. Option^n0. Exit",-1,"Menu")
    return 
PLUGIN_CONTINUE
}
 
MenuSelect(idkey) {
    switch(
key) {
        case 
0cmdmenu2(id)
        case 
1//option
        
case 2//option
        
case 3//option
        
case 4//option
        
case 9: return PLUGIN_HANDLED;
    }
    return 
PLUGIN_CONTINUE
}
 
plugin cmdmenu2(idlevelcid) {
    if(!
cmd_access(idlevelcid2))
        return 
PLUGIN_HANDLED;
 
    
show_menu(idKEYS2"\yMenu2^n^n\w1. Option^n2. Option^n3. Option^n4. Option^n5. Option^n0. Exit",-1,"Menu2")
    return 
PLUGIN_CONTINUE
}
 
MenuSelect2(idkey) {
    switch(
key) {
        case 
0//option
        
case 1//option
        
case 2//option
        
case 3//option
        
case 4//option
        
case 9: return PLUGIN_HANDLED;
    }
    return 
PLUGIN_CONTINUE

__________________
Don't ever place an order with Vee Servers. This is why.
allenwr is offline
Send a message via ICQ to allenwr Send a message via Yahoo to allenwr
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 22:20.


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