10.12.2010, 13:11
pawn Код:
//------------------------------------------------------------------------------
#define FILTERSCRIPT
#include <a_samp>
#if defined FILTERSCRIPT
#define COLOR_YELLOW 0xFFFF00AA
//------------------------------------------------------------------------------
public OnFilterScriptInit()
{
return 1;
}
//------------------------------------------------------------------------------
public OnFilterScriptExit()
{
return 1;
}
//------------------------------------------------------------------------------
#else
//------------------------------------------------------------------------------
#endif
//------------------------------------------------------------------------------
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/heal", cmdtext, true, 5) == 0)
{
SetPlayerHealth(playerid, 100);
SendClientMessage(playerid, COLOR_YELLOW, "(INFO) You have been healed!");
return 1;
}
if (strcmp("/kill", cmdtext, true, 5) == 0)
{
SetPlayerHealth(playerid, 0);
SendClientMessage(playerid, COLOR_YELLOW, "(INFO) You have commited suicide!");
return 1;
}
if (strcmp("/help", cmdtext, true, 5) == 0)
{
SendClientMessage(playerid, COLOR_YELLOW, "(INFO) Welcome to my Server's HELP command!");
return 1;
}
return 0;
}
//------------------------------------------------------------------------------
anyways a little explain, you just need to define that color you gonna use as
Код:
#define COLOR_YELLOW 0xFFFF00AA
No zcmd need it lol