Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Place the code below at the top of your init.sqf in your mission file
- if (hasInterface && !isServer) then
- {
- systemchat("Player protection activated...");
- player allowdamage false;
- waitUntil {alive vehicle player};
- waitUntil {typeOF player != "Exile_Unit_GhostPlayer"};
- uiSleep 10;
- _inSafeZone = [position player, 175] call ExileClient_util_world_isTraderZoneInRange;
- if(!_inSafeZone) then { player allowdamage true; systemchat("Player protection deactivated..."); };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement