Dami's Trader Safe Zone Issue

I seem to be having an issue with dami's protected trade zones script. Whenever someone enters the trade zone the protection kicks in, however it doesn't shut off when they leave. Shooting anywhere outside the tradezone brings up the message "Cannot shoot in safe zone" and when they try to logoff the server it says they cannot abort in a trade zone. I have to kick them so they can logout.

Any ideas?
 
This should be how your traders look! I think you didn't a simple error!
Code:
        class Item1
        {
            position[]={4063.4226,365.00577,11664.19};
            a=100;
            b=100;
            activationBy="WEST";
            repeating=1;
            interruptable=1;
            age="UNKNOWN";
            name="zonebash";
            expCond="(player distance zonebash) < 100;";
            expActiv="TitleText[""Now entering trader city Bash"",""PLAIN DOWN""]; canbuild = false; inTraderCity = ""Bash"";inSafeZone = true;";
            expDesactiv="TitleText[""Now leaving trader city Bash"",""PLAIN DOWN""]; canbuild = true; inTraderCity = ""Any"";inSafeZone = false;";
            class Effects
            {
            };
        };
Make sure in your mission.sqm on lines 1299 - 1388 that at the end it yas insafezone = false;"; instead of insafezone = true;"; or when they are outside of the trader it will do as followed!
Or if you want you can just copy and paste what I got here you go!
Code:
    class Sensors
    {
        items=5;
        class Item0
        {
            position[]={6325.6772,304.99033,7807.7412};
            a=100;
            b=100;
            activationBy="WEST";
            repeating=1;
            interruptable=1;
            age="UNKNOWN";
            name="zonestary";
            expCond="(player distance zonestary) < 100;";
            expActiv="TitleText[""Now entering trader city Stary"",""PLAIN DOWN""]; canbuild = false; inTraderCity = ""Stary"";inSafeZone = true;";
            expDesactiv="TitleText[""Now leaving trader city Stary"",""PLAIN DOWN""]; canbuild = true; inTraderCity = ""Any"";inSafeZone = false;";
            class Effects
            {
            };
        };
        class Item1
        {
            position[]={4063.4226,365.00577,11664.19};
            a=100;
            b=100;
            activationBy="WEST";
            repeating=1;
            interruptable=1;
            age="UNKNOWN";
            name="zonebash";
            expCond="(player distance zonebash) < 100;";
            expActiv="TitleText[""Now entering trader city Bash"",""PLAIN DOWN""]; canbuild = false; inTraderCity = ""Bash"";inSafeZone = true;";
            expDesactiv="TitleText[""Now leaving trader city Bash"",""PLAIN DOWN""]; canbuild = true; inTraderCity = ""Any"";inSafeZone = false;";
            class Effects
            {
            };
        };
        class Item2
        {
            position[]={11447.472,317.26886,11364.504};
            a=100;
            b=100;
            activationBy="WEST";
            repeating=1;
            interruptable=1;
            age="UNKNOWN";
            name="zoneklen";
            expCond="(player distance zoneklen) < 100;";
            expActiv="TitleText[""Now entering trader city Klen"",""PLAIN DOWN""]; canbuild = false; inTraderCity = ""Klen"";inSafeZone = true;";
            expDesactiv="TitleText[""Now leaving trader city Klen"",""PLAIN DOWN""]; canbuild = true; inTraderCity = ""Any"";inSafeZone = false;";
            class Effects
            {
            };
        };
        class Item3
        {
            position[]={1606.6443,289.70795,7803.5156};
            a=100;
            b=100;
            activationBy="WEST";
            repeating=1;
            interruptable=1;
            age="UNKNOWN";
            name="zonebandit";
            expCond="(player distance zonebandit) < 100;";
            expActiv="canbuild = false; inTraderCity = ""Bandit Trader"";";
            expDesactiv="canbuild = true;  inTraderCity = ""Any"";";
            class Effects
            {
            };
        };
        class Item4
        {
            position[]={12944.227,210.19823,12766.889};
            a=100;
            b=100;
            activationBy="WEST";
            repeating=1;
            interruptable=1;
            age="UNKNOWN";
            name="zonehero";
            expCond="(player distance zonehero) < 100;";
            expActiv="canbuild = false; inTraderCity = ""Hero Trader"";inSafeZone = true;";
            expDesactiv="canbuild = true; inTraderCity = ""Any"";inSafeZone = false;";
            class Effects
            {
            };
        };
    };
};
Replace lines 1299 - 1388 with that! or just use it as a example if you need more help just ask!
 
This should be how your traders look! I think you didn't a simple error!

Make sure in your mission.sqm on lines 1299 - 1388 that at the end it yas insafezone = false;"; instead of insafezone = true;"; or when they are outside of the trader it will do as followed!
Or if you want you can just copy and paste what I got here you go!

Replace lines 1299 - 1388 with that! or just use it as a example if you need more help just ask!

Worked like a charm! Thanks, FriendlySTH!
 
Been using Dami for awhile...

Recently player have been complaining about players blowing up vehicles w/mounted guns in safe traders or players shooting out players tires in traders. Is there a fix or addition for DAMI safezones?

I have been doing forum search but found nothing...........
 
Back
Top