14.10.2018, 12:44
Код:
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; }