local playerTimers = { }
function pescar ( thePlayer )
local randpos = math.random ( 1, 9 )
if ( randpos == 2 or randpos == 7 or randpos == 8 or randpos == 9 ) then
setElementHealth ( thePlayer, 100 )
else
if ( isTimer ( playerTimers [ thePlayer ] ) ) then
killTimer ( playerTimers [ thePlayer ] )
end
playerTimers [ thePlayer ] = setTimer ( setElementData, thePlayer, 1000, 10, "contador", tonumber ( getElementData ( thePlayer, "contador" ) ) or 0 + 1 )
end
end
addEventHandler ( "onMarkerHit", pescado, pescar )