/staff command fails to have more than one staff member on it.
#4

This:
Код:
command(staff, playerid, params[])
{
	#pragma unused params
	new string[128],text[1000]

	SendClientMessage(playerid, COLOR_ORANGE, ". : : Administrators : : .");
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
		if(IsPlayerConnected(playerid))
		{
			if(PlayerInfo[playerid][pAdmin] >= 1)
			{
				format(string, sizeof(string), "Name: %s{A9C4E4}: (Level %d) {%s}", RPName(playerid), PlayerInfo[playerid][pAdmin], GetAwayStatus(playerid));
				SendClientMessage(playerid, GREY, string);
				return 1;
			}
		}
	}
	SendClientMessage(playerid, COLOR_ORANGE, ". : : Moderators : : .");
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
		if(IsPlayerConnected(i))
		{
			if(PlayerInfo[playerid][pModerator] >= 1)
			{
				format(string, sizeof(string), "Name: %s{A9C4E4} {%s}", RPName(playerid), GetAwayStatus(i));
				SendClientMessage(playerid, GREY, string);
				return 1;
			}
		}
	}
	SendClientMessage(playerid, COLOR_ORANGE, ". : : Helpers : : .");
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
		if(IsPlayerConnected(i))
		{
			if(PlayerInfo[playerid][pHelper] >= 1)
			{
				format(string, sizeof(string), "Name: %s{A9C4E4} {%s}", RPName(playerid), GetAwayStatus(playerid));
				SendClientMessage(playerid, GREY, string);
				return 1;
			}
		}
	}
         strcat(string,"\n");
         strcat(text,string);
         SendClientMessage(playerid,GREY,text);
	return 1;
}
This will show all in one soo remove all SendClientMessage
Reply


Messages In This Thread
/staff command fails to have more than one staff member on it. - by OMonger - 17.08.2015, 16:22
Re: /staff command fails to have more than one staff member on it. - by rymax99 - 17.08.2015, 16:27
Re: /staff command fails to have more than one staff member on it. - by arad55 - 17.08.2015, 16:29
Re: /staff command fails to have more than one staff member on it. - by Roberto80 - 17.08.2015, 16:31
Re: /staff command fails to have more than one staff member on it. - by OMonger - 17.08.2015, 16:37

Forum Jump:


Users browsing this thread: 1 Guest(s)