Ivlar Posted May 18, 2015 Report Share Posted May 18, 2015 (edited) InventoryOpened.sqf: // @file Author: Ivlar.net [] spawn { while {1 == 1} do { waitUntil {!isnull (findDisplay 602)}; { if ((isPlayer _x && _x != player) && (alive _x)) then { _backpack=backpackContainer player; _backpack_x=backpackContainer _x; if(_backpack==_backpack_x)then{ hint "No Duping!"; removeBackpack player; }; }; } forEach nearestObjects [player, ["Epoch_Male_F","Epoch_Female_F"], 10]; sleep 1; }; }; Add to your init: if (hasInterface) then { [] execVM "InventoryOpened.sqf"; }; Edited May 18, 2015 by Ivlar Ivlar 1 Link to comment Share on other sites More sharing options...
0 Grimonja Posted May 18, 2015 Report Share Posted May 18, 2015 Cool idea but, last time i checked when you dupe a container it gets a new object handle so you cant really compare them :/ i might be wrong here Link to comment Share on other sites More sharing options...
Question
Ivlar
InventoryOpened.sqf:
Add to your init:
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now