Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
Niklas

Kill player if they reslot after dying.

Recommended Posts

I want to enable JIP in my mission, but i don't want players to reslot after dying, is there a way to kill the player if he attempts to do this?

Share this post


Link to post
Share on other sites

Can't test but something like this I'd guess

if (!isDedicated) then {
 if (isNil "TAG_killedArray") then { 
     TAG_killedArray = [];
 };

 waitUntil {!isNull player};

 player addEventHandler ["Killed", {
     TAG_killedArray = TAG_killedArray + [getPlayerUID player];
     publicVariable "TAG_killedArray"; // for jip
   }
 ];

 while {true} do {
     if (alive player && ((getPlayerUID player) in TAG_killedArray)) exitWith {
         player setDamage 1;
     };
     sleep 1;
 };
};

Edited by cuel

Share this post


Link to post
Share on other sites
Sign in to follow this  

×