Help for announce command
#2

if you have included zcmd, why don't you use it?
pawn Код:
//Announcer script by Seven_of_Nine :]
COMMAND:announce(playerid,params[]) {
    new
        poster[40],
        mess[128];
    sscanf(params,"s",mess);
    if(PlayerInfo[playerid][pAdminLevel] >= 3) {
        if(!isnull(mess)) {
            new text[128];
            GetPlayerName(playerid,poster,sizeof(poster));
            format(text,sizeof(text),"[Announce] | Administrator \"%s\" has announced his message. (%s)",poster,mess);
            SendClientMessageToAll(COLOR_LIGHTBLUE,text);
            GameTextForAll(mess,5000,3);
        } else {
            return SendClientMessage(playerid,red,"USAGE: /announce [message], and all players will see this message on-screen.");
        }
    } else {
        return SendClientMessage(playerid,red,"Only lvl3 admins can use this command. Looking for a way to announce? Try /message!");
    }
    return 1;
}
btw you should search for it first after ask. same topic opened about 1 hour ago.
Reply


Messages In This Thread
Help for announce command - by mitchboy - 14.04.2011, 13:57
Re: Help for announce command - by Seven_of_Nine - 14.04.2011, 14:06
Re: Help for announce command - by Sascha - 14.04.2011, 14:59
Re: Help for announce command - by HyperZ - 14.04.2011, 15:14

Forum Jump:


Users browsing this thread: 1 Guest(s)