/me Command
#2

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/me", true, 3)) // 3 is the length of /me
    {
        if(!cmdtext[3])return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /me [action]");
        new str[128];
        GetPlayerName(playerid, str, sizeof(str));
        format(str, sizeof(str), "* %s %s", str, cmdtext[4]);
        SendClientMessageToAll(0xFFFF00AA, str);
        return 1;
    }
    return 0;
Credits to wiki.
Reply


Messages In This Thread
/me Command - by wheelman_WM - 20.03.2011, 14:51
Re: /me Command - by Markx - 20.03.2011, 14:56
Re: /me Command - by Kwarde - 20.03.2011, 14:56

Forum Jump:


Users browsing this thread: 1 Guest(s)