13.10.2018, 13:52
Код:
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; }