/announce help
#9

Код:
	if(strcmp(cmd, "/announce", true) == 0 || strcmp(cmd, "/gov", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
	  {
			GetPlayerName(playerid, sendername, sizeof(sendername));
			new length = strlen(cmdtext);
			while ((idx < length) && (cmdtext[idx] <= ' '))
			{
				idx++;
			}
			new offset = idx;
			new result[64];
			while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
			{
				result[idx - offset] = cmdtext[idx];
				idx++;
			}
			result[idx - offset] = EOS;
			if(!strlen(result))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/gov)ernment [text]");
				return 1;
			}
			SendClientMessageToAll(ColorHere, "-|_________________ Announcement _________________|-");
			SendClientMessageToAll(ColorHere, "Message Here");
		}
		return 1;
	}
that should work
Reply


Messages In This Thread
/announce help - by GTA_Rules - 20.03.2009, 17:40
Re: /announce help - by Think - 20.03.2009, 18:27
Re: /announce help - by GTA_Rules - 20.03.2009, 18:29
Re: /announce help - by MenaceX^ - 20.03.2009, 18:44
Re: /announce help - by GTA_Rules - 20.03.2009, 19:35
Re: /announce help - by Rks25 - 20.03.2009, 22:19
Re: /announce help - by MenaceX^ - 20.03.2009, 22:28
Re: /announce help - by Nero_3D - 20.03.2009, 23:02
Re: /announce help - by Zack9764 - 21.03.2009, 00:13
Re: /announce help - by Rks25 - 21.03.2009, 10:25

Forum Jump:


Users browsing this thread: 2 Guest(s)