想分离投票命令,大家给个思路就行
想把投票BAN KICK CHANGEMAP的功能分离开,谁能告诉下思路比如把BAN 放在 J权限上
kick 放在M 权限
changemap 放在 N 权限
回复: 想分离投票命令,大家给个思路就行
修改adminvote.sma和mapsmenu.sma.adminvote.sma中,把如下内容:
register_concmd("amx_votemap", "cmdVoteMap", ADMIN_VOTE, "<map> ")
register_concmd("amx_votekick", "cmdVoteKickBan", ADMIN_VOTE, "<name or #userid>")
register_concmd("amx_voteban", "cmdVoteKickBan", ADMIN_VOTE, "<name or #userid>")
修改为
register_concmd("amx_votemap", "cmdVoteMap", ADMIN_LEVEL_B, "<map> ")
register_concmd("amx_votekick", "cmdVoteKickBan", ADMIN_LEVEL_A, "<name or #userid>")
register_concmd("amx_voteban", "cmdVoteKickBan", ADMIN_VOTE, "<name or #userid>")
mapsmenu.sma中,把如下内容:
register_clcmd("amx_votemapmenu", "cmdVoteMapMenu", ADMIN_VOTE, "- displays votemap menu")
修改为:
register_clcmd("amx_votemapmenu", "cmdVoteMapMenu", ADMIN_LEVEL_B, "- displays votemap menu")
回复: 想分离投票命令,大家给个思路就行
呵呵,感谢老大啊,功夫厉害!
页:
[1]