04-21-2008, 06:36 PM
[me=Dimplex]command
[/me]
[/me]Code:
if(!strcmp(cmdtext, "/me", true, 3)) // 3 is the length of /me
{
if(cmdtext[3] == 0) {
SendClientMessage(playerid, 0xFF0000FF, "USAGE: /me [action]");
return 1;
}
new str[128];
new Mecolor;
Mecolor = GetPlayerColor(playerid);
GetPlayerName(playerid, str, sizeof(str));
format(str, sizeof(str), "* %s %s", str, cmdtext[4]);
SendClientMessageToAll(Mecolor, str);
return 1;
}