28.04.2012, 16:18
An announcement with "SendClientMessages" is too bored, try this out:
pawn Код:
CMD:ann(playerid,params[])
{
if(PlayerInfo[playerid][pAdmin] >= 2) //change this to your own admin-variable
{
new Announce[50];
if(!sscanf(params, "s[50]",Announce))
{
GameTextForAll(Announce,5000,3);
}
else SendClientMessage(playerid,COLOR_YELLOW,"USAGE: /ann <text>");
}
else SendClientMessage(playerid,COLOR_RED,"ERROR: You must be level 1 to use this command!");
return 1;
}