/admins acts weird
#6

But you forgot to change it from the start.
pawn Код:
CMD:admins(playerid, params[])
{
    new string[128], CountAdmins, Name[MAX_PLAYER_NAME];
    foreach(Player, i) {
        GetPlayerName(i, Name, sizeof(Name));
        if(PlayerInfo[i][AdminLevel] >= 1) {
            CountAdmins = 1;
        }
    }
    if(CountAdmins == 1) {
        SendClientMessage(playerid, 0xD8D8D8FF, "Reality Roleplay Online Administrators");
        foreach(Player, i) {
            if(PlayerInfo[i][AdminLevel] >= 1) {
                format(string, sizeof(string), "Admin: %s (ID: %d) - Level: %d", Name, i, PlayerInfo[i][AdminLevel]);
                SendClientMessage(playerid, 0xD8D8D8FF, string);
            }
        }
    }
    if(CountAdmins == 0) SendClientMessage(playerid, 0xD8D8D8FF, "There are no admins online!");
    CountAdmins = 0;
    return 1;
}
Reply


Messages In This Thread
/admins acts weird - by milanosie - 14.01.2012, 12:36
Re: /admins acts weird - by Mean - 14.01.2012, 12:40
Re: /admins acts weird - by milanosie - 14.01.2012, 12:50
Re: /admins acts weird - by Mean - 14.01.2012, 12:51
Re: /admins acts weird - by milanosie - 14.01.2012, 12:55
Re: /admins acts weird - by Konstantinos - 14.01.2012, 13:02
Re: /admins acts weird - by Mean - 14.01.2012, 13:06
Re: /admins acts weird - by Lorenc_ - 14.01.2012, 13:12
Re: /admins acts weird - by Mean - 14.01.2012, 13:16
Re: /admins acts weird - by milanosie - 14.01.2012, 13:40

Forum Jump:


Users browsing this thread: 1 Guest(s)