New question, help command
#2

pawn Код:
command(admins, playerid)  
{
    new longstring[200], shortstring[30], Count = 0, pName[25];
    for(new i; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerAdmin(i))
        {
            Count ++;
            GetPlayerName(i, pName, 25);
            format(shortstring, sizeof shortstring, "%s (ID:%d) \n", pName, i);  
            strcat(longstring,shortstring);
        }
    }
    format(shortstring, sizeof shortstring, "%d admins online", Count);
    ShowPlayerDialog(playerid, dialogid, DIALOG_STYLE_MSGBOX, "Online Admins", longstring, "Ok", "");

    return 1;
}
Reply


Messages In This Thread
New question, help command - by NewbieScripter - 12.07.2012, 11:22
Re: New question, help command - by aRoach - 12.07.2012, 11:40
Re: New question, help command - by clarencecuzz - 12.07.2012, 11:49

Forum Jump:


Users browsing this thread: 1 Guest(s)