so , i have checked it and here what i did
function healer(playerSource)
if isTimer (wlaa ) then
cancelEvent(healer)
else
money=getPlayerMoney ( playerSource )
if money<3000 then
outputChatBox ("Server : You Don't have enough money",playerSource ,255,0,0)
return
else
takePlayerMoney ( playerSource , 3000 )
setElementHealth ( playerSource , getElementHealth ( playerSource )+100 )
outputChatBox ("You Got 100 HP" , playerSource, 21 , 241 , 32 , true )
setTimer(healer,300,3)
end
end
end
addCommandHandler ( "hp", healer )
addEvent ("onPlayerDamage",playerSource,
function (playerSource) setTimer (healer)
end)
and its not working and i have no idea what i did