Help me for admins cmd
#1

Код:
CMD:admins(playerid, params[])
{
	 if(AccountInfo[playerid][pAdmin] > 0)
	{
	    new adminstring[128];
	    if(IsPlayerConnected(playerid))
	    {
	        for (new i = 0; i < MAX_PLAYERS; i++)
	        {
	            if(IsPlayerConnected(i))
	            {
	                	 if(AccountInfo[playerid][pAdmin] > 0)
	                {
	                    format(adminstring, sizeof(adminstring),"%s%s: %s\n", adminstring, GetAdminName(i), PlayerName(i));
	                }
	            }
	        }
	        ShowPlayerDialog(playerid,DIALOG_ADMINS,DIALOG_STYLE_MSGBOX,"Online admins",adminstring,"Close","");
		}
 		else return SendClientMessage(playerid,-1,"*"COL_LGREEN" No admins online");
Reply


Messages In This Thread
Help me for admins cmd - by TOS - 03.03.2017, 20:03
Re: Help me for admins cmd - by RedRex - 03.03.2017, 20:41
Respuesta: Help me for admins cmd - by mcreed - 04.03.2017, 00:58
Re: Help me for admins cmd - by TOS - 04.03.2017, 16:04
Re: Help me for admins cmd - by Toroi - 04.03.2017, 16:06
Re: Help me for admins cmd - by Sabur - 04.03.2017, 16:24
Re: Help me for admins cmd - by JessThompson - 04.03.2017, 19:26

Forum Jump:


Users browsing this thread: 1 Guest(s)