若改为是具有ADMIN_CHAT权限的op能看到可改为
public client_connect(id){
new userip[16]
new name[32]
new IPD[32]
new players[32], inum
get_user_ip(id,userip,16,1)
get_user_name(id,name,32)
findip(userip, IPD)
//server_cmd("say [AMX] %s (%s , %s) trying to connect",name,userip,IPD)
get_players(players,inum)
for(new i=0; i<inum; ++i){
if (players != id && get_user_flags(players) & ADMIN_CHAT)
client_print(players,print_chat,"[AMX] %s (%s,%s) trying to connect",name,userip,IPD);
}
return PLUGIN_CONTINUE
}
PS:编译时请注意格式~ |