Clearchat command?
#8

Like this
Код:
CMD:cc(pid, params[])
{
	#pragma unused params
        if(Playerinfo[pAdmin] == 0) return SCM(playerid,-1,"Only admins with level 1 or higher can use this command.");
        if(Playerinfo[pAdmin] < 3)
        {
	for(new cc = 0; cc < 250; cc++)
	{
		SCMToAll(COLOR_WHITE, " ");
	}

	new name[MAX_PLAYER_NAME + 1];
	GetPlayerName(playerid, name, sizeof(name));
	format(string, sizeof(string), "The chat has been cleared by {FF0000}%s", name);
	SCMToAll(COLOR_WHITE, string);
        }
}
Reply


Messages In This Thread
Clearchat command? - by JXF - 27.05.2016, 17:59
Re: Clearchat command? - by Bojan_Babic - 27.05.2016, 18:00
Re: Clearchat command? - by AbyssMorgan - 27.05.2016, 18:01
Re: Clearchat command? - by Riddick94 - 27.05.2016, 18:05
Re: Clearchat command? - by JXF - 27.05.2016, 18:44
Re: Clearchat command? - by Noris - 27.05.2016, 19:01
Re: Clearchat command? - by jlalt - 27.05.2016, 19:06
Re: Clearchat command? - by Problems - 27.05.2016, 19:07
Re: Clearchat command? - by PrO.GameR - 27.05.2016, 19:37
Re: Clearchat command? - by JXF - 27.05.2016, 19:54

Forum Jump:


Users browsing this thread: 1 Guest(s)