/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


Messages In This Thread
/team command wont work - by Stefand - 09.06.2012, 09:41
Re: /team command wont work - by [KHK]Khalid - 09.06.2012, 09:51
Re: /team command wont work - by Stefand - 09.06.2012, 10:44

Forum Jump:


Users browsing this thread: 1 Guest(s)