SA-MP Forums Archive
/me Command - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: /me Command (/showthread.php?tid=242721)



/me Command - wheelman_WM - 20.03.2011

Hey anyone give me /me command code Plz.


Re: /me Command - Markx - 20.03.2011

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.


Re: /me Command - Kwarde - 20.03.2011

http://forum.sa-mp.com/search.php
This question is asked about 34982304982396732847389473094839847438975948573904 82067298347928374309248410000394839483999309420384 098102 times before.