/admins FAIL
#4

pawn Код:
dcmd_tps(playerid, params[])
{
    #pragma unused params
    new count = 0, string[256], name[MAX_PLAYER_NAME];
    for(new i = 0; i < MAX_PLAYERS; i ++)
    {
        if(IsPlayerConnected(i) && AccInfo[i][Level] == 2)
        {
            GetPlayerName(i, name, MAX_PLAYER_NAME);
            format(string, sizeof(string),"%s%s (ID:%i)\n", string, name, i);
            count++;
        }
    }
    if(count == 0) ShowPlayerDialog(playerid, 139, DIALOG_STYLE_MSGBOX, "Online Trusted Player List", "No Trusted Player Online.", "Ok", "");
    else ShowPlayerDialog(playerid, 139, DIALOG_STYLE_MSGBOX, "Online Trusted Player List", string, "Ok", "");
    return 1;
}
Try it, not yet tested, but should work, i also modified some code.
Reply


Messages In This Thread
/admins FAIL - by AwokenNeoX - 01.03.2014, 14:25
Re: /admins FAIL - by Golimad - 01.03.2014, 14:40
AW: Re: /admins FAIL - by AwokenNeoX - 01.03.2014, 14:41
Re: /admins FAIL - by RoboN1X - 01.03.2014, 14:44
Re: /admins FAIL - by Golimad - 01.03.2014, 14:46

Forum Jump:


Users browsing this thread: 2 Guest(s)