function healer( playerSource )
money = getPlayerMoney ( playerSource )
health = getElementHealth ( playerSource )
if money >= 3000 and health < 100 then
takePlayerMoney ( playerSource , 3000 )
setElementHealth ( playerSource , 100 )
outputChatBox ("You got 100 health" , playerSource, 21 , 241 , 32 , true )
elseif money >= 3000 and health >= 100 then
outputChatBox("Your health already: "..health,playerSource)
elseif money < 3000 then
outputChatBox("Your don't have enough money",playerSource)
end
end
addCommandHandler ( "hp", healer )