Announcement CMD - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Announcement CMD (
/showthread.php?tid=338005)
Announcement CMD -
Starfire - 28.04.2012
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.
Re: Announcement CMD -
Rudy_ - 28.04.2012
Zcmd?
Re: Announcement CMD -
Twisted_Insane - 28.04.2012
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;
}
Re: Announcement CMD -
doreto - 28.04.2012
you have 9 post you cant give rep you need 50 post(but do not spamm for them) + you can give only 1 rep
Re: Announcement CMD -
Rudy_ - 28.04.2012
Edit: Late
Re: Announcement CMD -
Starfire - 28.04.2012
@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.