Admin Chat?
#2

Код:
dcmd_a(playerid,params[])
{
	#pragma unused params
	if(PlayerInfo[playerid][AdminLevel] >= 1)
	{
 		if(!strlen(params))
 		{
		 	SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /a [text]");
		 	return 1;
		}
		new str[128], pName[24];
		GetPlayerName(playerid, pName, sizeof(pName));
		format(str, sizeof(str), "(Admin Chat): %s said %s", pName,params[0] );
  		SendAdminMessage(0xF6A442FF, str);
	}
	else
	{
			SendClientMessage(playerid,COLOR_GRAD1,"You are not authorized to use that command!");
	}
	return 1;
}
Reply


Messages In This Thread
Admin Chat? - by jonnyboy - 12.04.2011, 13:05
Re: Admin Chat? - by AntiGen - 12.04.2011, 13:10
Re: Admin Chat? - by Seven_of_Nine - 12.04.2011, 13:17
Re: Admin Chat? - by jonnyboy - 12.04.2011, 13:21
Re: Admin Chat? - by alpha500delta - 12.04.2011, 13:51
Re: Admin Chat? - by jonnyboy - 12.04.2011, 14:53
Re: Admin Chat? - by blazee14 - 13.04.2011, 10:38

Forum Jump:


Users browsing this thread: 4 Guest(s)