Advertisement
secondcoming

Stop Players spawning as Rabbits

Jul 29th, 2016
494
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 0.48 KB | None | 0 0
  1. // Place the code below at the top of your init.sqf in your mission file
  2.  
  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;
  10.    
  11.     _inSafeZone = [position player, 175] call ExileClient_util_world_isTraderZoneInRange;
  12.     if(!_inSafeZone) then { player allowdamage true; systemchat("Player protection deactivated..."); };
  13. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement