Code:
dcmd_ann(playerid, params[])
{
new pName[24], style, atext;
if(Player[playerid][admin] < 2) return SendClientMessage(playerid,COLOR_RED,"You Dont Have Right To Use This Command");
GetPlayerName(playerid, pName, sizeof(pName));
if(sscanf(params,"ds",style, atext)){
return SendClientMessage(playerid,COLOR_RED,"Usage: /ann [style] [text]");
}
GameTextForAll(params, 3000, 6);
GameTextForAll(params, 3000, 5);
GameTextForAll(params, 3000, 4);
GameTextForAll(params, 3000, 3);
GameTextForAll(params, 3000, 2);
GameTextForAll(params, 3000, 1);
return 1;
}