26.08.2012, 09:29
Quote:
pawn Code:
CMD:ann(playerid,params[])
{
if(PlayerInfo[playerid][AdminLevel] >= 2)
{
if(IsPlayerConnected(playerid))
{
new Announce[50];
if(!sscanf(params, "s[50]",Announce))
{
GameTextForAll(Announce,5000,3);
}
else SendClientMessage(playerid,COLOR_YELLOW,"USAGE: /ann <text>");
}
else SendClientMessage(playerid,red,"ERROR: You must be logged in to use this command!");
}
else SendClientMessage(playerid,red,"ERROR: You must be an Admin level 2 or higher to perform this command!");
return 1;
}