/admins
#2

Take my /admins command.

You can change AdminLevels, etc..
Код:
	if (strcmp(cmd, "/admins", true) == 0)
	{
        if(IsPlayerConnected(playerid))
	    {
	        SendClientMessage(playerid, COLOR_RED, ".:: Administrator Team ::.");
			for(new i = 0; i < MAX_PLAYERS; i++)
			{
				if(IsPlayerConnected(i))
				{
				    if(PlayerInfo[i][pAdmin] >= 1 && PlayerInfo[i][pAdmin] < 4243)
				    {
				        new admtext[64];
				        if(PlayerInfo[i][pAdmin] == 4242) { admtext = "Server Owner"; }
				        else if(PlayerInfo[i][pAdmin] == 1337) { admtext = "1337 Admin"; }
				        else if(PlayerInfo[i][pAdmin] == 4) { admtext = "Level 4 Admin"; }
						else if(PlayerInfo[i][pAdmin] == 3) { admtext = "Level 3 Admin"; }
						else if(PlayerInfo[i][pAdmin] == 2)	{ admtext = "Level 2 Admin"; }
						else if(PlayerInfo[i][pAdmin] == 1) { admtext = "Moderator"; }
						else { admtext = "Level 1 Moderator"; }
						GetPlayerName(i, sendername, sizeof(sendername));
						if(AdminDuty[i] == 0)
						{
							format(string, 256, "%s: %s", admtext, sendername);
							SendClientMessage(playerid, COLOR_WHITE, string);
						}
						else
						{
						    format(string, 256, "%s: %s (on duty)", admtext, sendername);
							SendClientMessage(playerid, COLOR_GREEN1, string);
						}
					}
				}
			}
		}
		return 1;
	}
Reply


Messages In This Thread
/admins - by Unknown123 - 10.02.2011, 17:21
Re: /admins - by berz - 10.02.2011, 17:45
AW: /admins - by thiaZ_ - 10.02.2011, 18:02
Re: /admins - by Unknown123 - 10.02.2011, 19:25

Forum Jump:


Users browsing this thread: 1 Guest(s)