• Extinguish doesn't work on players?
    1 replies, posted
I'm using this code: [lua] function CLASS:OnDeath( pl, attacker, dmginfo ) if SERVER then pl:Extinguish() pl:GetActiveWeapon():Extinguish() end end[/lua] To extinguish the player every time he dies, and it simply doesn't fucking work. Ideas?
Try putting it onspawn instead. [lua] function CLASS:OnSpawn( pl ) if ( pl:IsOnFire() ) then pl:Extinguish(); end end [/lua] I use it in my own gamemode, works fine.
Sorry, you need to Log In to post a reply to this thread.