10.07.2009, 19:56
pawn Код:
if(!strcmp("/me", cmdtext, true))
{
new str[218],name[24]; // creating variables: str and name for the text-string and the name of the player
GetPlayerName(playerid, name, 24); // getting the playername and storing it in the variable name
format(str, 218, "%s: %s", name, cmdtext[3]); // formatting the string with the name and the message behind the command /me
SendClientMessageToAll(0xFF0000AA, str); // sending the text
return 1;
}