Here are my scripts
On Client Enter
void main()
{
object oPC = GetEnteringObject();
int nLocal = GetCampaignInt("test", "test");
if(nLocal && GetIsPC(oPC))
{
DestroyCampaignDatabase("test");
}
SetLocalInt(oPC, "test", 1);
}
On Client Leave
void main()
{
object oPC = GetExitingObject();
int nLocal = GetLocalInt(oPC, "test");
if(nLocal)
SetCampaignInt("test", "test", 1);
DeleteLocalInt(oPC, "test");
}
Basically, I am checking my database folder of my dedicated server to see if the "test" database exists. I can check this both in-game and out of game. For checking Area Enter/Exit, I just move the scripts to those locations removing the check from on Client Enter/Leave.