command /me (easy help)
#1

I want a /me like

Username goes to bar and grabs something to eat while he sp..
..eaks to the barman ((Username))

Код:
SendCustomPlayerMessage(playerid, color, text[])
{
    if(strlen(text) > 112)
    {
        new text1[112],
            text2[112],
            pos = strfind(text," "false,102)
			string[224];

        strmid(text1, text, 0, pos);
        strmid(text2, text, pos, strlen(text));

        format(string, sizeof(string), "%s...", text1);
        SendClientMessage(playerid, color, string);

        format(string, sizeof(string), "...%s", text2);
        SendClientMessage(playerid, color, string);
    }
    else SendClientMessage(playerid, color, text);
}

CMD:me(playerid, params[])
{
    new string[128], action[128];
    if(sscanf(params, "s[128]", action))
    {
        SendClientMessage(playerid, -1, ""chat" /me [action]");
        return 1;
    }
    else
    {
        format(string, sizeof(string), "* %s %s", PlayerName(playerid), action);
        ProxDetector(30, playerid, string, COLOR_PURPLE);
    }
    return 1;
}
This is my code, but doesn't work.
Reply


Messages In This Thread
command /me (easy help) - by Zeus666 - 02.07.2016, 19:28
Re: command /me (easy help) - by oktokt1 - 02.07.2016, 22:32
Re: command /me (easy help) - by Zeus666 - 02.07.2016, 22:37
Re: command /me (easy help) - by oktokt1 - 02.07.2016, 22:49
Re: command /me (easy help) - by Dayrion - 02.07.2016, 23:05
Re: command /me (easy help) - by Golimad - 02.07.2016, 23:22
Re: command /me (easy help) - by Zeus666 - 03.07.2016, 07:34
Re: command /me (easy help) - by Dice_ - 03.07.2016, 07:42
Re: command /me (easy help) - by JohnBlaze1971 - 03.07.2016, 07:48
Re: command /me (easy help) - by Zeus666 - 03.07.2016, 07:51

Forum Jump:


Users browsing this thread: 1 Guest(s)