/gov help
#1

This is my /gov command
Код:
CMD:gov(playerid, params[]) {

	new
		string[128];

	if(isnull(params)) SendClientMessage(playerid, COLOR_GREY, SYNTAX_MESSAGE"/gov [message]");

	else if((groupVariables[playerVariables[playerid][pGroup]][gGroupType] == 1 || groupVariables[playerVariables[playerid][pGroup]][gGroupType] == 2) && playerVariables[playerid][pGroupRank] > 4)
	{
		format(string, sizeof(string), "------ Government Announcement (%s) ------", groupVariables[playerVariables[playerid][pGroup]][gGroupName]);
		SendClientMessageToAll(COLOR_TEAL, string);

		GetPlayerName(playerid, szPlayerName, MAX_PLAYER_NAME);
		switch(playerVariables[playerid][pGroupRank]) {
			case 5: format(string, sizeof(string), "* %s %s: %s", groupVariables[playerVariables[playerid][pGroup]][gGroupRankName5], szPlayerName, params);
			case 6: format(string, sizeof(string), "* %s %s: %s", groupVariables[playerVariables[playerid][pGroup]][gGroupRankName6], szPlayerName, params);
		}
		SendClientMessageToAll(COLOR_WHITE, string);
		format(string, sizeof(string), "------ Government Announcement (%s) ------", groupVariables[playerVariables[playerid][pGroup]][gGroupName]);
		SendClientMessageToAll(COLOR_TEAL, string);
 }
	return 1;
}
When you do /gov [Message] It will come up out like this:
------ Government Announcement (%s) ------
*NAME* *TEXT*
------ Government Announcement (%s) ------

How would I make it where you could do:
/Gov start:
------ Government Announcement (%s) ------
*TEXT*
*TEXT*
*AS MANY TIMES AS YOU WANT* (and it will go thru the whole server)
then when you do /endgov or something like that:
------ Government Announcement (%s) ------ << will show up and you can speak normally again?
Reply


Messages In This Thread
/gov help - by Jordiee - 24.11.2011, 13:07
Re: /gov help - by Kayaque - 24.11.2011, 13:17
Re: /gov help - by Jordiee - 24.11.2011, 14:21
Re: /gov help - by Smally - 24.11.2011, 14:51
Re: /gov help - by Jordiee - 24.11.2011, 15:03
Re: /gov help - by Kayaque - 24.11.2011, 16:08
Re: /gov help - by Jordiee - 24.11.2011, 16:21

Forum Jump:


Users browsing this thread: 2 Guest(s)