Jump to content

Anti-Duping by JustBullet | AWCLOTHES


JustBullet

Recommended Posts

AWCLOTHES BY JUSTBULLET

ver. 1.0.3

info: Can not change clothes near the place of storage and vehicles.

 

Instructions:

add in player_wearClothes.sqf:

after:

private ["_item","_onLadder","_hasclothesitem","_config","_text","_myModel","_itemNew","_currentSex","_newSex","_model","_playerNear"];

this code:

//////////////////////////////////////////////////
/////////////* Author by JustBullet */////////////
//             AWClothes ver. 1.0.3             //
//////////////////////////////////////////////////
 
_storage = [
"TentStorage","TentStorageDomed","TentStorageDomed2","Wooden_shed_DZ",
"WoodShack_DZ","StorageShed_DZ","WoodCrate_DZ","DebugBoxPlayer_DZ","OutHouse_DZ",
"GunRack_DZ","DZ_Patrol_Pack_EP1","CZ_VestPouch_EP1","DZ_ALICE_Pack_EP1",
"DZ_Assault_Pack_EP1","DZ_Backpack_EP1","DZ_British_ACU","DZ_CivilBackpack_EP1",
"DZ_Czech_Vest_Puch","DZ_TK_Assault_Pack_EP1","DZ_TerminalPack_EP1",
"DZ_GunBag_EP1","DZ_LargeGunBag_EP1"
];
_AllVehicles = count nearestObjects [player, ["AllVehicles"], 10];
{
    if ((typeOf _x in DZE_LockableStorage) || (typeOf _x in _storage)) exitWith {DZE_ActionInProgress = true;};
} foreach (nearestObjects [player, ["All"], 10]);
if ((DZE_ActionInProgress) || (_AllVehicles > 1)) exitWith {systemchat "You can not change clothes near the place of storage and vehicles."; DZE_ActionInProgress = false;};

P.S. I can`t make the description because i am do not know English well enough. If you do not difficult to help me with this.

 

****************************************************

 

Link to comment
Share on other sites

  • 1 year 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
  • Advertisement
  • Discord

×
×
  • Create New...