[HELP] How to get players in team.
#1

Please help me if you can, but i am trying to make a command that shows all the online admins. So far, I am no where, and i am needing help.

I want player to type /admins and it brings up a list of all the online admins.

Hope i can get some help Thank you!
Reply
#2

show us the value, where info is stored about admins.
Here is my command:
pawn Код:
if(strcmp(cmdtext, "/admin", true) == 0)
    {
            new zin[256] = "Admins online:";
            new name[MAX_PLAYER_NAME];
            for(new i = 0; i <MAX_PLAYERS; i++)
{
                if(IsPlayerConnected(i) && playerDB[i][admin]){
                    GetPlayerName(i,name,MAX_PLAYER_NAME);
                    format(zin,256,"%s %s,",zin,name);
}
            SendClientMessage(playerid,0x45A9BAFF,zin);
            return 1;
        }
Reply
#3

I got it fixed. Sorry to bother sir. Thank you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)