Script help
#1

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:

Код:
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.");
So i'd like to add when the player has 100hp so he can't buy it.

Thank you.

my ingris skill
Reply


Messages In This Thread
Script help - by Ciyber - 26.11.2014, 17:53
Re: Script help - by AnthonyTimmers - 26.11.2014, 17:58
Re: Script help - by Raweresh - 26.11.2014, 17:58
Re: Script help - by AnthonyTimmers - 26.11.2014, 18:08
Re: Script help - by Raweresh - 26.11.2014, 18:14

Forum Jump:


Users browsing this thread: 1 Guest(s)