1. Hello,


    I try this code (in lua), but that doesn't work...
    The goal is to respawn directly from death.
    Code:
    function PLUGIN:OnEntityDeath(entity)
        local player = entity:ToPlayer()
        if player:IsConnected() then
            player:Respawn();
        end
    end
    Could have some help please ?
     
  2. Wulf

    Wulf Community Admin

  3. Thanks a lot,
    But I think the "Respawner plugins" dont work anymore. It's has a timer issue.

    And, when I try the code like the "Respawner plugins" without timer, I got issues because of this -> player:Respawn(arg);
     
  4. Wulf

    Wulf Community Admin

    I'm not sure then. I'm sure I need to update my plugins as well, probably re-write it as well.
     
  5. Will work on it.
    I 'll let you know if I find something.

    But i'm sure the "Respawner plugins" doesn't work.
     
  6. you are calling it wrong
     
  7. That may true...

    What is the good way to do it ?
     
  8. sorry i dont know lua ,
    check if entity is BasePlayer then use it with respawn