想问要加在那里,以及那句应该是什么??
我现在是要bind F11 /votekick,根据猪聪所教...是....这种...client_cmd什么什么的...请问应该是怎的?? (FORGET)
另外,我不知要在那个位置...
请帮我加在这里.....
#include <amxmodx>
#include <amxmisc>
#define Keyschooseplayer (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<5)|(1<<6)|(1<<7)|(1<<8)|(1<<9)
#define Keysreason (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<7)
#define Keysyousure (1<<0)|(1<<1)
#define Keysallvote (1<<0)|(1<<1)|(1<<3)|(1<<5)
#define VaultKey "VoteKick_%s"
#define VaultKeyTime "VoteKickTime_%s"
new MenuPoschooseplayer[33]
new MenuPlayerschooseplayer[32]
new votes[2]
new bool:canvote
new votekicking[33]
new votekickids[2][32]
new votekickreason[28]
new voteendid
new cvaravk, cvarab, cvar_ratekick, cvar_ratekicked
public plugin_init() {
register_plugin("强制退场插件","1.0","原作者:NL)Ramon(NL")
register_clcmd("say /votekick","Showchooseplayer")
register_menucmd(register_menuid("allvote"), Keysallvote, "Pressedallvote")
register_menucmd(register_menuid("reason"), Keysreason, "Pressedreason")
register_menucmd(register_menuid("yousure"), Keysyousure, "Pressedyousure")
register_menucmd(register_menuid("chooseplayer"), Keyschooseplayer, "Pressedchooseplayer")
register_concmd("amx_blockvotekick","blockvotekick", ADMIN_BAN,"")
register_concmd("amx_allowvotekick","allowvotekick", ADMIN_BAN,"")
register_concmd("amx_blockvotekickid","blockvotekickid", ADMIN_BAN,"SteamID")
register_concmd("amx_allowvotekickid","allowvotekickid", ADMIN_BAN,"SteamID")
register_concmd("amx_cancelvotekick","cancelvote", ADMIN_BAN,"SteamID")
cvaravk = register_cvar("amx_adminvotekick","0")
cvarab = register_cvar("amx_votekickamxmbans","10")
cvar_ratekicked = register_cvar("amx_votekick_failrate", "1")
cvar_ratekick = register_cvar("amx_votekick_rate", "50")
register_clcmd("vote_kick_reason","reasonenter")
}
public cancelvote(id,level,cid) {
if (!cmd_access(id,level,cid,1)) return PLUGIN_HANDLED
if(voteendid) {
remove_task(voteendid)
client_print(id,print_console,"")
client_print(0,print_chat,"")
}
else
{
client_print(id,print_console,"")
}
return PLUGIN_CONTINUE
}
后面还有.....不过我想不用了........