22.08.2013, 10:00
Work or not?
Sorry for asking this stupid question.I cant open my gtasa to test this script.
pawn Код:
CMD:heal(playerid,o[])
{
new str[20],Float:HP;
GetPlayerHealth(playerid,HP);
if (HP > 90.0)
SendClientMessage(playerid, RED, "You can't use this command | Reason: Your HP above 90.0");
{
if (GetPlayerMoney(playerid) <= 500) return SendClientMessage(playerid, RED, #CASH_ERROR);
{
SetPlayerHealth(playerid, 0.0);
SendClientMessage(playerid, RED, "You have killed yourself");
GetPlayerName(playerid,pname, sizeof(pname));
format(str,sizeof(str), "%s was death | Reason: Own kill using [/kill]", pname);
SendClientMessageToAll(RED, str);
return 1;
}
}
}