想問要加在那裡,以及那句應該是什麼??
我現在是要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
}
後面還有.....不過我想不用了........