All pastes #620702 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-07-15 18:07 UTC
rendered paste body
	if(strcmp(cmd,"/notice", true) == 0)
 	{
		if(!IsPlayerAdmin(playerid))
		{
			SendClientMessageToAll(COLOR_RED, "You must be an administrator to use this command!");
			return 1;
		}
		new TextArguments[256];
 		new tmpstr[256];
		new space = strfind(cmdtext, " ");
		if (space)
		{
			strmid(TextArguments, cmdtext, space+1,strlen(cmdtext));
			format(tmpstr, sizeof(tmpstr), "SMS: %s", TextArguments);
			SendClientMessageToAll(COLOR_YELLOW, tmpstr);
		}
		else
		{
			SendClientMessage(playerid, COLOR_RED, "USAGE: /notice <message>");
		}
		return 1;
      }