Dual working cmd.
#1

hello, i dont know how to make dual working cmd.

i want make cmd for admins and for helpers, but i want when use helper this cmd, send message to all:

Код:
format(string, sizeof(string),"[SERVER]: "COL_WHITE"Helper %s is cleared chat.", sendername);
i dont want:

Код:
format(string, sizeof(string),"[SERVER]: "COL_WHITE"Admin %s is cleared chat.", sendername);
because ,she not admin. is helper.


SORRY FOR MY BAD ENGLISH
Код:
CMD:cc(playerid, params[])
{

    if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_RED, "[GRESKA]: "COL_WHITE"Nemas prava za koristenje ove komande.");
	else
	{
	    new string[248], sendername[MAX_PLAYER_NAME];
	    GetPlayerName(playerid, sendername, sizeof(sendername));
	    
		ClearChatboxToAll(playerid,100);
		
		format(string, sizeof(string),""COL_WHITE"Admin %s is cleared chat.", sendername);
		SendClientMessageToAll(COLOR_ORANGE,string);
		
		SendClientMessage(playerid, COLOR_RED, "[SERVER]: You are cleaned chat");
	}
	return 1;
}
Reply


Messages In This Thread
Dual working cmd. - by TiXz0r - 04.03.2015, 14:09
Re: Dual working cmd. - by CalvinC - 04.03.2015, 14:18
Re: Dual working cmd. - by TiXz0r - 04.03.2015, 14:31
Re: Dual working cmd. - by CalvinC - 04.03.2015, 14:35
Re: Dual working cmd. - by TiXz0r - 04.03.2015, 14:39
Re: Dual working cmd. - by CalvinC - 04.03.2015, 14:41

Forum Jump:


Users browsing this thread: 2 Guest(s)