Jump to content

Anti Duping backpack script by ivlar.net


Ivlar

Recommended Posts

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";
};
 
Maybe you have any ideas on how to improve the script?
 
Link to comment
Share on other sites

I can see people causing issues on servers using this by just standing near traders with their inventory active thereby blocking anyone using traders.

 

as i have already mentioned once (alltho my post was deleted for some reason), this will most likely NOT work ...

 

 

script updated 05/18/15

Edited by Ivlar
Link to comment
Share on other sites

Haha had to sit here and think for a second what duping exploit this covered. Well if all goes well nice script, but yes several people raid the mission boxes to get out faster, load their vehicles up same time plus more I haven't thought of.

Not sure of this would be as much of a benefit as it would be a hindrance

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 months later...

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...