Jump to content
Rythron

[Release] PVE Prison punish after a kill

Recommended Posts

its work its work its work :)

 

Thx for all help :lol:

 

 

but still have the second error when u died

13:10:55 Error in expression <se
{
deleteVehicle _newObject;
};

if ((side _killer) == EAST) exitwith {
diag_l>
13:10:55 Error position: <side _killer) == EAST) exitwith {
diag_l>
13:10:55 Error side: Type String, expected Object,Group,Location
13:10:55 File z\addons\dayz_server\compile\server_playerDied.sqf, line 100

Share this post


Link to post
Share on other sites

I got the same error in my RTP, I tried what you told him and cannot load mission now. Can you post YOUR mission.sqf so I can see, or even better make a video of it. I got everything where it should If I kill somebody it send me to the jail for 10 mins but if i try to escape nothing happen. I have to say Its the best script I ever see in dayz, all the detail you put in there. Hope you can find the problem.

Share this post


Link to post
Share on other sites

I got the same error in my RTP, I tried what you told him and cannot load mission now. Can you post YOUR mission.sqf so I can see, or even better make a video of it. I got everything where it should If I kill somebody it send me to the jail for 10 mins but if i try to escape nothing happen. I have to say Its the best script I ever see in dayz, all the detail you put in there. Hope you can find the problem.

there is my mission.sqm dont forget to add +1 to your "item="

 

and change" waitUntil {_unit distance jail_center_H > 105}; " in " escapee.sqf " & " escapekill.sqf " to

                   " waitUntil {_unit distance jail_center_H > 90}; "

 

waitUntil {_unit distance jail_center_H > 105};

waitUntil {_unit distance jail_center_H > 90};

 

gl :)

mission.txt

Share this post


Link to post
Share on other sites

there is my mission.sqm dont forget to add +1 to your "item="

 

and change" waitUntil {_unit distance jail_center_H > 105}; " in " escapee.sqf " & " escapekill.sqf " to

                   " waitUntil {_unit distance jail_center_H > 90}; "

 

waitUntil {_unit distance jail_center_H > 105};

waitUntil {_unit distance jail_center_H > 90};

 

gl :)

I confirm its working thank you, now need to look for those error in my rtp   

 

 9:08:44 Error in expression < {_unit distance jail_center_H > 90}
