15.08.2012, 16:02
Try this ...
Code:
acmd:admins(playerid, params[], bool:help) { new string[128], bool:dfound = false, dcount = 0; for(new i = 0; i < GetMaxPlayers(); i++) { if(Duty[i] != 1) continue; if(dcount == 0) { dfound = true; dcount += 1; format(string, sizeof(string), "%s", GetName(i)); } else { dcount += 1; format(string, sizeof(string), "%s, %s", string, GetName(i)); } if(dcount == 6) { dcount = 0; SendClientMessage(playerid, -1, string); } } if(dcount != 0) { SendClientMessage(playerid, -1, string); } if(!dfound) { SendClientMessage(playerid, -1, "No admins online"); } return 1; }