/admins problems :\
#1

hey guys , i need some help here. hmm
im trying to make /admins cmd , but its fail :\
im not scripting for a long time and now im just back , and i didnt good on scripting anymore hmm ,
gonna learn it back like a shit xD

here is my code.
pawn Код:
CMD:admins(playerid, params[])
{
    new Count = 0;
    for(new i = 0; i <MAX_PLAYERS; i++)
    {
        if(PlayerInfo[i][pAdmin] > 0)
        {
            new str[1000];
            new Admin[MAX_PLAYER_NAME];
            GetPlayerName(i, Admin, sizeof(Admin));
           
            format(str, sizeof(str), "[Admin]'%s - level %d", Admin, PlayerInfo[i][pAdmin]);
            SendClientMessage(playerid, lightred, str);
            Count++;
        }
        if(Count == 0)
        {
            SendClientMessage(playerid, lightred, "[System]: No Admin Online!");
        }
    }
    return 1;
}
when no admin online , its spam it !
pawn Код:
[System]: No Admin Online!
[System]: No Admin Online!
[System]: No Admin Online!
[System]: No Admin Online!
[System]: No Admin Online!
[System]: No Admin Online!
[System]: No Admin Online!
[System]: No Admin Online!
[System]: No Admin Online!
[System]: No Admin Online!
idk if it show an online admin ? hmm

like a shit lol . hmm help me plss
Reply


Messages In This Thread
/admins problems :\ - by Devilxz97 - 27.11.2012, 11:57
Re: /admins problems :\ - by tyler12 - 27.11.2012, 11:59
Re: /admins problems :\ - by Devilxz97 - 27.11.2012, 12:00
Re: /admins problems :\ - by ViniBorn - 27.11.2012, 12:04
Re: /admins problems :\ - by CentyPoo - 27.11.2012, 12:27
Re: /admins problems :\ - by tyler12 - 27.11.2012, 12:32
Re: /admins problems :\ - by CentyPoo - 27.11.2012, 12:34

Forum Jump:


Users browsing this thread: 1 Guest(s)