Stop Players spawning as Rabbits

secondcoming Jul 29th, 2016 (edited) 383 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Place the code below at the top of your init.sqf in your mission file
  3. if (hasInterface && !isServer) then
  4. {
  5.     systemchat("Player protection activated...");
  6.     player allowdamage false;
  7.     waitUntil {alive vehicle player};  
  8.     waitUntil {typeOF player != "Exile_Unit_GhostPlayer"};
  9.     uiSleep 10;
  11.     _inSafeZone = [position player, 175] call ExileClient_util_world_isTraderZoneInRange;
  12.     if(!_inSafeZone) then { player allowdamage true; systemchat("Player protection deactivated..."); };
  13. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand