CMD:admins(playerid,params[]){new string[1000],count = 0;for(new i = 0;i < MAX_PLAYERS; i++){ if(AnDark[szint] > 1 && PnDark[VIPSzint] > 1) { if(PnDark[VIPSzint] == 1) { format(string,sizeof(string),\"%s{FFA600}Admin List:\\n\\n{FFFFFF}%s - (ID: %d, Level: %d) \\n\\n\\n{FFA600}VIP List:\\n\\n{FFFFFF}%s - (ID: %d, Level: %d, Rank: {FFA600}%s{FFFFFF}) \\n\",string,pName(i),i,AnDark[szint],pName(i),i,PnDark[VIPSzint],PnDark[VIPRank]); ShowPlayerDialog(playerid,4565,0,\"Online Admin / VIP List\",string,\"OK\",\"\"); count++; }} if(AnDark[szint] > 1 && PnDark[VIPSzint] > 1) { if(PnDark[VIPSzint] == 2) { format(string,sizeof(string),\"%s{FFA600}Admin List:\\n\\n{FFFFFF}%s - (ID: %d, Level: %d) \\n\\n\\n{FFA600}VIP List:\\n\\n{FFFFFF}%s - (ID: %d, Level: %d, Rank: {FFA600}%s{FFFFFF}) \\n\",string,pName(i),i,AnDark[szint],pName(i),i,PnDark[VIPSzint],PnDark[VIPRank]); ShowPlayerDialog(playerid,4565,0,\"Online Admin / VIP List\",string,\"OK\",\"\"); count++; }} if(AnDark[szint] > 1 && PnDark[VIPSzint] > 1) { if(PnDark[VIPSzint] == 3) { format(string,sizeof(string),\"%s{FFA600}Admin List:\\n\\n{FFFFFF}%s - (ID: %d, Level: %d) \\n\\n\\n{FFA600}VIP List:\\n\\n{FFFFFF}%s - (ID: %d, Level: %d, Rank: {%s}%s{FFFFFF}) \\n\",string,pName(i),i,AnDark[szint],pName(i),i,PnDark[VIPSzint],PnDark[VIPRankcolor],PnDark[VIPRank]); ShowPlayerDialog(playerid,4565,0,\"Online Admin / VIP List\",string,\"OK\",\"\"); count++; }}else if(count == 0){ ShowPlayerDialog(playerid,4565,0,\"Online Admin / VIP List\",\"\\n{FFA600}Admin List:\\n\\n \\n\\n\\n{FFA600}VIP List:\\n\\n\",\"OK\",\"\");}}return 1;}
CMD:admins(playerid){new string[1024+1], admincount, count[MAX_PLAYERS][48]; // tudom hogy pazarló, de a MAX_PLAYERS-t írd át a saját slotszámodrafor(new i = 0; i < GetMaxPlayers(); i++){ if(!IsPlayerConnected(i)) return 1;if(AnDark[szint] != 0 || PnDark[VIPSzint] != 0){format(count, \"{FFFFFF}%s - (ID: %d ,AdminLevel: %d, VIPLevel: %d, VIPRank:{%s}%s)\", pName(i), i, AnDark[szint], PnDark[VIPSzint], PnDark[VIPRankcolor], PnDark[VIPRank]);strcat(string, count);count++;}if(count == 0){format(string, 2, \"-\");}}ShowPlayerDialog(playerid, 4565, DIALOG_STYLE_MSGBOX, \"Online Admin / VIP List\", string, \"OK\", \"\");return 1;}
CMD:admins(playerid){new string[1024+1], admincount, count[MAX_PLAYERS][48]; // tudom hogy pazarló, de a MAX_PLAYERS-t írd át a saját slotszámodrafor(new i = 0; i < GetMaxPlayers(); i++){if(!IsPlayerConnected(i)) return 1;if(AnDark[szint] != 0 || PnDark[VIPSzint] != 0){format(count, \"{FFFFFF}%s - (ID: %d ,AdminLevel: %d, VIPLevel: %d, VIPRank:{%s}%s)\", pName(i), i, AnDark[szint], PnDark[VIPSzint], PnDark[VIPRankcolor], PnDark[VIPRank]);strcat(string, count);count++;}if(count == 0){format(string, 2, \"-\");}}ShowPlayerDialog(playerid, 4565, DIALOG_STYLE_MSGBOX, \"Online Admin / VIP List\", string, \"OK\", \"\");return 1;}
CMD:admins(playerid){new string[ 1024+1 ], admincount, count, temp[ 128 + 1 ];for(new i; i < GetMaxPlayers(); i++){if( IsPlayerConnected(i) ){ if( AnDark[szint] > 0 || PnDark[VIPSzint] > 0 ) { format( temp, (128), \"{FFFFFF}%s - (ID: %d ,AdminLevel: %d, VIPLevel: %d, VIPRank:{%s}%s)\", pName(i), i, AnDark[szint], PnDark[VIPSzint], PnDark[VIPRankcolor], PnDark[VIPRank]); strcat( string, temp ); count ++; }}}if( !count ) string = \"-\";ShowPlayerDialog(playerid, 4565, DIALOG_STYLE_MSGBOX, \"Online Admin / VIP List\", string, \"OK\", \"\");return 1;}
CMD:admins(playerid,params[]){ new string[1000],count[2] = 0; format(string, sizeof(string), \"Online Adminok\\n\"); for(new i = 0;i < MAX_PLAYERS; i++) { if(!IsPlayerConnected(i)) continue; if(AnDark[szint] > 0) { format(string,sizeof(string),\"%s{FFA600}Admin List:\\n\\n{FFFFFF}%s - (ID: %d, Level: %d)\",string,pName(i),i,AnDark[szint]); count[0]++; }}if(count[0] == 0) format(string, sizeof(string), \"%s\\nNincs online admin\", string);format(string, sizeof(string), \"%s\\n\\nOnline VIPek\", string);for(new i = 0; i < MAX_PLAYERS; i++) { if(!IsPlayerconnected(i)) continue; if(PnDark[VIPSzint] > 0) { format(string,sizeof(string),\"%s\\n{FFFFFF}%s - (ID: %d, Level: %d, Rank: {FFA600}%s{FFFFFF}) \\n\",string, pName(i),i,PnDark[VIPSzint],PnDark[VIPRank]); count[1]++;} } if(count[1] == 0) format(string, sizeof(string), \"%s\\nNincs online VIP\", string); format(string, sizeof(string), \"%s\\nÖsszesen %d Admin, és %d VIP\", count[0], count[1]); return ShowPlayerDialog(playerid,4565,0,\"Online Admin / VIP List\",string,\"OK\",\"\");}