Tester & admin chat
#9

Код:
SendMessageToAllTesters(string2[], color)
{
	foreach(Player, i)
	{
		if(pInfo[i][Tester] < 1 || pInfo[i][pAdminLevel] < 1)
		{
			SendClientMessage(i, color, string2);
		}
	}
}
CMD:tchat(playerid, params[])
{
	if(pInfo[playerid][Tester] == 0)
	     if(pInfo[playerid][pAdminLevel] == 0)
					 return SendClientMessage(playerid,-1,""COL_RED"EROARE: You are not admin or tester!");

		new msg[128];
		new Testerstring[257];
		if(sscanf(params, "s[128]", msg)) return SendClientMessage(playerid, -1, ""COL_RED"TesterCmd: /tchat [Text]");
		format(Testerstring, sizeof(Testerstring), ""COL_GREEN"[Tester Chat] %s %s[%d]: %s",GetTesterName(playerid),PlayerName(playerid), playerid, msg);
    	SendMessageToAllTesters(Testerstring, -1);
	    return 1;
}
try this , Editted!
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: 1 Guest(s)