Problem with DCMD Command
#1

Hello i have a problem with a script that show me admins of the server its work but have a player ID 2 is that in the admin list he isnt a admin what is wrong?

Код:
dcmd_admins(playerid,params[])
{
	new sendername[MAX_PLAYER_NAME];
	#pragma unused params
	if(IsPlayerConnected(playerid))
        {
            SendClientMessage(playerid, COLOR_RED, "Server Administrator");
            for(new i = 0; i < MAX_PLAYERS; i++)
            {
                if(IsPlayerConnected(i))
                {
                    if(Admin[i][AdminLevel] > 1336)
                    {
                        GetPlayerName(i, sendername, sizeof(sendername));
                        format(string1, sizeof(string1), "Administrator: %s ", sendername);
                        SendClientMessage(playerid, COLOR_RED, string1);
	             }
                }
             }

        }
	return 1;
}
Reply


Messages In This Thread
Problem with DCMD Command - by SanAndreasVille - 03.10.2011, 20:38
Re: Problem with DCMD Command - by CyNiC - 03.10.2011, 21:01
AW: Problem with DCMD Command - by SanAndreasVille - 03.10.2011, 21:10
AW: Problem with DCMD Command - by SanAndreasVille - 04.10.2011, 16:20

Forum Jump:


Users browsing this thread: 1 Guest(s)