-.- prob
#1

just appear no admins online why?!!!!!
pawn Код:
dcmd_admins(playerid,params[])
{
    #pragma unused params
    new string[128],PlayerName2[MAX_PLAYERS],Count[2];
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i) && PInfo[i][Level] > 0)
        {
            if(PInfo[i][Level] > 0) Count[0]++;
        }
        if(Count[0] == 0) return SendClientMessage(playerid, ORANGE, "No Administrators online");

    if(Count[0] > 1)
    {
        for(i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i) && PInfo[i][Level] > 0)
        {
            GetPlayerName(i,PlayerName2,sizeof(PlayerName2));
            SendClientMessage(playerid,LGREEN,"========= Online Administrators =========");
            format(string, sizeof(string), "Admin: %s [Admin Level %d]", PlayerName2, PInfo[i][Level]);
            SendClientMessage(playerid, YELLOW, string);
            SendClientMessage(playerid,LGREEN,"=========================================");
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
-.- prob - by dark_clown - 05.11.2010, 17:38
Re: -.- prob - by MadeMan - 05.11.2010, 17:46
Re: -.- prob - by dark_clown - 05.11.2010, 17:51
Re: -.- prob - by (SF)Noobanatior - 05.11.2010, 21:16

Forum Jump:


Users browsing this thread: 5 Guest(s)