[FilterScript] /News Command [Snippet]
#1

What is it ?

Its a news command so players on the server can see news from players.
Why I posted it ?

I posted the snippet to help beginner scripters that are making Roleplay servers. (Got requests on my ******* channel)
How to Install

Just Paste the snippet into your script and your ready.


|| Snippet ||



COLOR DEFINES / NEEDED

Код:
#define COLOR_GREY        0xAFAFAFAA
#define COLOR_SANTORANGE  0xFF6C3BAA
#define COLOR_WHITE 	  0xFFFFFFAA

CODE IT SELF

Код:
CMD:news(playerid, params[])
{
	if(PInfo[playerid][pJob] == 1)
	{
	    new ManName[MAX_PLAYER_NAME];
	    new string[128];
		GetPlayerName(playerid, ManName, sizeof(ManName));
		if(isnull(params)) return SendClientMessage(playerid, COLOR_LIGHTBLUE, "(USAGE): /news [message]");
		format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
		SendClientMessageToAll(COLOR_WHITE,string);
		format(string, sizeof(string), "SAN ANDREAS NEWS NETWORK UPDATE");
		SendClientMessageToAll(COLOR_SANTORANGE,string);
		format(string, sizeof(string), "%s: %s", ManName, params);
		SendClientMessageToAll(COLOR_GREY,string);
		format(string, sizeof(string), "-------------------------------------------------------------------------------------------------------------");
		SendClientMessageToAll(COLOR_WHITE,string);
	}
	return 1;
}
Reply


Messages In This Thread
/News Command [Snippet] - by GtasaPoliceModz - 02.04.2012, 16:46
Re: /News Command [Snippet] - by Marko Koprivanac - 02.04.2012, 20:28
Re: /News Command [Snippet] - by sjvt - 02.04.2012, 20:35
Re: /News Command [Snippet] - by Kingunit - 02.04.2012, 20:48
Re: /News Command [Snippet] - by ReneG - 06.04.2012, 02:33
Re: /News Command [Snippet] - by Kitten - 06.04.2012, 03:11
Re: /News Command [Snippet] - by tandytanz - 06.04.2012, 10:59

Forum Jump:


Users browsing this thread: 1 Guest(s)