Project Zomboid

Project Zomboid

127 ratings
Multiplayer Three Zones: PVE, PVPE, PVP
4
3
2
2
2
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
146.871 KB
Feb 26, 2023 @ 11:47am
Mar 15, 2023 @ 12:13pm
3 Change Notes ( view )

Subscribe to download
Multiplayer Three Zones: PVE, PVPE, PVP

In 1 collection by iBrRus
Tsar's Mods
35 items
Description
[patreon.com]

Description

There will now be 3 zones in multiplayer:
  • PVE - players cannot attack each other.
  • PVPE - players can attack each other only if both players have PVP mode enabled.
  • PVP - PVP mode is automatically enabled for all players.

Features

PVPE mode is enabled by default on the entire map.

A new item is available in the admin panel to create a PVP zone: "PVP Zone".

When adding a new PVP zone, a file yourservername_pvpzone.lua is created in the folder Zomboid\Lua on the server, it is needed to restore all zones after the server is wiped. Copy this file to your server configuration folder and immediately after wipe all zones will be restored.

Also, through the file yourservername_pvpzone.lua (located near the server configuration file) you can set zones using a text editor. An example of its syntax:
ServerPvpZoneList = { {title = "Zone #111", x = 11774, y = 6833, x2 = 11777, y2 = 6837}, {title = "Zone #222", x = 12724, y = 6733, x2 = 12777, y2 = 5837}, {title = "Zone #333", x = 14774, y = 3633, x2 = 7777, y2 = 4837} }
NOTE!!! The zones from yourervername_pvpzone.lua file will only be read and added to the server if no PVP zone is manually created (via admin panel). If you want to force update list of zones from this file, you need to remove all zones from list and restart server.

If you don't see the "PVP Zone" button in the admin panel, then you have another mod installed that isn't done correctly. You can call the PVP zone control panel at any time via debug commands:
local pvpzone = PVPE_ISPvpZonePanel:new(50,50,600,600, getPlayer()); pvpzone:initialise(); pvpzone:addToUIManager();



[boosty.to][pz.ibrrus.ru]
[discord.gg]



Version: 1.02
Workshop ID: 2939521600
Mod ID: PVE_PVPE_PVP
Popular Discussions View All (2)
1
Jul 18, 2023 @ 8:22am
PINNED: Incompatible mods
iBrRus
0
Apr 3, 2023 @ 11:11am
Translations
BryanComY
46 Comments
Keltor Feb 4 @ 8:31pm 
If I add this mod and don’t create a PvP zone and have pvp on for the settings then will the entire map be pvpe
Morgan Nov 24, 2024 @ 2:07pm 
Does PvP need to be enabled in the server to use this? It says in your mod that PVPE - players can attack each other only if both players have PVP mode enabled, is automatically enabled by default on the entire map.
Troggian Aug 18, 2024 @ 5:20am 
My Non-PVP function crash a client.exe in admin mode, but PVP zone work
Shaun Jul 20, 2024 @ 10:05am 
this still working?
#LeaneyLeyyuba Apr 15, 2024 @ 1:21am 
no working sorry. no pvp buttons
MiX74P3 Apr 12, 2024 @ 6:50pm 
where do I find where PVE zone is defined via file system?
PoPoWanObi Feb 14, 2024 @ 10:24am 
Hello friend. Could you please add buttons to create PVPVE and PVE zones, similar to your PVP zones? I think this would be a great addition. Thanks!
Sneaky Stone Feb 13, 2024 @ 9:58pm 
YOOOO so i got this mod for my server.. i was running into the same problem where i couldn't get pvp off once i left the zone.. i was able to fix it by surrounding the zone with a Non-Pvp Zone 2 blocks wide. (i AM running No Zombies Mod as well, not sure if it'l make a difference or not) hope this helps, goodluck everyone =]
Billy Can`t Shoot Nov 23, 2023 @ 2:05pm 
Hi All!
I've managed to set up the PVP zone successfully, and it activates when I enter the zone (PVP mode turns on). However, upon leaving the zone, the PVP mode remains active. Could there be some settings I'm overlooking?
Lil Boogie Sep 14, 2023 @ 8:05pm 
can u make it where after u leave safezone pvp doesn't turn back on? or a sandbox option to control this? I am wanting the safezone to just unflag players as they pass through the zone