Admin Announce Command
#1

Код:
	CMD:adminann(playerid, params[])
    {
		if(PlayerInfo[playerid][pAdminLevel] >= 2)
		{
			if(!params[8])
			{
				new str[128];
		        SendClientMessageToAll(COLOR_LIGHTBLUE, "|~~~~~~~~~~ Admin Announcement ~~~~~~~~~~|");
		        format(str, sizeof(str), "%s %s", str, params[0]);
		        SendClientMessageToAll(COLOR_GREEN, str);
		        SendClientMessageToAll(COLOR_LIGHTBLUE, "|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|");
			}
			else
			{
			    SendClientMessage(playerid, COLOR_GREY, "USAGE: /adminann [text]");
			    return 1;
			}
		}
  		else
		{
			SendClientMessage(playerid, COLOR_GREY, "You are not an admin");
			return 1;
		}
		return 1;
    }
When I type /adminann ingame it comes up with Unknown Command :/
Reply


Messages In This Thread
Admin Announce Command - by StuartD - 31.12.2012, 22:21
Re : Admin Announce Command - by [HRD]Mar1 - 31.12.2012, 22:45
Re: Admin Announce Command - by StuartD - 31.12.2012, 22:57
Re: Admin Announce Command - by CrazyJin - 31.12.2012, 23:15
Re: Admin Announce Command - by Threshold - 31.12.2012, 23:21
Re: Admin Announce Command - by StuartD - 31.12.2012, 23:40
Re: Admin Announce Command - by CrazyJin - 31.12.2012, 23:43
Re: Admin Announce Command - by Threshold - 01.01.2013, 10:13

Forum Jump:


Users browsing this thread: 4 Guest(s)