Increase size of a Line
#7

I've thought about something like this, untested.

Код:
dcmd_admins(playerid,params[])
{
	#pragma unused params
	if(AccInfo[playerid][LoggedIn] == 1)
	{
		if(AccInfo[playerid][Level] >= 0)
		{
	 		new Count, i;
		    new string[128] = "{05BDFA}Online admins:{FF0000}", adminname[MAX_PLAYER_NAME], AccType[30];
		    for(i = 0; i < MAX_PLAYERS; i++)
		    {
				if(IsPlayerConnected(i) && AccInfo[i][Level] > 0)
				{
					Count++;
					switch(AccInfo[i][Level])
    				{
						case 1: AccType = "Tester";
						case 2: AccType = "Mod";
						case 3: AccType = "Admin";
						case 4: AccType = "{05BDFA}Leader{FF0000}";
						case 5: AccType = "{05BDFA}Manager/Owner{FF0000}";
					}
	 				GetPlayerName(i, adminname, sizeof(adminname));
					format(string, sizeof(string), "%s %s [%s]", string, adminname, AccType);
					if(strlen(string) > 100)
					{
					    SendClientMessage(playerid, 0xFFFFFFFF, string);
					    strmid(string, "{05BDFA}Online admins:{FF0000}", 0, sizeof(string));
					}
				}
	        }
			if(Count == 0) SendClientMessage(playerid,red, "No admins online.");
		}
		else ErrorMessages(playerid, 1);
	}
	else SendClientMessage(playerid,red,"ERROR: You must be logged in to use this commands");
	return 1;
}
Reply


Messages In This Thread
Increase size of a Line +REP - by TimKen - 10.03.2012, 18:40
Re: Increase size of a Line - by TimKen - 11.03.2012, 10:32
Re: Increase size of a Line - by Andi_Evandy - 11.03.2012, 12:15
Re: Increase size of a Line - by MP2 - 11.03.2012, 12:51
Re: Increase size of a Line - by TimKen - 11.03.2012, 13:17
Re: Increase size of a Line - by TimKen - 11.03.2012, 21:06
Re: Increase size of a Line - by SimonItaly - 11.03.2012, 22:07
Re: Increase size of a Line - by TimKen - 12.03.2012, 00:14
Re: Increase size of a Line - by Mike_Peterson - 13.03.2012, 13:03
Re: Increase size of a Line - by TimKen - 13.03.2012, 13:22

Forum Jump:


Users browsing this thread: 1 Guest(s)