11.07.2012, 14:50
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/healme", cmdtext, true, 7) == 0) // string count for /healme is 7 not 10
{
SetPlayerArmour(playerid, 50);
SetPlayerHealth(playerid, 50);
SendClientMessage(playerid, COLOR_PINK, "You've refilled your Armour, and health. Goodluck!");
return 1;
}
return 1;
}