27.10.2010, 01:59
Here is a simple /me command with zcmd. The reason i put it here, is because i had hell with it and finally got it to work.
pawn Code:
COMMAND:me(playerid, params[])
{
new id;
if(sscanf(params,"u", id))return SendClientMessage(playerid, 0xFF0000AA, "Usage: /me [message]");
{
new str[128];
new mename = GetPlayerName(playerid, str, sizeof(str));
format(str, sizeof(str), "%s %s.",mename,params);
SendClientMessageToAll(0xFFFFFFFF, str);
}
return 1;
}