local Timers = { }
setTimer( function( )
for _,player in ipairs( getElementsByType( "player" ) ) do
if isElementInWater( player ) then
if not isTimer( Timers[player] ) then
setElementFrozen( player, true )
Timers[player] = setTimer( function( )
setElementFrozen( player, false )
Timers[player] = nil
end, 500, 1 )
end
end
end
end, 1000, 0 )