Jim_Tawer
Умник
Как сделать,что бы после анимки - аптечка убралась из рук.
PHP:
CMD:healme(playerid)
{
if(!GetPVarInt(playerid, "pHealing")) return SendClientMessage(playerid, COLOR_GRAD2, "У Вас нет аптечки");
new Float:health;
GetPlayerHealth(playerid,health);
SetPlayerHealth(playerid,(health+60 > 100.0 ? (100.0) : (health+60)));
ClearAnimations(playerid);
SetPlayerChatBubble(playerid,"+60 HP",COLOR_YELLOW,20.0,10000);
ApplyAnimation(playerid,"ped","gum_eat",4.0,0,0,0,0,0,1);
SetPlayerAttachedObject(playerid, 2, 11736, 5, 0.177999, 0.071000, -0.015999, -111.899986, -10.900001, 91.700004, 1.000000, 1.000000, 1.000000, 0, 0);
SetTimer("HealmeOff", 2000, false);
SetPVarInt(playerid, "heal_me",GetPVarInt(playerid, "heal_me") + 1);
if(GetPVarInt(playerid, "heal_me") >= 2) return DeletePVar(playerid, "pHealing"),DeletePVar(playerid, "heal_me");
return 1;
}
