Please?
Block /rwarp if building blockedSuggestion
You might be able to already by using https://umod.org/plugins/no-escape
Thanks for the reply, Wulf. That does work, if they are raid or combat blocked. We are after players not being able to rwarp or tp out by any means if they are building blocked. NTeleport has that built in, but players have figured out they can still Rwarp.
In response to Hutchew ():Thanks for the reply, Wulf. That does work, if they are raid or combat blocked. We are after players...
This plugin supports No Escape by calling out to a CanTeleport hook, so it should work just fine for that as long as you have those permissions assigned.
noescape.raid.tpblock and noescape.combat.tpblock I guess I'm dense. Tested, and still can rwarp out if building blocked. those perms are set for default and admin as well (for testing). Raidblock and CombatBlock work as intended with /rwarp, /tp and /home. But if not raid/combatblocked, player can still rwarp out, even if building blocked. What exactly am I missing here?
Merged post
From Version 1.0.2 upgrade docs on oxide:
I simply need Randomwarps to check if "CanTeleport" is "true", and if so, allow the tp, and if "false", then block it.
Currently, it allows the rwarp regardless of any condition (building block, damage, cold, hunger, ect) with the exception of noescape using /rwarp in the blocked commands (in noescape).
This is such a simple plugin compared to others. Sure seems it would be easy to add what I need here:
if ((bool) (Interface.CallHook("IsPrisoner", player) ?? false)) tried changing "IsPrisoner" to "CanTeleport"- No Joy :(
{
SendChatMessage(player, "You may not teleport while in jail!");
return;
}
object canTeleport = Interface.CallHook("CanTeleport", player); I think what i'm looking for is right here, but......... Clueless :(
if (canTeleport is string)
{
SendChatMessage(player, (string)canTeleport);
return;
}
Any help or guidance surely appreciated.
TIA
Merged post
From Version 1.0.2 upgrade docs on oxide:
- Added CanTeleport check for other plugins (Zone Manager, Raid Block etc.)
I simply need Randomwarps to check if "CanTeleport" is "true", and if so, allow the tp, and if "false", then block it.
Currently, it allows the rwarp regardless of any condition (building block, damage, cold, hunger, ect) with the exception of noescape using /rwarp in the blocked commands (in noescape).
This is such a simple plugin compared to others. Sure seems it would be easy to add what I need here:
if ((bool) (Interface.CallHook("IsPrisoner", player) ?? false)) tried changing "IsPrisoner" to "CanTeleport"- No Joy :(
{
SendChatMessage(player, "You may not teleport while in jail!");
return;
}
object canTeleport = Interface.CallHook("CanTeleport", player); I think what i'm looking for is right here, but......... Clueless :(
if (canTeleport is string)
{
SendChatMessage(player, (string)canTeleport);
return;
}
Any help or guidance surely appreciated.
TIA
It may be that the plugin is checking for the wrong reply, should check if the CanTeleport result is anything other than null.
object canTeleport = Interface.CallHook("CanTeleport", player);
if (canTeleport != null)
{
SendChatMessage(player, "You cannot teleport!");
return;
} Thanks for the idea, but that didnt work either. doesnt do anything as far as I could tell, though does load fine with no errors.
Merged post
@Wulf, @LaserHydra
I've wasted hours trying to fix this on my own. I'll pay $20 to the first person who fixes this to block rwarp if canTeleport is false (So if building blocked, hurt, wounded, hungry, etc. cannot rwarp)
TIA
Merged post
CLAIMED BY @Ryan
THANKS DUDE!!!
Merged post
@Wulf, @LaserHydra
I've wasted hours trying to fix this on my own. I'll pay $20 to the first person who fixes this to block rwarp if canTeleport is false (So if building blocked, hurt, wounded, hungry, etc. cannot rwarp)
TIA
Merged post
CLAIMED BY @Ryan
THANKS DUDE!!!