[Help] Reading data Y_INI Admins System
#3

pawn Код:
if (strcmp("/admins", cmdtext, true, 7) == 0)
    {
    new count = 0;
    new AllString[1000];
    new String[80];
   
    for ( new i;i<MAX_PLAYERS;i++)
    {
    if(IsPlayerConnected(i))
    {
    if(IsPlayerAdmin(i) == 0 && Info[i][PAdmin] > 0)
    {
    format(String, sizeof(String), "Administrator %s  (Level %i) \n\n", PlayerName(i), Info[i][PAdmin]);
    strcat(AllString, String);
    count ++;
    }
    else if(IsPlayerAdmin(i) == 1 && Info[i][PAdmin] > 0)
    {
    format(String, sizeof(String), "Administrator %s  (Level %i + RCON) \n\n", PlayerName(i), Info[i][PAdmin]);
    strcat(AllString, String);
    count ++;
    }
    }
    }
    if(count == 0)
    {
    strcat(AllString, "{FF0000}No administrator online!");
    }
    ShowPlayerDialog(playerid, 5555, DIALOG_STYLE_MSGBOX, "Online administrators", AllString, "OK", "");
    return 1;
    }
Reply


Messages In This Thread
[Help] Reading data Y_INI Admins System - by Shura - 23.08.2014, 10:45
Re : [Help] Reading data Y_INI Admins System - by Xenforox - 23.08.2014, 11:31
Re: [Help] Reading data Y_INI Admins System - by Thogy - 23.08.2014, 11:55
Re: [Help] Reading data Y_INI Admins System - by Ada32 - 23.08.2014, 12:59
Respuesta: Re: [Help] Reading data Y_INI Admins System - by Shura - 24.08.2014, 06:01

Forum Jump:


Users browsing this thread: 1 Guest(s)