Poftim comanda facuta pe ZCMD: COMMAND:announce(playerid, params[]) // by Kostas'
{
new text[64], time, style;
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Doar administratorul RCON poate folosi aceasta comanda!");
else if (sscanf(params, "iis[64]", style, time, text)) return SendClientMessage(playerid, -1, "/announce [0-6] <timp in ms> <text>");
else if (strlen(text) > 64) return SendClientMessage(playerid, -1, "Mesaj prea lung!");
else if(style == 2) return SendClientMessage(playerid, -1, "Bug cu style 2! Nu il folosi!");
else if (style < 0 || style > 6) return SendClientMessage(playerid, -1,"Style invalid.");
else if (time > 20*1000) return SendClientMessage(playerid, -1, "Sa nu fie mai lung de 20 secunde.");
else {
GameTextForAll(text, time, style);
}
return 1;
}