/admins confused
#6

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;
}
Reply


Messages In This Thread
/admins confused - by tyler12 - 15.08.2012, 14:42
Re: /admins confused - by CROSS_Hunter - 15.08.2012, 14:51
Re: /admins confused - by tyler12 - 15.08.2012, 14:53
Re: /admins confused - by sansko - 15.08.2012, 14:58
Re: /admins confused - by ryansheilds - 15.08.2012, 15:48
Re: /admins confused - by Jessyy - 15.08.2012, 16:02

Forum Jump:


Users browsing this thread: 1 Guest(s)