Announcement CMD
#1

Who can make a /announce for me?

It should appear like this:

COLOR_YELLOW Admin <placenamehere(if possible)> announces: <TXT>

And make it so that only level 3 can use it(and above of course)
Also give me the FULL pawn code(via PM if you don't want it public to everyone else)
So that includes OnFilterScriptInit etc..

Because I have had a headache from struggling with this crap!
2 REP to the one who figures it out.
Reply
#2

Zcmd?
Reply
#3

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;
}
Reply
#4

you have 9 post you cant give rep you need 50 post(but do not spamm for them) + you can give only 1 rep
Reply
#5

Edit: Late
Reply
#6

@Doreto I will make it once to 50 posts, and 1 rep, I know, but I do it a second time..

@Twisted_insane I tried yours already, and you said: "SendClientMessages are boring" you just did the same..
2nd: If I ask for something else, you shouldn't tell me it's boring, because it's the way I just want it..
Oh and even more, I asked for the FULL pawn code, so from #define FILTERSCRIPT till #endif, not the COMMAND:ann only.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)