15.06.2009, 08:15
I don't know how you use commands, but I use them this way.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/heal", cmdtext, true) == 0)
{
SetPlayerHealth(playerid, 100.0);
SendClientMessage(playerid, COLOR_GREEN, " You've been healed.");
return 1;
}
return 0;
}