Problem with DCMD Command
#4

Now i have this in my script

Код:
dcmd_admins(playerid,params[])
	{
#pragma unused params
        if(IsPlayerConnected(playerid))
	    {
			SendClientMessage(playerid,COLOR_YELLOW, "Administrators at work");
			for(new i = 0; i < MAX_PLAYERS; i++)
			{
				if(IsPlayerConnected(i))
				{
				    if(Admin[i][AdminLevel] > 1336)
				    {
                                                new sendername[MAX_PLAYER_NAME], strink[128];
						GetPlayerName(i, sendername, sizeof(sendername));
						format(strink, sizeof strink, " Administrator: %s", sendername);
						SendClientMessage(playerid, COLOR_RED, strink);
					}
				}
			}
		}
		return 1;
	}
now it goes but is always displayed as ID 0 as admin
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)