/* Plugin generated by AMXX-Studio */ #include #include #define PLUGIN "Lista Graczy" #define VERSION "1.0" #define AUTHOR "MisieQ" #define FLAGA ADMIN_BAN new const gPrefixListy[] = "V.I.P"; new const gBrakGraczy[] = "Brak VIP'ow w grze!"; new gMaxPlayers; public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_clcmd("say /lista","Lista"); register_clcmd("say_team /lista","Lista"); gMaxPlayers = get_maxplayers(); } public Lista(id) { new nazwy[33][32]; new count, x; for(new i = 1 ; i <= gMaxPlayers ; i++) { if(is_user_connected(i)) { if(get_user_flags(i) & FLAGA) { get_user_name(i, nazwy[count++], 31); } } } if(count > 0) { for(x = 0 ; x < count ; x++) { ColorChat(id, GREEN, "%s: %s%s", gPrefixListy, nazwy[x], x < (count-1) ? ", ":""); } } else { ColorChat(id, GREEN, "%s: %s", gPrefixListy, gBrakGraczy); } return PLUGIN_CONTINUE }