/team command wont work
#1

Hey,

my /team command won't work, it only shows the -------------------------------------

but not the members


pawn Код:
command(team, playerid, params[])
{
    #pragma unused params
    if(Player[playerid][Group] >= 1)
    {
        new string[128];
        SendClientMessage(playerid, WHITE, "------------------------------------------------------------");

        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(IsPlayerConnectedEx(i) && Player[i][Group] == Player[playerid][Group] && Player[i][AdminDuty] < 1)
            {
                format(string, sizeof(string), "Name: %s | Rank: %d.", GetName(i), Player[i][GroupRank]);
                SendClientMessage(playerid, WHITE, string);
            }
        }

        SendClientMessage(playerid, WHITE, "------------------------------------------------------------");
    }
    return 1;
}
Reply
#2

It seems to work fine. Hmm were there any players in your server when you tested it? If so are you sure you were in the same team/group as them and you weren't onduty?
Reply
#3

i was on admin duty, that was the problem xD

Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)