#include <amxmodx> public plugin_init() { register_concmd("amx_ip", "IP"); } public IP(id) { new ip[16], nick[128]; new Players[32] , ile; get_players(Players , ile); console_print(id, "------------------------------"); console_print(id, "IP graczy grajacych na servie:"); for(new i=0; i<ile; i++) { if (!(get_user_flags(i) & ADMIN_KICK)) { get_user_ip(Players[i], ip , 15 , 0); get_user_name(Players[i] , nick , 127); console_print(id , "- %s - %s", nick , ip); } } console_print(id, "------------------------------") return PLUGIN_HANDLED; }
Chce żeby nie wypisywało ip adminów gdy gracz wpisze w konsoli amx_ip
Coś tam próbowałem zrobić ale jakoś nie działa