|
new Float:TIMERWAIT = 1.0
new DISPLAYTITLE[] = "举起你的右手,跟我一起发誓"
new ADDENTRYCMD[] = "amx_addrule"
new ADMINDISPLAYMESSAGECMD[] = "rules"
new CHANGETEAM[] = "chooseteam"
new pip[MAX_PLAYERS][22]
new Float:rectime
new CVARCOLOR[] = "sr_color"
new CVARDISPLAY[] = "sr_display"
public plugin_init() {
register_plugin("Do you dare to pledge", "5.0", "DaBears")
register_menucmd(register_menuid("请问你敢发誓吗?"),1023,"action_menu")
register_menucmd(register_menuid("请选择队伍"),1023,"choose_team")
register_menucmd(register_menuid("你要转移到哪一只队伍"),1023,"chooseteam")
register_concmd(ADDENTRYCMD, "addentry", ADMIN_CVAR, "<entry> : Adds a entry")
register_concmd(ADMINDISPLAYMESSAGECMD, "displaymessage", ADMIN_USER, ": Display message")
register_concmd(CHANGETEAM, "teammenu", ADMIN_USER, ": Team menu")
register_event("ShowMenu","join","b","4&Team_Select")
register_event("VGUIMenu","join","b","1=2","1=26","1=27")
register_cvar(CVARDISPLAY, "60.0", 4)
register_cvar(CVARCOLOR, "255,0,0", 4)
register_cvar("minrec","15")
set_msg_block(get_user_msgid("VGUIMenu"), BLOCK_SET)
set_msg_block(get_user_msgid("ShowMenu"), BLOCK_SET)
return PLUGIN_CONTINUE
}
public teammenu(id){
new teammenu[1023]
new len = format(teammenu,1023,"\w你要转移到哪一只队伍?: ^n^n\w")
len += format(teammenu[len],1023-len,"^n\r1.\w 傻逼土匪.^n\r2.\w 垃圾警察.^n\r3.\w 偷窥者.^n\r0.\w 退出.")
show_menu(id,(1<<0|1<<1|1<<2|1<<9),teammenu)
return PLUGIN_HANDLED
}
|
|