1. Some of my players are abusing an exploit by having a building plan and stone on them and placing a foundation quickly and upgrading it to stone along with a block and then they crouch in it making it impossible for other people to hit them unless they blow it up so they just tp home

    So maybe like if bullets hit them or close to them within a range of 10m then they would have X time in seconds of cooldown.

    So 30 secs and they cant do anything for 30 seconds. If they log out then they get instantly killed and it announces in that that they combat logged?

    I hope all this can be customized at the owners preference. Thanks. - OPrust owner
     
  2. That's possible
    like
    I think there are many ways to do it but i just gave u an example
    Code:
    function PLUGIN:OnEntityTakeDamage( entity, hitinfo )
    if entity:ToPlayer() then
    cancel teleport
    rust.SendChatMessage(entity, "You are in Combat")
    
    the line that says cancel teleport is just an example its not how it goes
     
  3. What about canceling building?
     
  4. Dunno i'm not a professional coder never heard of canceling building...
    It would be possible in Legacy to unbind...
     
    Last edited by a moderator: May 9, 2015
  5. @PaiN the teleport is actually cancelled on taking damage in the teleportation plugin. The problem is that they aren't getting hit in the OP's example because they build a foundation on top of themselves and hide in it.

    It would technically be possible to disable building for players when they're about to teleport, checking for combat near them however is not recommended. It's not impossible but it would require too much to be checked and would surely cause some lag, especially because it will have to check everything that happens, including every weapon that is fired which can get pretty high on a high populated server.
     
  6. Browsed through the plugins couldnt find anything that i was exactly looking for basically , take damage , no tp for x time. that goes for homes , tpr everything.
     
  7. You should request that in the Teleportation Plugin's Thread.