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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Discord

×
×
  • Create New...