pawn Code:
COMMAND:a(playerid,params[])
{
if(PlayerAcc[playerid][AdminLevel] >= 1) //replace THIS WITH YOUR own admin variable of your enum
{
new Announce[50];
if(sscanf(params, "s[50]",Announce)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /asay [message]");
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid,pname,sizeof(pname));
new astring[256];
format(astring,sizeof(astring),"* Admin %s(%d): %s",pname,playerid,Announce);
SendClientMessageToAll(ANNOUNCEMENT,astring);
}
else SendClientMessage(playerid,red,"ERROR: You must be an Admin level 1 or higher to perform this command!");
return 1;
}
If your IQ is above 20, then everything should work...