/admins
#1

Код:
//------------------------------------------------------------------------------
	if (strcmp(cmd, "/admins", true) == 0)
	{
	  	new count = 0;
      SendClientMessage(playerid, GREEN, "______________________________________");
			SendClientMessage(playerid, GREEN, "            [Online Admins]");
			for(new i = 0; i < MAX_PLAYERS; i++)
		{
		  if (IsPlayerConnected(i))
	 		{
 				if(PlayerInfo[i][Level] >= 1 && PlayerInfo[i][Level] <= 5 && Hide[i] == 0) {
  				GetPlayerName(i, sendername, sizeof(sendername));
					format(string, 128, "Level %d [%i]%s", PlayerInfo[i][Level],i,sendername);
					SendClientMessage(playerid, LIGHTGREEN, string);
					count++;
				}
			}
	}
			if (count == 0) SendClientMessage(playerid,RED,"No Admins Online");
			SendClientMessage(playerid, GREEN, "______________________________________");
			return 1;
	}
//------------------------------------------------------------------------------
that show [id]Name [LEVEL] how can i make it if player level 5 it shows instead of 5 , Owner and 4 administrator etc..
________
Vaporizer Wholesaler
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)