/makeadmin cmd
#1

So I found a /makeadmin cmd. When I type this, it doesn't response..It just appears the same message.



Код:
CMD:makeadmin(playerid, params[])
{
	if(pInfo[playerid][AdminLevel] >= 6 || IsPlayerAdmin(playerid))
	{
		new id, level, string[126];

		if(sscanf(params, "ud", id, level))
			return SendClientMessage(playerid, -1, "Syntax: /makeadmin [playerid] [level]");

		if(pInfo[playerid][AdminLevel] > pInfo[id][AdminLevel])
		{
			pInfo[id][AdminLevel] = level;

			format(string, sizeof(string), "%s has made you admin level %d", GetNameEx(playerid), level);
			SendClientMessage(id, -1, string);

			format(string, sizeof(string), "You have made %s an admin level %d", GetNameEx(id), level);
			SendClientMessage(playerid, -1, string);
		}
	}
	return 1;
}
Reply


Messages In This Thread
/makeadmin cmd - by Gogorakis - 18.09.2015, 11:16
Re: /makeadmin cmd - by TheLegend1 - 18.09.2015, 12:14
Re: /makeadmin cmd - by TheLegend1 - 18.09.2015, 12:17

Forum Jump:


Users browsing this thread: 1 Guest(s)