Hello How to make >>
#1

Hi how to make When player Type

/acmds And he not Admin he cannot Show the Levels?

He must be level 1 to Show Levels


Код:
CMD:acmds(playerid, params[])
{
		SendClientMessage(playerid, COLOR_PINK, "==========Admins Commands=========");
		SendClientMessage(playerid, COLOR_PINK, "/level 1 : for level 1 admins cmds");
		SendClientMessage(playerid, COLOR_PINK, "/level 2 : for level 2 admins cmds");
		SendClientMessage(playerid, COLOR_PINK, "/level 3 : for level 3 admins cmds");
		SendClientMessage(playerid, COLOR_PINK, "/level 4 : for level 4 admins cmds");
		SendClientMessage(playerid, COLOR_PINK, "/level 5 : for level 5 admins cmds");
		SendClientMessage(playerid, COLOR_PINK, "==================================");
}
Only Admins can show this command how?
Reply
#2

any help?
Reply
#3

Edit this depending on your admin variable as mentioned above.
Код:
CMD:acmds(playerid, params[])
{
	if(PlayerInfo[playerid][AdminLevel] < 1) return SendClientMessage(playerid,0xFF4444FF,"You aren't authorized to use this command");
	else
	{
		SendClientMessage(playerid, COLOR_PINK, "==========Admins Commands=========");
		SendClientMessage(playerid, COLOR_PINK, "/level 1 : for level 1 admins cmds");
		SendClientMessage(playerid, COLOR_PINK, "/level 2 : for level 2 admins cmds");
		SendClientMessage(playerid, COLOR_PINK, "/level 3 : for level 3 admins cmds");
		SendClientMessage(playerid, COLOR_PINK, "/level 4 : for level 4 admins cmds");
		SendClientMessage(playerid, COLOR_PINK, "/level 5 : for level 5 admins cmds");
		SendClientMessage(playerid, COLOR_PINK, "==================================");
	}
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)