• Sit anywhere acting up
    5 replies, posted
so i have the sit anywhere script on my server and when someone disconnects everyone just gets kicked out of the sitting position and its really annoying since its a hogwarts rp server and people constantly sits in order to attend to classes etc. but i cant seem to find what causes the problem so far i thought of lua refresh on the server but na its disabled anyways so thats off the list im open to suggestions on how to track down the issue / solutions if someone came across the same problems before
Id suggest showing that to the sit anywhere creator
wish i could attract her attention but #nope xd
#gooddeveloper
i'm still looking fo a solution for this
dsit_-_sit_anywhere.zip this version was extraced from a workshop addon about 1 year ago, so no DLib if you know how to use the hook library, you can customize this with some of your own hooks hook.Add("CanSit","some_name",function(ply,trace,ent)--CanSit is called when a player tries to sit down --ply is the player who's tring to sit --trace is the trace result, see Trace result structure for more info --ent is the entity they are trying to sit on if ent==game.GetWorld() and trace.HitNormal.z<0.5 then return false,"the surface you are trying to sit on is too far off level" --return false to disallow sitting --you can also return false and a string to say why they can't sit end end) it's also possible to hook into GM/CanPlayerEnterVehicle hook.Add("CanPlayerEnterVehicle","arrested_no_sit",function(ply,vehicle,role) if ply and ply:IsValid() and ply:isArrested() then return false end end) arrested players cannot sit down
Sorry, you need to Log In to post a reply to this thread.