Question about fire

Is there a way i can keep checking if a player is on fire then put it out?

But how do i keep checking if they’re on fire?

Think hook?

Example?

You could use a timer to check continuously:

[lua]
timer.Create( “FireExtinguisher”, 2, 0, function()
for k, v in pairs( players.GetAll() ) do
if v:IsOnFire() then
v:Extinguish()
end
end
end )
[/lua]

Or you could use the think hook:

[lua]
hook.Add( “Think”, “FireExtinguisher”, function()
for k, v in pairs( players.GetAll() ) do
if v:IsOnFire() then
v:Extinguish()
end
end
end )
[/lua]