#3

With strcmp only:

pawn Код:
if(!strcmp(cmdtext, "/me", true, 3) && cmdtext[3] == ' ')
{
    if(strlen(cmdtext) == 4)
    {
        SendClientMessage(playerid, 0xFF0000FF, "USAGE: /me [action]");
        return 1;
    }
    new str[128];
    GetPlayerName(playerid, str, sizeof(str));
    format(str, sizeof(str), "* %s %s", str, cmdtext[4]);
    SendClientMessageToAll(GetPlayerColor(playerid), str);
    return 1;
}
Cheers!
Reply


Messages In This Thread
/me - by misho1 - 11.04.2011, 16:52
Re: /me - by xir - 11.04.2011, 17:01
Re: /me - by Jeffry - 11.04.2011, 17:05
Re: /me - by Alby Fire - 11.04.2011, 17:07
Re: /me - by xir - 11.04.2011, 17:09
Re: /me - by misho1 - 11.04.2011, 17:18
Re: /me - by Jeffry - 11.04.2011, 17:31

Forum Jump:


Users browsing this thread: 1 Guest(s)