/me command please
#2

pawn Код:
CMD:me(playerid, params[])
{
    new Message[128], sendername[MAX_PLAYER_NAME];
    new actiontext[MAX_CHATBUBBLE_LENGTH+1];
    new metext[MAX_CHATBUBBLE_LENGTH+1];
    if(sscanf(params,"s", Message)) return SendClientMessage(playerid,0xFFFFFFFF,"USAGE: /me [text]");
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(actiontext,MAX_CHATBUBBLE_LENGTH,"* %s", Message);
    format(metext,MAX_CHATBUBBLE_LENGTH,"* %s %s", sendername, Message);
    SetPlayerChatBubble(playerid,actiontext,0xFF9900FF,30.0,10000);
    SendClientMessageToAll(0xFFFFFFFF,metext);
    return 1;
}
Oh and btw, next time try to use "search". It's there for a reason.
EDIT: Also post it in Here . Not on this one
Reply


Messages In This Thread
/me command please - by James Coral - 25.01.2013, 07:43
Re: /me command please - by Neil. - 25.01.2013, 07:54
Re: /me command please - by antonio112 - 25.01.2013, 08:02
Re: /me command please - by Neil. - 25.01.2013, 08:06
Re: /me command please - by James Coral - 25.01.2013, 08:10
Re: /me command please - by James Coral - 25.01.2013, 08:14
Re: /me command please - by Private200 - 25.01.2013, 08:14
Re: /me command please - by antonio112 - 25.01.2013, 08:25
Re: /me command please - by ZayanImran - 25.01.2013, 08:36
Re: /me command please - by RajatPawar - 25.01.2013, 09:38

Forum Jump:


Users browsing this thread: 1 Guest(s)