Jump to content

Search the Community

Showing results for tags 'anti-theft'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements
  • DayZ
    • Discussion
    • Public Servers
    • DayZ SA Resources
    • Q&A Section
  • ArmA 3
    • Epoch Survival
    • Community Projects
    • Q&A Section
    • Terrain Discussion
    • Resources
  • Arma 3 Resources
  • ArmA 2
    • General Discussion.
    • Q&A Section
    • Resources
    • Legacy Resources
    • A2: Community Projects
    • A2 Community Servers
  • Space Engineers
    • General Discussion.
    • Public Servers
  • Other Games
    • Discussion
  • Off Topic
    • Off Topic

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 3 results

  1. Anti-Duping by F507DMT This Anti-Duping system block duping with: Losing connection, drop loot, Esc, exit yes and Esc + G, losing connection, drop loot, exit yes. Works perfectly! Instructions: in description.ext onPauseScript = "scripts\DupingFix.sqf"; in DupingFix.sqf private ["_escMenu","_lastTimesScanned","_currTimesScanned"]; disableSerialization; sleep 1; call dayz_forcesave; _escMenu = findDisplay 49; _lastTimesScanned = player getVariable ["ClearToLeave",0]; AD_AntiDupePlayer = player; publicVariable "AD_AntiDupePlayer"; sleep 5; _currTimesScanned = player getVariable ["ClearToLeave",0]; if (_currTimesScanned - _lastTimesScanned < 1) then { titleText ["<Anti-dupe>: Connection to the server is not found!", "PLAIN DOWN", 3]; systemchat "<Anti-dupe>: Connection to the server is not found!"; _escMenu closedisplay 0; }; in AH bottom: 'AD_AntiDupePlayer' addPublicVariableEventHandler { [] spawn { waitUntil {!isNull AD_AntiDupePlayer}; _plyr = AD_AntiDupePlayer; _amnt = _plyr getVariable ['ClearToLeave',0]; _plyr setVariable ['ClearToLeave',_amnt+1,true]; }; }; in compiles.sqf change this: dayz_spaceInterrupt = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\dayz_spaceInterrupt.sqf"; to: dayz_spaceInterrupt = compile preprocessFileLineNumbers "scripts\dayz_spaceInterrupt.sqf"; in dayz_spaceInterrupt.sqf add(_nill = execvm "scripts\esc.sqf";): //Esc if (_dikCode == 0x01) then { _nill = execvm "scripts\esc.sqf"; DZE_cancelBuilding = true; call dayz_EjectPlayer; }; in scripts\esc.sqf // F507DMT for "_x" from 3 to 1 step -1 do { (findDisplay 106) closeDisplay 1; uiSleep 1; if (isNil "EscBlock") then { systemchat "<Anti-dupe>: Gear is locked for 5 seconds."; EscBlock = true; }; }; EscBlock = nil; add in publicvariable.txt, in line 2, last: !="AD_AntiDupePlayer" -- If you use endMission "SOME", like in nosidechat.sqf, chenge to: _nil = execVM "scripts\player_kick.sqf"; in player_kick.sqf: kickme = true; add buttom in scripts.txt: 5 "kickme" When u have no connection BE can`t kick you. Dupe - fix. --
  2. Anti-Theft from locked vehicles by F507DMT add in variables.sqf: GearStorags = ["WeaponHolder","WoodCrate_DZ","Wooden_shed_DZ","WoodShack_DZ","StorageShed_DZ","GunRack_DZ","VaultStorage","LockboxStorage"]; add in dayz_spaceInterrupt.sqf: //Esc if (_dikCode == 0x01) then { _nill = execvm "scripts\esc.sqf"; //if use Anti-Duping by F507DMT (http://epochmod.com/forum/index.php?/topic/32889-release-anti-duping-by-f507dmt-working/) DZE_cancelBuilding = true; call dayz_EjectPlayer; OpenGear = nil; }; //Anti-Theft from locked vehicles by F507DMT if ((_dikCode in actionKeys "Gear") && !(vehicle player != player)) then { if (isNil "OpenGear") then { (findDisplay 106) closeDisplay 1; if (!(cursorTarget isKindOf "Man") and (player distance cursorTarget <= 7) and ((typeOf cursorTarget in GearStorags) or (cursortarget isKindOf "AllVehicles"))) then { player action ["gear", cursortarget]; } else { createGearDialog [player, "RscDisplayGear"]; }; OpenGear = true; } else { (findDisplay 106) closeDisplay 1; OpenGear = nil; }; _handled = true; }; P.S. I recomend add "Open self Backpack" on button "H" add in dayz_spaceInterrupt.sqf: //open backpack on H button if (_dikCode == 0x23) then { if (isNil "OpenGear") then { (findDisplay 106) closeDisplay 1; player action ["gear", unitBackpack player]; OpenGear = true; } else { (findDisplay 106) closeDisplay 1; OpenGear = nil; }; _handled = true; }; with: Losing connection, drop loot, Esc, exit yes and Esc + G, losing connection, drop loot, exit yes.
  3. Hello, Looking for some help with this Code i am trying to add to our server as a backpack theft protection when inside safezones. We had something similar up to now but it just didn't work very well. I am adding this code to the bottom of my custom fn_gearMenuChecks.sqf which is called in the MPMission\compiles.sqf. I've added comments trying to explain what it is doing (WE ALSO USE CUSTOM FRIENDLIST SYSTEM, so things may look strange) THE CODE: if (inSafeZone) then //if player inside a safezone { _playerNear = (({isPlayer _x} count (nearestObjects [player, ['Man'],6])) > 1); //there is another player within 6m of you if (_playerNear) then //if player within 6m { //define variables _puid = getPlayerUID player; _fuid = getPlayerUID cursorTarget; _playerID = player getVariable ["CharacterID", "0"]; _targetid = cursorTarget getVariable ["CharacterID", "0"]; _sFriends = player getVariable ["friendlies", []]; _pfls = player getVariable ["AH_friendlist",[]]; _tFriends = cursorTarget getVariable ["friendlies", []]; _ffls = cursorTarget getVariable ["AH_friendlist",[]]; _isFriend = (((_targetid in _sFriends)&&(_playerID in _tFriends)) || ((_fuid in _pfls)&&(_puid in _ffls))); //player is inside your friendslist _isLootpile = (cursorTarget isKindOf "WeaponHolder"); //cursortarget is a lootpile if (!_isFriend || _isLootpile) then //if target not inside friendslist OR cursortarget is a lootpile { _display closeDisplay 1; // do not allow gear access cutText ["\nANTI-THEFT: You cannot access non-friends gear/backpacks in safezone!","PLAIN DOWN"]; //text }; }; }; Point is that if you are inside a safezone and there is another player within 6m: - if target player is not inside your friendslist = you cannot access their gear/backpack - if you target a lootpile = no gear access The problem is that it does not let me access anyones gear if there is another player within 6m, no matter if they are in my friendslist or not. Very tired trying to figure out what could be wrong, does this code look allright? Here's my whole fn_gearMenuChecks.sqf: http://pastebin.com/znjtWC8R Any help is appreciated
×
×
  • Create New...