when admin chat
#6

if I understood you right, then here is the code:

Код:
CMD:adminchat(playerid, params[])
{
	new
		str[185],
		aname[MAX_PLAYER_NAME]
	;
	GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
	if(PInfo[playerid][pAdmin] >= 1)//if admin level is greater than 1
	{
	    if(sscanf(params, "s", str)) return SendClientMessage(playerid, -1, "USAGE: /adminchat [text]");
	    format(str, 185, "Admin %s says: %s", aname, params);
	}
	else SendClientMessage(playerid, -1, "You are not authorized to use that command!");
	return 1;
}
Reply


Messages In This Thread
when admin chat - by [LHT]Bally - 04.08.2012, 19:52
Re: when admin chat - by awsomedude - 04.08.2012, 20:12
Re: when admin chat - by V_LOPE - 04.08.2012, 21:37
Re: when admin chat - by Ranama - 05.08.2012, 00:24
Re: when admin chat - by Revo - 05.08.2012, 00:25
Re: when admin chat - by Youice - 05.08.2012, 00:39

Forum Jump:


Users browsing this thread: 3 Guest(s)