add this in globalevent.xml
Lua:
<globalevent name="change" interval="3600" event="script" value="change.lua"/>
add this in globalevent folder
Lua:
function onThink(interval)
if setWorldType(PVP) then
doBroadcastMessage('Gameworld type set to: PVP.', MESSAGE_EVENT_ADVANCE)
end
return true
end
and make another one to change it