i need the /me comand lol
#2

There you go:

pawn Код:
#include <a_samp>

#define SOME_COLOR 0x
#define SOME_COLOR2 0x
#define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1

dcmd_me(playerid, params[])
{
    #pragma unused params

    if(!strlen(params))
      return SendClientMessage(playerid, SOME_COLOR, "[USAGE]: /me ACTION");

    new name[24], string[128];

    GetPlayerName(playerid, name, 24);
    format(string, 128, "* %s %s", name, params);
    return SendClientMessageToAll(SOME_COLOR2, string);
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    dcmd(me, 2, cmdtext);
    return 0;
}
Replace the colors with your needs.
I use red and dodger Blue.

Red for the usage text.
Dodger blue for the action.

Get a lot of colors from here http://www.free-webmaster-tools.com/colorpicker.htm
Reply


Messages In This Thread
i need the /me comand lol - by Drift_04 - 03.03.2009, 05:12
Re: i need the /me comand lol - by TheAngel105 - 03.03.2009, 05:27
Re: i need the /me comand lol - by MenaceX^ - 03.03.2009, 08:11
Re: i need the /me comand lol - by Rks25 - 03.03.2009, 13:23
Re: i need the /me comand lol - by Nero_3D - 03.03.2009, 13:45
Re: i need the /me comand lol - by Drift_04 - 03.03.2009, 22:55

Forum Jump:


Users browsing this thread: 1 Guest(s)