I´ve made this function to ignite all players for 20 seconds. But it doesn´t work. Here is the Code:
[lua] function ignite()
for w, u in pairs(player.GetAll()) do
if u:IsPlayer() and u:Alive() then
u:Ignite( 20 )
end
end
end [/lua]
I cannot see the mistake.