[HELP NEEDED] I want to know how to make commands like /me
#4

Enter that under OnPlayerCommandText public:

Код:
if(!strcmp(cmdtext, "/me", true, 3)) // 3 is the length of /me
	{
	  if(!cmdtext[3]) return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /me [action]");
    new string[128], name[16];
	  GetPlayerName(playerid, name, sizeof(name));
	  format(string, 128, "*** %s %s", name, cmdtext[4]);
	  SendClientMessageToAll(COLOR_LIGHTGREEN, string);
	  return 1;
And define this at top of the gamemode:

Код:
#define COLOR_LIGHTGREEN 0x00F400FF
Hope I helped and it works
Regards
Puzi
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)