/me command
#2

Hey, I just made one for you! Change the colour if you want:


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;
}
Hope I could help!
Reply


Messages In This Thread
/me command - by Hand-Scripter - 02.03.2012, 08:57
Re: /me command - by Twisted_Insane - 02.03.2012, 08:59
Re: /me command - by Hand-Scripter - 02.03.2012, 09:02
Re: /me command - by Twisted_Insane - 02.03.2012, 09:06
Re: /me command - by Hand-Scripter - 02.03.2012, 09:10
Re: /me command - by ShOoBy - 02.03.2012, 09:10
Re: /me command - by Twisted_Insane - 02.03.2012, 09:11
Re: /me command - by Hand-Scripter - 02.03.2012, 09:19
Re: /me command - by ShOoBy - 02.03.2012, 09:21
Re: /me command - by Walsh - 02.03.2012, 12:26

Forum Jump:


Users browsing this thread: 1 Guest(s)