26.11.2014, 17:53
Hi there!
i've scripted some "mini shop" soo i need your help to tell me how can script when the player has full hp (100) so he can't buy it.
epxplain:
So i'd like to add when the player has 100hp so he can't buy it.
Thank you.
my ingris skill
i've scripted some "mini shop" soo i need your help to tell me how can script when the player has full hp (100) so he can't buy it.
epxplain:
Код:
if(GetPlayerMoney(playerid) < 1000) return SendClientMessage(playerid, 0x33FF00AA, "You don't have enough cash to buy this item."); GivePlayerMoney(playerid, -1000); SetPlayerHealth(playerid, 100); //heal SendClientMessage(playerid, 0x33FF00AA, "You have succesfully healed your self.");
Thank you.
my ingris skill