SA-MP Forums Archive
/admins - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: /admins (/showthread.php?tid=130902)



/admins - aircombat - 28.02.2010

Код:
//------------------------------------------------------------------------------
	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