|
发表于 2015-4-6 19:43:24
|
显示全部楼层
来自 中国–山东–威海
public admin_who(id,level,cid){
if(!cmd_access(id, level, cid, 1))
return PLUGIN_HANDLED
new players[32], inum, authid[16],name[32], flags, sflags[32]
get_players(players,inum)
console_print(id,"^nClients on server:^n # %-32.31s %-12s %-8s %-4.3s %-4.3s %s",
"nick","authid","userid","imm","res","access")
for(new a = 0; a < inum; ++a) {
get_user_authid(players[a],authid,15)
get_user_name(players[a],name,31)
flags = get_user_flags(players[a])
get_flags(flags,sflags,31)
console_print(id,"%2d %-32.31s %-12s %-8d %-4.3s %-4.3s %s", players[a],name,authid,
get_user_userid(players[a]),(flags&ADMIN_IMMUNITY)?"yes":"no",
(flags&ADMIN_RESERVATION)?"yes":"no",sflags)
}
console_print(id,"Total %d",inum)
get_user_authid(id,authid,15)
get_user_name(id,name,31)
log_to_file(logfilename,"Cmd: ^"%s<%d><%s><>^" ask for players list",name,get_user_userid(id),authid)
return PLUGIN_HANDLED |
|