Raised This Month: $ Target: $400
 0% 

Help to making a menu


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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 #10

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
 



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