Is there a plugin that prevents players from sleeping in safe zones?
Preventing sleeping in safe zones?
Maybe throw up a zone with https://umod.org/plugins/zone-manager, make it's radius around 90 meters, and toggle:
ejectsleepers - true/false - Players will be moved out of the zone when they go to sleep (This flag will not affect admins)
Would be an idea. But I really don't wanna do this every map wipe on all safe zones manually.
That's why I'm looking for a plugin that does that.
That's why I'm looking for a plugin that does that.
i dont know about plugin . but chalange accepted...
you could use code :
you could use code :
void OnPlayerDisconnected(BasePlayer player, string reason)
{
if (player.currentSafeLevel == 1)
{
player.IPlayer.Teleport(player.IPlayer.Position().X = 250, player.IPlayer.Position().Y + 10, player.IPlayer.Position().Z);
}
}but the chances of being tp'd outside of map boudries ( below map if mountain is nearby) is big
im looking at ways to detect ground level will try to keep you posted
KleementinWould be an idea. But I really don't wanna do this every map wipe on all safe zones manually.
That's why I'm looking for a plugin that does that.
https://umod.org/plugins/zone-manager-auto-zones does it for you everywipe
but he has not setup adding flags per monument so watch the post maby soon @RyanFromRust idea could work seamlessly
NooBlet
i dont know about plugin . but chalange accepted...
you could use code :void OnPlayerDisconnected(BasePlayer player, string reason) { if (player.currentSafeLevel == 1) { player.IPlayer.Teleport(player.IPlayer.Position().X = 250, player.IPlayer.Position().Y + 10, player.IPlayer.Position().Z); } }but the chances of being tp'd outside of map boudries ( below map if mountain is nearby) is big
im looking at ways to detect ground level will try to keep you posted
It's fairly easy to get ground height - HeightMap.GetHeight(Vector3)
Even more simpler idea. Just kill people inside safe zone and drop their loot after 10 mins sleeping
Ok this seems to be working . ive added a plugin waiting for aprovel then im post link @Kleementin
This really sound interesting. :)
there you go
https://umod.org/plugins/no-safe-zone-sleepers
https://umod.org/plugins/no-safe-zone-sleepers
Very nice. :)