Show online admins [+REP]
#4

What to you want to show ?

Admin connected with RCON ?

Or admin without RCON ?

If it's without RCON you can do something like this: ( adapt it with your GM):

Код:
CMD:onlineadmin(playerid, params[])
{
	if(pInfo[playerid][Admin] > 1)
	{
		new string[50];
		SendClientMessage(playerid, -1, "Online admin are:");
		foreach(new i : Player)
		{
			if(pInfo[i][Admin] >= 1)
			{
				GetPlayerName(i, joueurdestinataire, sizeof(joueurdestinataire));
				format(string, sizeof(string), "%s | Admin Level: %d", joueurdestinataire, pInfo[i][Admin]);
				SendClientMessage(playerid, -1, string);
			}
		} 
		return 1;
	}
	return SendClientMessage(playerid, Rouge,"Unknown command");
}
Reply


Messages In This Thread
Show online admins [+REP] - by Tadas - 20.04.2014, 13:07
Re: Show online admins [+REP] - by Dragon2 - 20.04.2014, 13:09
Re: Show online admins [+REP] - by Tadas - 20.04.2014, 13:13
Re: Show online admins [+REP] - by anou1 - 20.04.2014, 13:19
Re: Show online admins [+REP] - by Abagail - 20.04.2014, 13:21
Re: Show online admins [+REP] - by Tadas - 20.04.2014, 13:30

Forum Jump:


Users browsing this thread: 1 Guest(s)