[Code request] /me command
#3

Try this one
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, COLOR_LIGHTBLUE, "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,ACTION_COLOR,30.0,10000);
    SendClientMessageToAll(NICE_PINK,metext);
    return 1;
}
Reply


Messages In This Thread
[Code request] /me command - by Songason - 18.07.2012, 16:00
Re: [Code request] /me command - by Gangster-rocks - 18.07.2012, 16:04
Re: [Code request] /me command - by God'Z War - 18.07.2012, 16:05
Re: [Code request] /me command - by Dan. - 18.07.2012, 16:06
Re: [Code request] /me command - by Cxnnor - 18.07.2012, 16:17
Re: [Code request] /me command - by Songason - 18.07.2012, 16:32
Re: [Code request] /me command - by Captain_Mani - 18.07.2012, 16:42
Re: [Code request] /me command - by Songason - 18.07.2012, 16:51
Re: [Code request] /me command - by mamorunl - 18.07.2012, 16:54
Re: [Code request] /me command - by Songason - 18.07.2012, 17:04

Forum Jump:


Users browsing this thread: 1 Guest(s)