10.12.2010, 12:04
(
Последний раз редактировалось vakhtang; 10.12.2010 в 12:15.
)
When I enter server command doesn't work
Here is Code:
I don't know why it doesn't work Everything is just fine and right
Here is Code:
pawn Код:
//------------------------------------------------------------------------------
#define FILTERSCRIPT
#include <a_samp>
#if defined FILTERSCRIPT
//------------------------------------------------------------------------------
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, 0xFFFF00AA, "(INFO) You have been healed!");
return 1;
}
if (strcmp("/kill", cmdtext, true, 5) == 0)
{
SetPlayerHealth(playerid, 0);
SendClientMessage(playerid, 0xFFFF00AA, "(INFO) You have commited suicide!");
return 1;
}
if (strcmp("/help", cmdtext, true, 5) == 0)
{
SendClientMessage(playerid, 0xFFFF00AA, "(INFO) Welcome to my Server's HELP command!");
return 1;
}
return 0;
}
//------------------------------------------------------------------------------