|
发表于 2011-5-21 13:47:10
|
显示全部楼层
来自 中国–湖南–邵阳
这个是9527的吧 我给你一个
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Op Menu"
#define VERSION "1.0"
#define AUTHOR "wk703"
#define MENUTIME 10 //菜单显示时间
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd( "opmenu","ShowMenu", MENUTIME, "Shows Op Menu" )
register_menucmd(register_menuid("opmenu"), 1023, "MenuCommand" )
return PLUGIN_CONTINUE
}
public ShowMenu( id )
{
new szMenuBody[128]
new keys
new nLen = format( szMenuBody, 127, "\y【\yOp Menu\y】^n" )
nLen += format( szMenuBody[nLen], 127-nLen, "^n\r1. \wchong zhuang cs" )
nLen += format( szMenuBody[nLen], 127-nLen, "^n\r2. \wcscp" )
nLen += format( szMenuBody[nLen], 127-nLen, "^n\r3. \wchoose team" )
nLen += format( szMenuBody[nLen], 127-nLen, "^n^n\r4. \wExit" )
nLen += format( szMenuBody[nLen], 127-nLen, "^n^n\r5. \wdc" )
nLen += format( szMenuBody[nLen], 127-nLen, "^n\r6. \wfeng te zheng ma" )
keys = (1<<0|1<<1|1<<2|1<<3|1<<4|1<<5)
show_menu( id, keys, szMenuBody, MENUTIME,"opmenu" )
return PLUGIN_CONTINUE
}
public MenuCommand( id, key )
{
switch( key )
{
case 0: {
client_cmd(id, "amx_czmenu" )
}
case 1: {
client_cmd(id, "amx_pcheater_list" )
}
case 2: {
client_cmd(id, "amx_teammenu" )
}
case 3: {
client_print( 0, print_chat, "" ) // [AMXX] : cheater will be punish
}
case 4: {
client_cmd(id, "amx_clcmdmenu" )
}
case 5: {
client_cmd(id, "amx_bancfg_pmenu" )
}
}
return PLUGIN_HANDLED
} |
|