customRemoteMessage = ['titleCut', "WARN>
 9:08:44   Error position: <customRemoteMessage = ['titleCut', "WARN>
 9:08:44   Error Missing ;
 9:08:44 File mpmissions\__cur_mp.chernarus\addons\jail\escapee.sqf, line 12
 9:10:11 "PDEATH: Player Died 76561197992222401"
 9:10:11 Error in expression <l\start_punish.sqf"
} else {
if ((count crew _killer) > 1) then {
if ((gunner _k>
 9:10:11   Error position: <crew _killer) > 1) then {
if ((gunner _k>
 9:10:11   Error crew: Type String, expected Object
 9:10:11 File z\addons\dayz_server\compile\server_playerDied.sqf, line 104

Share this post


Link to post
Share on other sites

thats what i have in my escapee.sqf :

---------------------------------------------------------------------------------------------------

_unit = _this select 0;

if (!alive _unit) exitWith {isKiller=false;};
waitUntil {inJail};

sleep 2;

waitUntil {_unit distance jail_center_H > 90};


    
customRemoteMessage = ['titleCut', "WARNING: YOU WILL GET SHOT WHEN TRYING TO ESCAPE\nIT WILL AlSO COST YOU 2 BRIEFCASES", _unit];
publicVariable "customRemoteMessage";
 ------------------------------------------------------------------------------------------------------------------------------------

 

try it

Share this post


Link to post
Share on other sites

Well, after trying a couple things it was working but the error was still in the rtp.

I noticed one thing about the script and I didn't like it so I made a little change and its working fine.

When you kill somebody you got tp to the prison, if you escape you get killed BUT you respawn on the coast so yay!!! I'm free to go pk someone else before the 10 mins is done. What I did I deleted the files escapee.sqf and escapekill.sqf  and I also removed the 2 lines of it in the  start_punish.sqf  made a little modification in the editor to put half wall in the hole so they can't get out of there. Now its working perfectly. 

 

I was wondering if I can add a line for them to get gear removed when they get tp in the prison, that would be cool. Like in my dome I have the following if somebody get in the dome and don't leave.

r_player_infected = true;

sleep 2;
removeAllWeapons player;
sleep 2;

Share this post


Link to post
Share on other sites

 

Well, after trying a couple things it was working but the error was still in the rtp.

I noticed one thing about the script and I didn't like it so I made a little change and its working fine.

When you kill somebody you got tp to the prison, if you escape you get killed BUT you respawn on the coast so yay!!! I'm free to go pk someone else before the 10 mins is done. What I did I deleted the files escapee.sqf and escapekill.sqf  and I also removed the 2 lines of it in the  start_punish.sqf  made a little modification in the editor to put half wall in the hole so they can't get out of there. Now its working perfectly. 

 

I was wondering if I can add a line for them to get gear removed when they get tp in the prison, that would be cool. Like in my dome I have the following if somebody get in the dome and don't leave.

r_player_infected = true;

sleep 2;
removeAllWeapons player;
sleep 2;

 

Yes that could work just try :)

Share this post


Link to post
Share on other sites

I wish there was a way to adapt this with the handcuff system to enable players to capture and hand player bandits in for a cash reward.

 

Something like.

 

prisonmarker = getPos "Prison";

cell1 = position of one of the cells

bounty = "ItemBriefcase100oz";

 

If ((player humanity <= 0) & (player handcuffed)) then {

  if (player distance prisonmarker <= 10) then {

    addAction ["Hand in the prisoner", prisoner setPos cell1];

    player addMagazine bounty;

  };

};

 

You could even build a whole bounty system around it....

Share this post


Link to post
Share on other sites

Hi,

for some reason nothing happend when someone is killing an other player.

I sticked to the installing orders and dubble checked it.

Has anybody an idea?

 

this is the part of my RPT

"

16:25:49 "PHIT: B 1-1-B:1 (Artjiom) REMOTE was hit by B 1-1-B:2 (Roland) REMOTE with vil_SR25SD from 23.615m with 0.604418 dmg"
16:25:49 "Running pole stuff for char 380"
16:25:49 "All Poles: [343dc100# 1064743: sign_one_leg_h.p3d,33fec800# 1064831: sign_one_leg_h.p3d,33512b00# 1064268: sign_one_leg_h.p3d,34919600# 1064530: sign_one_leg_h.p3d,338a1600# 1064236: sign_one_leg_h.p3d,34863900# 1064546: sign_one_leg_h.p3d,33cee400# 1064891: sign_one_leg_h.p3d,34ffb200# 1064998: sign_one_leg_h.p3d]"
16:25:49 "Pole: 343dc100# 1064743: sign_one_leg_h.p3d"
16:25:49 "Owner of pole: 284"
16:25:49 "Pole: 33fec800# 1064831: sign_one_leg_h.p3d"
16:25:50 "Owner of pole: 368"
16:25:50 "Pole: 33512b00# 1064268: sign_one_leg_h.p3d"
16:25:50 "Owner of pole: 250"
16:25:50 "Pole: 34919600# 1064530: sign_one_leg_h.p3d"
16:25:50 "Owner of pole: 228"
16:25:50 "Pole: 338a1600# 1064236: sign_one_leg_h.p3d"
16:25:50 "Owner of pole: 380"
16:25:50 "Owner: 380 == Char: 380"
16:25:50 "Pole: 34863900# 1064546: sign_one_leg_h.p3d"
16:25:50 "Owner of pole: 320"
16:25:50 "Pole: 33cee400# 1064891: sign_one_leg_h.p3d"
16:25:50 "Owner of pole: 368"
16:25:50 "Pole: 34ffb200# 1064998: sign_one_leg_h.p3d"
16:25:50 "Owner of pole: 374"
16:25:50 "Player owned plots: [338a1600# 1064236: sign_one_leg_h.p3d]"
16:25:50 "Player death records: ["380","76561198018371722",[338a1600# 1064236: sign_one_leg_h.p3d]]"
16:25:50 "DeadPlayerObjects: [["380","76561198018371722",[338a1600# 1064236: sign_one_leg_h.p3d]]]"
16:25:50 "PDEATH: Player Died 76561198018371722"
16:25:50 Error in expression <se
{
deleteVehicle _newObject;
};

if ((side _killer) == EAST) exitwith {
diag_l>
16:25:50   Error position: <side _killer) == EAST) exitwith {
diag_l>
16:25:50   Error side: Type String, expected Object,Group,Location
16:25:50 File z\addons\dayz_server\compile\server_playerDied.sqf, line 114
16:25:59 "get: STRING (76561198018371722), sent: STRING (76561198018371722)"
16:25:59 "DISCONNECT: Artjiom (76561198018371722) Object: B 1-1-B:1 (Artjiom) REMOTE, _characterID: 380 at loc [-7239.67,19539.3,0.245544]"
16:26:22 "infiSTAR.de PlayerConnected: _uid: 76561198018371722   _name: Artjiom"
16:26:25 "Player 76561198018371722 Character 381 is NEW"
16:26:25 "Hello New player"
16:26:25 "Your ID: 76561198018371722 - B 1-1-A:1 (Artjiom) REMOTE - 381"

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...