addEventHandler("onClientGUIClick",heal,
function ()
health = getElementHealth()
walo=getPlayerMoney()
if (walo<=3000) and (health<=100) then
outputChatBox("you Don't have enough money",200,0,0)
return
end
if (health>=100) and (walo>=3000) then
outputChatBox("your health is already full",30,200,0)
return
end
if (walo>=3000) and (health<=100) then
setElementHealth(root,20)
takePlayerMoney(3000)
outputChatBox("you have bought medicine",20,30,200)
end
end)
??