Tester & admin chat
#4

Код:
SendMessageToAllTesters(color, string2[])
{
	foreach(Player, i)
	{
		if(pInfo[playerid][Tester] >= 1 || pInfo[playerid][pAdminLevel] >= 1)
			{
				SendClientMessage(i, color, string2);
			}
	}
	return 1;
}
CMD:tchat(playerid, params[])
{
	if(pInfo[playerid][Tester] >= 1 || pInfo[playerid][pAdminLevel] >= 1)
	{
		new msg[128];
		new Testerstring[257];
		if(!sscanf(params, "s[128]", msg))
		{
			format(Testerstring, sizeof(Testerstring), ""COL_GREEN"[Tester Chat] %s %s[%d]: %s",GetTesterName(playerid),PlayerName(playerid), playerid, params);
        	SendMessageToAllTesters(Testerstring, -1);
		}
		else
		{
			SendClientMessage(playerid, -1, ""COL_RED"TesterCmd: /tchat [Text]");
		}
	}
	else SendClientMessage(playerid,-1,""COL_RED"EROARE: You are not admin or tester!");
	return 1;
}
Try this.
Reply


Messages In This Thread
Tester & admin chat - by Zeus666 - 13.10.2018, 12:15
Re: Tester & admin chat - by v1k1nG - 13.10.2018, 12:58
Re: Tester & admin chat - by Chyakka - 13.10.2018, 13:00
Re: Tester & admin chat - by ShadowMortar - 13.10.2018, 13:52
Re: Tester & admin chat - by Threshold - 14.10.2018, 01:29
Re: Tester & admin chat - by Calisthenics - 14.10.2018, 09:47
Re: Tester & admin chat - by Zeus666 - 14.10.2018, 10:16
Re: Tester & admin chat - by CaptainBoi - 14.10.2018, 12:42
Re: Tester & admin chat - by UFF - 14.10.2018, 12:44
Re: Tester & admin chat - by Boarden - 14.10.2018, 13:09

Forum Jump:


Users browsing this thread: 2 Guest(s)