Bugged command.
#10

try this?
Код:
CMD:admins(playerid)
{
    new GetAName[MAX_PLAYERS][MAX_PLAYER_NAME];
    GetPlayerName(i, GetAName, sizeof(GetAName));
	new admincount = 0;
	new string[128];
	for(new i, j = GetMaxPlayers(); i != j; i++)
    {
    	if(pData[playerid][Admin] >= 1 && IsPlayerConnected(i))
		{
			admincount ++;
			format(string,sizeof(string),"{FF00FF}%s : %d - %s",GetAName,pData[playerid][Admin],AdminsLevelS(i));
		}
		else if(admincount <= 0)
		{
			SendClientMessage(playerid,-1,"Error:{FF0000} No admin online");
			return 1;
		}
	}
	SendClientMessage(playerid,-1,string);
	return 1;
}
Reply


Messages In This Thread
Bugged command. - by yvoms - 21.01.2016, 12:56
Re: Bugged command. - by AlexuTzVs - 21.01.2016, 13:02
Re: Bugged command. - by yvoms - 21.01.2016, 13:05
Re: Bugged command. - by SkyFlare - 21.01.2016, 13:45
Re: Bugged command. - by SkyFlare - 21.01.2016, 13:47
Re: Bugged command. - by yvoms - 21.01.2016, 13:53
Re: Bugged command. - by yvoms - 21.01.2016, 14:00
Re: Bugged command. - by SkyFlare - 21.01.2016, 14:05
Re: Bugged command. - by yvoms - 21.01.2016, 14:09
Re: Bugged command. - by SkyFlare - 21.01.2016, 14:21

Forum Jump:


Users browsing this thread: 5 Guest(s)