I have a feeling you're misunderstanding the request.
He wants the environment the client is seeing to be persistent, even if they leave and rejoin.
Oh, woops! Thanks for the clarification. Here is a quick code that should load client environments after the player spawns (using default player persistence) copy and paste this code to the manager.cs
function GameConnection::autoAdminCheck(%this)
{
//Check for persistence
if(isFunction(RegisterPersistenceVar))
{
RegisterPersistenceVar("currentEnvironment", false, "");
}
}
function GameConnection::applyPersistence(%client, %gotPlayer, %gotCamera)
{
setupDefaultEnvironment();
%client.popAllEnvironments();
%client.setEnvironment(%client.currentEnvironment);
return Parent::applyPersistence(%client, %gotPlayer, %gotCamera);
}
Alternatively if you do not want to copy the code you can just download the modified .cs attached and replace it with the current one in Server_EnvironmentZones/script
If you haven't already, make sure to enable Script_PlayerPersistence before starting the server.
This should work, although I haven't tested so please let me know