20.06.2012, 13:42
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/Kill", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid,0.0);
SendClientMessage(playerid, 0x000000FF, "You typed /kill there fore you are killed");
return 1;
}
return 0;
}
pawn Код:
{
if (strcmp("/Heal", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid,100);
SendClientMessage(playerid, 0x000000FF, "You typed /heal there fore your health has been set to 100.");
return 1;
}