How to make that ?
#9

Quote:
Originally Posted by Bicentric
Посмотреть сообщение
pawn Код:
COMMAND:admins(playerid, params[])
{
    SendClientMessage(playerid, 0x80FF00FF, "Online admins:");
    for(new i; i != GetMaxPlayers(); ++i)
    {
        if(IsPlayerConnected(i))
        {
            if(IsPlayerAdmin(i))
            {
                new pName[MAX_PLAYER_NAME], adminsMessage[100], finalMessage[500];
                GetPlayerName(playerid, pName, sizeof(pName));
                format(adminsMessage, sizeof(adminsMessage), "%s(%d)\n", pName, playerid);
                strcat(finalMessage, adminsMessage);
                ShowPlayerDialog(playerid, 1000, DIALOG_STYLE_MSGBOX, "Online Admins", finalMessage, "Okay", "");
            }
        }
    }
    return 1;
}
Not tested, and works with ZCMD, I can convert it to strcmp if you wish. But it would be easier with messages, here is my somewhat overdone command for my server. Please tell me if it doesn't work so I can fix it for you.
I will test it now and I have a reason to do it in a dialog it's because I want to have something different from the other servers.
Reply


Messages In This Thread
How to make that ? - by x96664 - 17.10.2012, 19:03
Re: How to make that ? - by Red_Dragon. - 17.10.2012, 19:06
Re: How to make that ? - by Roel - 17.10.2012, 19:10
Re: How to make that ? - by Bicentric - 17.10.2012, 19:11
Re: How to make that ? - by Red_Dragon. - 17.10.2012, 19:12
Re: How to make that ? - by Bicentric - 17.10.2012, 19:14
Re: How to make that ? - by Roel - 17.10.2012, 19:14
Re: How to make that ? - by Kwarde - 17.10.2012, 19:16
Re: How to make that ? - by x96664 - 17.10.2012, 19:16
Re: How to make that ? - by x96664 - 17.10.2012, 19:42

Forum Jump:


Users browsing this thread: 1 Guest(s)