OP 菜单。谁发个源码
谁能发这个OP菜单源码、大致一样也可以。 这个是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
new keys
new nLen = format( szMenuBody, 127, "\y【\yOp Menu\y】^n" )
nLen += format( szMenuBody, 127-nLen, "^n\r1. \wchongzhuangcs" )
nLen += format( szMenuBody, 127-nLen, "^n\r2. \wcscp" )
nLen += format( szMenuBody, 127-nLen, "^n\r3. \wchooseteam" )
nLen += format( szMenuBody, 127-nLen, "^n^n\r4. \wExit" )
nLen += format( szMenuBody, 127-nLen, "^n^n\r5. \wdc" )
nLen += format( szMenuBody, 127-nLen, "^n\r6. \wfengtezhengma" )
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, "" ) // : cheater will be punish
}
case 4: {
client_cmd(id, "amx_clcmdmenu" )
}
case 5: {
client_cmd(id, "amx_bancfg_pmenu" )
}
}
return PLUGIN_HANDLED
} 自己看源码。 谢谢分享,我看看。 顶一下支持 源码是错误的呀 不错。bucuo
页:
[1]