Making a command that displays a /me action.
#2

Код:
	if(!strcmp(cmdtext, "/me", true, 3)) //action use /me [action]
  	{
		if(!cmdtext[3])return SendClientMessage(playerid, 0xFF0000FF, "Use: /me [action]");
		new str[128];
		GetPlayerName(playerid, str, sizeof(str));
		format(str, sizeof(str), "%s %s", str, cmdtext[4]);
		SendClientMessageToAll(0xFFFF00AA, str);
		return 1;
	}
not tested

is this what u want ?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)