25.04.2010, 23:24
Here's the /me command:
Just make "COLOR_WHITE" to the color you want everyone to see it in.
pawn Код:
if(strcmp(cmdtext,"/me",true)==0)
{
new pName[MAX_PLAYER_NAME];
tmp = strtok(cmdtext,idx);
if(!strlen(tmp)) return SendClientMessage(playerid,COLOR_WHITE,"USAGE: /me [action]");
if(IsPlayerConnected(playerid))
{
GetPlayerName(playerid,pName,sizeof(pName));
format(string,sizeof(string),"%s %s",pName,cmdtext[7]);
SendClientMessageToAll(COLOR_WHITE,string);
}
return 1;
}