[Support] PVE Prison punish after a kill

did you ever figure out how to change it to combat loggers goto prison ????
Thats why you have to add the trigger zone in your mission.sqm

EXTRA POSSIBILITY
If you dont want them to abort in prison place the Pzone.sqf in your mission directory i have it in my safezone directory.
Then add this in your init.sqf add the bottom.

[] ExecVM "addons\Safezone\Pzone.sqf";

it is activated by the "canbuild" so you cannot abort in a trader city!

And add this part
Code:
class Sensors
   {
        items=14; // add + 1
        class Item13 // your follow up number
           {
            position[]={1348.44,339,4065.91};
            a=100;
            b=100;
            activationBy="WEST";
            repeating=1;
            interruptable=0;
            age="UNKNOWN";
            name="Prison";
            expCond="(player distance Prison) < 100;";
            expActiv="inPZone = true;";
            expDesactiv="canbuild = true;inPZone = false;";
            class Effects
            {
            };
        };
    };
in your mission.sqm
 
Last edited:
Changed the code in the server_PlayerDied.sqf because the AI also went to prison :)

Code:
if ((side _killer) == EAST) exitwith {
    diag_log "Bots dont go to jail!";
};

if ((side _killer) == WEST) then {
    sleep 8;
   [_killer] execVM "custom\jail\start_punish.sqf"
} else {
   if (((count crew _killer) > 1) && ((side _killer) == WEST)) then {
     if (((gunner _killer) in (crew _killer)) && ((side _killer) == WEST)) then {
        sleep 8;
       [(gunner _killer)] execVM "custom\jail\start_punish.sqf"
     } else {
        sleep 8;
       [(driver _killer)] execVM "custom\jail\start_punish.sqf"
     };
   } else {
        sleep 8;
        [(driver _killer)] execVM "custom\jail\start_punish.sqf"
   };
};
 
I´ve a pvp server and I want to use the prision , I would like to know if there is a way I can use it with infistar to send players to prision I tried the code bellow but doesn´t work

I created an option on infistar called prision it points to this :


PHP:
  prision={
    if (name _x == _this select 0) then {
      {
        execVM "custom\jail\start_punish.sqf"
        
      } forEach playableUnits;
     }
    };
 
I dont have infistar so cant help you with that code but when do you want them to go to prison?
 
the problem is the teleport check from infistar. Simpliest way is just to set this check to false.
To get an exception for the teleport to prison you will have to edit the ah.sqf
 
I dont have infistar so cant help you with that code but when do you want them to go to prison?
the problem is the teleport check from infistar. Simpliest way is just to set this check to false.
To get an exception for the teleport to prison you will have to edit the ah.sqf

ok guys rite I need them to go to prision when they do something against the rules like kamikaze etc.. insted of ban them and schwede I have this option you saying set to false and it still doesn´t work then I think my code is not correct
 
prison looks good, well done. but how do the players like sitting out of the game for 10 minutes? there must be a better solution than making them wait out? its a zombie apocalypse for gods sake, how about just spawning 60 zombies at their location and let nature take its course ...

just my worthless 2 cents. i dont care for enforced PvE but even if i did i think i would find another server if i had to wait to play.

and does the script use the ''free to kill' code to determine if you killed a player in self defense? shouldnt be punished then, right?
 
Back
Top