need help /admins
#1

hi,it show it two times how to make it show one time


Код:
CMD:admins(playerid, params[])
{
    new bool:Count;
    new str[45], Admin[MAX_PLAYER_NAME], str2[128];
    for(new i = 0; i <MAX_PLAYERS; i++)
    {
        if (APlayerData[i][PlayerLevel] >= 1) // replace with ur variable
        {
            GetPlayerName(i, Admin, MAX_PLAYER_NAME);
            format(str2, sizeof(str2), "Current Administrators Online");
            format(str, sizeof(str), "%s ",  Admin);
            SendClientMessage(playerid, -1, str2);
            SendClientMessage(playerid, -1, str);
            Count = true;
        }
        if(IsOnAdminDuty[i] == true)
        {
            new aname[24],astring[124];
            GetPlayerName(playerid,aname,sizeof(aname));
            format(astring,sizeof(astring),"%s %s (Duty)",aname);
            SendClientMessage(playerid,-1,astring);
         }
    }
    if(!Count) SendClientMessage(playerid, -1, "No Administrators Online!");
    return 1;
}
Reply


Messages In This Thread
need help /admins - by DerickClark - 28.01.2013, 02:13
Re: need help /admins - by Scenario - 28.01.2013, 02:18
Re: need help /admins - by DerickClark - 28.01.2013, 02:23
Re: need help /admins - by LeBoyce - 28.01.2013, 08:35

Forum Jump:


Users browsing this thread: 3 Guest(s)