|
发表于 2009-9-14 12:35:50
|
显示全部楼层
来自 中国–香港
本帖最后由 biscuit628 于 2009-9-14 12:38 编辑
盗别人的作品还要说原创
最看不起楼主这种人- #include <amxmodx>
- #include <amxmisc>
- public plugin_init() {
- register_plugin("[AH]管理阶层列表","1.0","ChanTikKi")
- register_clcmd("say /admin","clcmd_admins",-1," - Shows The Online Admins In The Serverz")
- }
- public clcmd_admins(id) {
- new adminlist[2048] = " [管理阶层]^nMade By Chantikki"
- new temp[64],adminnames[21],players[32],num,player,i
- get_players(players,num)
-
- for(i = 0;i < num;i++) {
- player = players[i]
- if(is_user_connected(player) && (get_user_flags(player) & ADMIN_LEVEL_A))
- {
- get_user_name(player,adminnames,22)
- format(temp,63,"[高级管理员] - %s^n",adminnames)
- add(adminlist,2047,temp)
- }
- else if(is_user_connected(player) && (get_user_flags(player) & ADMIN_LEVEL_B))
- {
- get_user_name(player,adminnames,22)
- format(temp,63,"[低级管理员] - %s^n",adminnames)
- add(adminlist,2047,temp)
- }
- else if(is_user_connected(player) && (get_user_flags(player) & ADMIN_LEVEL_C))
- {
- get_user_name(player,adminnames,22)
- format(temp,63,"[贵宾] - %s^n",adminnames)
- add(adminlist,2047,temp)
- }
- }
- if(strfind(adminlist,"-") == -1) {
- add(adminlist,2047,"")
- }
- set_hudmessage(255, 40, 40, -1.0, 0.17, 0, 0.0, 3.0, 2.0, 1.0, -1)
- show_hudmessage(id,adminlist)
- return PLUGIN_HANDLED
- }
复制代码 |
|