Advertisement
Guest User

Untitled

a guest
Apr 11th, 2017
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 1.26 KB | None | 0 0
  1. //from enigma
  2. /**
  3.  * ExileClient_object_player_event_onInventoryOpened
  4.  *
  5.  * Exile Mod
  6.  * www.exilemod.com
  7.  * © 2015 Exile Mod Team
  8.  *
  9.  * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
  10.  * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
  11.  */
  12.  
  13. _cancelEvent = false;
  14. _container = _this select 1;
  15.  
  16. try
  17. {
  18.     if (ExileIsPlayingRussianRoulette) then
  19.     {
  20.         throw true;
  21.     };
  22.  
  23.     if (ExileClientIsHandcuffed) then
  24.     {
  25.         throw true;
  26.     };
  27.  
  28.     if (ExileClientActionDelayShown) then
  29.     {
  30.         throw true;
  31.     };
  32.  
  33.     // Dont double-place walls while in construction mode
  34.     if (ExileClientIsInConstructionMode) then
  35.     {
  36.         throw true;
  37.     };
  38.  
  39.     // Cannot access locked vehicles
  40.     if ((locked _container) isEqualTo 2) then
  41.     {
  42.         throw true;
  43.     };
  44.  
  45.     // Cannot access locked containers
  46.     if (_container getVariable ["ExileIsLocked", 1] isEqualTo -1) then
  47.     {
  48.         throw true;
  49.     };
  50.     // Cannot access in progress revive player inventories
  51.     if ((_container getVariable["antidupe", 1]) isEqualTo -1) then
  52.     {
  53.         throw true;
  54.     };
  55.  
  56.     ExileClientInventoryOpened = true;
  57.     ExileClientCurrentInventoryContainer = _container;
  58. }
  59. catch
  60. {
  61.     _cancelEvent = _exception;
  62. };
  63.  
  64. _cancelEvent
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement