RSSy MYGO.pl Opublikowano Styczeń 26, 2024 o 03:12 RSSy Udostępnij Opublikowano Styczeń 26, 2024 o 03:12 Hello. Is it possible to hide the IP address of those with ADMIN_IMMUNITY flag when using the amx_last command? Thanks! PHP Code: public cmdLast(id, level, cid) { if (!cmd_access(id, level, cid, 1)) { return PLUGIN_HANDLED; } new name[MAX_NAME_LENGTH]; new authid[32]; new ip[32]; new flags[32]; new access; // This alignment is a bit weird (it should grow if the name is larger) // but otherwise for the more common shorter name, it'll wrap in server console // Steam client display is all skewed anyway because of the non fixed font. console_print(id, "%19s %20s %15s %s", "name", "authid", "ip", "access"); for (new i = 0; i < g_Size; i++) { GetInfo(i, name, charsmax(name), authid, charsmax(authid), ip, charsmax(ip), access); get_flags(access, flags, charsmax(flags)); console_print(id, "%19s %20s %15s %s", name, authid, ip, flags); } console_print(id, "%d old connections saved.", g_Size); return PLUGIN_HANDLED; } Przeczytaj cały wpis Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi