All pastes #620743 Raw Edit

Untitled

public text v1 · immutable
·published 2007-07-15 18:43 UTC
rendered paste body
		if(strcmp(cmd,"/gamenotice", true) == 0)
	{
		if(!IsPlayerAdmin(playerid))
		{
			SendClientMessage(playerid, COLOR_RED, "You must be admin to use this command.");
			return 1;
		}
			new TextArguments[256];
			new tmpstr[256];
			new name[24];
			new string[256];
			new message[256];
			new space = strfind(cmdtext, " ");
			if (space)
			{
			GetPlayerName(playerid, name, 24);
			strmid(TextArguments, cmdtext, space+1,strlen(cmdtext));
			format(string, 256, "%s: %s", name, message);
			GameTextForAll(tmpstr, 5000, 3);
			}
			else
			{
			SendClientMessage(playerid, COLOR_RED, "USAGE: /gamenotice <message>.");
			}
			return 1;

            }