Jump to content
  • 0

Anti Duping backpack script by ivlar.net


Ivlar

Question

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 by Ivlar
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
  • Discord

×
×
  • Create New...