03.03.2009, 05:27
There you go:
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
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;
}
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