Jump to content

Search the Community

Showing results for tags 'script'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • General
    • Announcements
  • ArmA 3
    • Epoch Survival
    • Get Wrecked
    • 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
  • DayZ
    • Discussion
    • Public Servers
    • Q&A Section
  • Space Engineers
    • General Discussion.
    • Public Servers
  • Other Games
    • Discussion
  • Off Topic
    • Off Topic


  • Arma 3
  • Arma 2

Found 129 results

  1. Hi This is a restriction to vehicle seat according to humanity. It may be handy to PVE servers out there. Special thanks to Juandayz with his fantastic skills and salival. Both sometimes working unseen for the benefit of this community. Step 1. Make a new file, Name it veh_hum.sqf with the below contents and put into dayz_epoch/addons folder. If you dont have addons just create one. In this example we have a hero superhero and agenthero traders with 20k/40k/60k humanity respectively. Adjust according to your needs. private ["_vehicle","_inVehicle","_driver","_humanity","_txt"]; while {true} do { _vehicle = vehicle player; _inVehicle = (_vehicle != player); if (_inVehicle) then { _driver = driver (vehicle player); if (({(isPlayer _driver) && (alive _driver)} count (crew _vehicle) > 0)) then { _humanity = _driver getVariable["humanity",0]; if (typeOf _vehicle in DZE_heroHumanity && _humanity <= 20000 || (typeOf _vehicle in DZE_superHeroHumanity && _humanity <= 40000) || (typeOf _vehicle in DZE_agentHumanity && _humanity <= 60000)) then { player action ["getOut", (vehicle player)]; titleText ["","WHITE IN"]; _txt = "<img image='addons\vehicon.paa' /><br/><t size='0.7' color='#ea2828' align='center'>prohibited vehicle</t>"; [_txt, [safezoneX, safezoneW], [0.20 * safezoneH + safezoneY, 0.3 * safezoneH], 2, 0.5] spawn BIS_fnc_dynamicText; }; }; }; sleep 3; }; Step 2: Download this file http://www.mediafire.com/file/bdpt5d96o5cttk3/vehicon.rar Unzip and put paa file into addons folder. Step 3: Edit your custom variables file dayz_code/init/variables.sqf Put the vehicles you want to restrict below call dayz_resetselfactions; ike this: // Custom below s_givemoney_dialog = -1; s_bank_dialog = -1; s_player_checkWallet = -1; s_bank_dialog1 = -1; s_bank_dialog2 = -1; s_player_copyToKey = -1; s_player_claimVehicle = -1; s_collect_heli = -1; }; call dayz_resetSelfActions; DZE_heroHumanity = ["Mi17_rockets_RU","Mi24_D","UH1Y_DZE"]; DZE_superHeroHumanity = ["Mi24_V","Mi24_P","Ka52"]; DZE_agentHumanity = ["AV8B2","AV8B","A10","F35B"]; DZE_safeVehicle = DZE_heroHumanity + DZE_superHeroHumanity + DZE_agentHumanity +["ParachuteWest","ParachuteC"]; Step 4: Edit your init file to exec the script. Above the (false,12)execVm.... like below [] execVM "addons\veh_hum.sqf"; //[false,12] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf"; Thats it. Enjoy! Hide contents
  2. NEAF Makeover

    Im putting up my script for a makeover of the NEAF. I did release this before back with Since has come out I decided to retest to see if it would still be fine , which it is. So im reposting it for anyone who might want to make use of it. Just put the following in a new file called NEAF.sqf (or whatever you want to call it and create a new folder called "buildings" (if you dont already have a folder called that) in the root directory of your server pbo. In your server_functions.sqf file in your init folder add the following to the bottom: call compile preProcessFileLineNumbers "\z\addons\dayz_server\buildings\NEAF.sqf"; I do ask that the credits ARE left in this file and that no other person claims credit for this version of a better North East Airfield. NEAF.sqf: Link to original post which includes images of NEAF:
  3. Capture Points

    Hello!!! I need some help, does anyone have a Capture Point script that is functioning on 1.0.6? The owner of the server desperately wants a Capture point style event where players must brawl for control over an area for around 10,15 minutes, then a crate spawns, granted players are in the vicinity, and if they are not in the vicinity, the crate is empty. If someone is willing to share this script or has it for a reasonable price (keep in mind my organization is not for profit), then I would be highly appreciative and so would the community!!! Please help a fellow out! Thanks in advance!!!
  4. Script Restriction #29

    Yesterday I was playing with a couple of friends on a private epoch server, and it seemed like every 10-15 minutes some of us would get kicked. Reason for it? Script Restriction #29, I'm wondering if this is a client or server issue, I'm not a big coder so I wasn't able to find where exactly the problem was. If anyone can give me feedback I would appreciate it greatly.
  5. Death messages script?

    Hi. Death messages script?
  6. Fps boost?

    Hi. How can server-side fps be increased? Database clean? Script?Mod? Clean? (Not game settings) Thanks
  7. Search Lingor script

    Hello Community Sorry for my bad English. I Search a lingor Script With 2 mods. (Plot4life and plotmanagement) .can you send me pls a Script for Lingor With the 2 or more scripts? Thank you very much guys. Cheers
  8. slow zombies

    Is there a script to slow the zombies for like the setting in 1.0.6?
  9. What is this mod Its a mod that lets you setrange if you right click on a binocular and rangefinder (very easy you can even do it yourself) Any issues plz tell You Need extra_rc.hpp and a costum folder instal guide install link : https://www.dropbox.com/sh/4szrw32dsuszhxk/AADnUQwQ27tEFNcpmQLYPaO7a?dl=0 1. paste these lines in your extra_rc.hpp so it looks like this IF YOU DONT HAVE THE TEST IN HERE 2. paste the file setview into your custom folder from the download (in your mission file yourinstance\custom dont know if i need to give somebody credits :D
  10. Script from And I just made it 1 .bat file easy to use all you need to do is edit the Config settings section and the command line. Make a new .bat file on your desktop of your windows vps or dedi Paste this in it If you run multiple servers create a file for each server on your desktop all you have to do is change the command lines and the config settings to suit each server on each file. This script will re-run everything from this label :arma2oaserver every time the server cmd box is closed so yes if bec shuts down the server after x amount of hrs the script will backup your sql will re-start Bec & the Server If your server cmd box closes for some unknown reason this will terminate connection with Bec and so Bec shuts down but dont worry the script will backup your database then restart bec and your server (dont believe me try it run this script then close your server cmd box while this script is running and watch the magic lol)
  11. How to get online players list?

    There is a script in a server side archive - Tools\PHP\GetOnlinePlayers.php Can anyone tell how it works? I've tried to test it, and here's what i get: Parse error: syntax error, unexpected '.0' (T_DNUMBER) in C:\xampp\htdocs\main\GetOnlinePlayers.php on line 14 If i change to localhost it says: Fatal error: Class 'Redis' not found in C:\xampp\htdocs\main\GetOnlinePlayers.php on line 13
  12. It does not work _bodycheck

    friends, it does not work the "bodycheck" change it to 2500, but with my friends tried to kill me in zelenogorks and when I choose to be born zelenogorks keeps telling me, what would be wrong? thanks guys..
  13. pplayer_build.sqf

    Hey im hosting my server without plot4 life and plot management. When players die they have to remove and put plots again. But they cant remove the modulars placed before they die. Its there any way to change it? without plot4 and management? i guess the change must be into player_build.sqf...
  14. chang icon color

    My icons don't have color i want to change this first img to second img ..sorry i'm easy eng.
  15. I can't seem to find a decent tutorial on setting allowed vehicles and their spawn rates. I've created a document already but running the server with it is creating errors in the server_functions.sqf within dayz_code and it disallowed vehicles such as HMMWVs are still spawning. However, some of the vehicles I added to the list like insurgent UAZs are spawning so it feels as though the script is sort of working but not entirely?? No idea what to do at this point! skype: george.galloway96 steam: http://steamcommunity.com/profiles/76561198133585498/ / [Bannanual Sales] (display name)
  16. Help whit Buy Bonus of Market

    how i can stop this script if the same player call it again. i tryed whit if (_isrunning) exitWith {cutText [format["You already have a running bonus"], "PLAIN DOWN"];}; but dsnt work
  17. [Functions] RemoteExec issue.

    Found that happening in some cases on vanillla 0.3.8 19:05:22 Scripting function 'bis_fnc_execvm' is not allowed to be remotely executed Its only used to initPlayerServer.sqf execution, but still want to know if its global issue, or local for me.
  18. Help making this script

    Hello im working on PlotSecure system... its about launch an alarm sound when enemy players enter in a plot area. basically this work like: If owner && plot friend... then disallow alarm sound ---if is in plot area and !no ower && !no plotfriend then launch alarm sound. but, dsnto work yet. any idea? I made the call from init.sqf IF is dedicated section: in my custom variables.sqf in init_plotsecur.sqf startalert.sqf stopalert.sqf
  19. Hey guys, We are looking for talented people to help create custom content for some ArmA2 & ArmA3 servers. We are looking for people that can code and create custom scripts to make the servers unique, custom map content for great in game experience and anyone else that has spare time is mature and would like to help We have a few servers worked but want to rework all the servers again with quality survival aspect, but open to ideas as we have many servers running Would you like to help run some great servers for the community to play on? PM me!
  20. Hey guys, We are looking for talented people to help create custom content for some ArmA2 & ArmA3 servers. We are looking for people that can code and create custom scripts to make the servers unique, custom map content for great in game experience and anyone else that has spare time is mature and would like to help We have a few servers worked but want to rework all the servers again with quality survival aspect, but open to ideas as we have many servers running Would you like to help run some great servers for the community to play on? PM me!
  21. NoKillScript – Prevents any ‘Safe Zone’ killings and damage to player’s vehicles. Version: 1.16 Tested On: ARMA 3 (should work on ARMA 2, though untested) Tested Modes: Single Player, Multiplayer (Dedicated Server) Tested Environments: Standard ARMA SP/MP, Epoch, Exile Script Executor: Client Script Host: Server or Client Format: script, SQS Description: NoKillZone (NKZ), is a script that helps put an end to the notorious ‘safe zone’ killings that plagued MP environments such as Epoch and Exile. Simply place a marker on your map, and then put the marker name in the scripts parameters, and that’s it! It is a simple script to use. Nothing fancy here. Once it starts, it just loops over and over checking to see if player has entered or left the mark area. Matters not if they teleport into the area, fly over it, or respawn in to it – the script will detect all players in the zone regardless how they arrived or left. 100% client side and consumes almost no resources from the client. Runs till client exits the server. No triggers are used. This script is for players only, it does not detect/react to any AI units. Uses: To mark a ‘safe area’ where players can be safe and not have to worry about being killed by anyone. It is possible, if desired for example, to have player protected at 100m and then at 50m, their vehicle protected. This is done by using 2 scripts. One with the DISTANCE parameter set to ‘100’ and the other set to ‘50’. Usage: [MARKER,DISTANCE,TEXT-IN,TEXT-OUT,PROTECTION] exec "NoKillZone.Sqs"; MARKER = Map marker name - In quotes DISTANCE = Radius of protection in meters TEXT-IN * = Text to be shown via Hint when entering the zone - In quotes TEXT-OUT * = Text to be shown via Hint when leaving the zone - In quotes PROTECTION * = Allows you to choose protection for player or player and their vehicle. * = Optional parameter Example: ["CentralSZ",500,"You Have Entered The Central Safe Zone","You Have Left The Central Safe Zone",1] exec "NoKillZone.Sqs" Full documentation can be found in the top lines of the script. Just open it in a text program such as NotePad++ to view. For servers, call script from 'INIT.SQF' and/or 'OnPlayerRespawn.Sqf'. For SP, you can also call it from the INIT.Sqf or you can activate it via the debug console or other means such as a radio trigger. Once launched, you will get a 'confirmation' message showing script is active, what zone, and if vehicle protection is active. Other Notes: While not ‘optimized’ and the ‘cleanest’ looking script, it does work and work well. If you wish to spend one to two hours ‘optimizing’ it to save a few milliseconds, be my guest! ;-) Known Issues: Script can be run many times for the same location (marker). There is no way to exit the script without the player quitting the game. Not all parameter errors are detected, though some are (The above issues are set to be addressed in the future) Video Example: No Kill Zone Example
  22. How to add items&tools requirements

    im working on deployable objets ,, just need set any kind of item and tools to requirements and cant find the way.
  23. hi i'm up-to-date useing infstar antihack i removed from AH.sqf onMapSingleClick ''; <<< this with this i removed it but player click call carpackages player was kick out how can i fix it help me :( while{1 == 1}do { {((findDisplay 12) displayCtrl 51) ctrlRemoveAllEventHandlers _x;} forEach ['MouseButtonDblClick','MouseButtonClick','MouseButtonDown','MouseButtonUp','Draw']; "; if(_OMC)then{ _AHstring = _AHstring + " ((findDisplay 12) displayCtrl 51) ctrlSetEventHandler ['MouseButtonClick',_MBC]; ((findDisplay 12) displayCtrl 51) ctrlAddEventHandler ['MouseButtonClick',_MBC]; "; }; _AHstring = _AHstring + " "; if(!_OMC)then{ _AHstring = _AHstring + " onMapSingleClick ''; "; }; _AHstring = _AHstring + " And this is my sarepackage.sqf private ["_cost","_positionM","_Marker","_LastUsedTime","_height","_downspeed","_wealth","_distance","_boxtype","_unit","_getPos","_position","_box","_chute","_smoke","_var","_textt","_tools","_items","_walls","_supplies","_weapon","_weapon2","_weapon3","_weapon4","_weapon5","_weapon6","_giveWep","_possibleMags","_mag","_whichBuild","_crateItems","_text"]; _cost = 20000; _wealth = player getVariable["cashMoney",0]; _distance = 500; _boxtype = "USVehicleBox_EP1"; _LastUsedTime = 900; _height = 100; _downspeed = -3; _OnlineLimit = 1; _unit = player; _getPos = getPos _unit; _position = [_getPos select 0, (_getPos select 1) - 5, _height]; _positionM = [_getPos select 0, _getPos select 1]; _playerName = name player; //item lists _tools = ["ItemEtool","ItemKnife","ItemGPS","ItemFishingPole","ItemHatchet_DZE","ItemMatchbox_DZE","ItemCrowbar"]; _items = ["ItemSodaPepsi","FoodCanCorn","FoodNutmix","ItemSodaClays","FoodCanSardines","ItemKiloHemp"]; _walls = ["ItemWoodWallGarageDoor","ItemWoodWallWithDoorLg","ItemWoodWallLg","ItemWoodWallGarageDoor","ItemWoodFloor","metal_floor_kit"]; _supplies = ["CinderBlocks","MortarBucket","ItemTankTrap","PartWoodPlywood","PartWoodLumber","ItemPole","PartGlass"]; _giveWep = ["DMR","vil_SR25SD","BAF_LRR_scoped","USSR_cheytacM200_sd","m107_DZ","vil_M110sd","vil_HK417s","vil_SV_98_SD","AA12_PMC","Mk13_EP1","M32_EP1","M79_EP1","RH_sc2acog","RH_hk417sdsp","M249_EP1_DZ","M240_DZ","Mk_48_DZ","MP5SD","SVD_CAMO","M40A3","M24_des_EP1","M4A1_HWS_GL_SD_Camo","KSVK_DZE","FHQ_MSR_SD_DESERT","m8_carbine","m8_holo_sd","FHQ_XM2010_NV_DESERT","FHQ_MSR_DESERT","M110_NVG_EP1","bizon"] call BIS_fnc_selectRandom; _possibleMags = getArray (configfile >> "cfgWeapons" >> _giveWep >> "magazines"); _mag = _possibleMags select 0; //select arrays to use _crateItems = [_walls,_supplies,_items] call BIS_fnc_selectRandom; _Time = time - lastpack; if(_Time < _LastUsedTime) exitWith { // If cooldown is not done then exit script cutText [format["please wait %1 before calling in another Air Drop!",(round(_Time - _LastUsedTime))], "PLAIN DOWN"]; //display text at bottom center of screen when players cooldown is not done }; if(!(canbuild) || (inSafeZone)) exitWith { cutText ["\n\nYou are in a Safezone and cannot perform that action!" , "PLAIN DOWN"]; }; if (dayz_combat == 1) exitwith { cutText ["\n\nYou are in combat and cannot perform that action!", "PLAIN DOWN"] }; if ((count playableUnits) < _OnlineLimit) exitWith { cutText [format["Air Drop Failed. Less Than %1 Players online.",_OnlineLimit], "PLAIN DOWN"]; }; if(_wealth < _cost) exitWith { cutText [format["You need %1 coins to Call an AirDrop.",_cost], "PLAIN DOWN"]; }; player setVariable["cashMoney",(_wealth - _cost),true]; PVDZE_plr_Save = [player,(magazines player),true,true] ; publicVariableServer "PVDZE_plr_Save"; deleteMarker "MarkerDrop"; _null = createMarker ["MarkerDrop",_positionM]; "MarkerDrop" setMarkerText "Air Drop"; "MarkerDrop" setMarkerType "mil_objective"; "MarkerDrop" setMarkerColor "ColorRed"; lastpack = time; _message = format["%1 has called in an AirDrop, It is marked on your map, Go Capture it !",_playerName]; [nil,nil,rTitleText,_message, "PLAIN",6] call RE; diag_log text format["[AirDrop]: Air Drop Called By a player Successfully"]; for "_x" from 1 to 100 do { if (_x >= 2) then {cutText [format ["AIR DROP ARRIVING IN %1", 101-_x], "PLAIN DOWN"];}; uiSleep 1; }; _chute = createVehicle ["ParachuteMediumEast", _position, [], 0, "FLY"]; _chutePos = getPos _chute; _box = createVehicle [_boxtype, _chutePos, [], 0, "FLY"]; _box attachTo [_chute, [0,0,3]]; _box setVariable ["Mission",1,true]; _chute setVariable ["Mission",1,true]; _box setVariable ["ObjectID", ""]; _chute setVariable ["ObjectID", ""]; _smoke = "SmokeShellBlue" createVehicle (getPos _box); _smoke attachTo [_box, [0,0,0]]; _var = floor((random 20) + 1); //display text to alert user _textt = format ["\nCarepackage is above you!",10]; titleText [_textt,"PLAIN DOWN"]; while {getPos _box select 2 > 4} do { _chute SetVelocity [0,0,_downspeed]; uiSleep 0.1; }; detach _box; while {getPos _box select 2 > 0} do { _box setPos [getPos _box select 0, getPos _box select 1, (getPos _box select 2) - .25] }; deleteVehicle _chute; _posATL = getPosATL _box; deleteVehicle _box; _boxx = _boxtype createVehicle _posATL; _boxx setVariable ["Mission",1,true]; _boxx setVariable ["ObjectID", ""]; clearweaponcargoglobal _boxx; clearmagazinecargoglobal _boxx; {_boxx addMagazineCargoGlobal [_x, _var];} forEach _crateItems; {_boxx addWeaponCargoGlobal [_x, 1];} forEach _tools; _boxx addMagazineCargoGlobal [_mag, _var]; _boxx addWeaponCargoGlobal [_giveWep, 1];
  24. Hi, I'm trying to do a force save all on DB before the server restarts. The best situation is make Bec starts the save process 1 minute before restart. There is any way to make Bec run a server scipt? Thankyou!