Search the Community
Showing results for tags 'Admin menu'.
Found 2 results
-
ARMA_AC Arma 3 anti cheat & admin menu
Utopia_Amaury posted a topic in ARMA 3 - ADDONS & MODS: COMPLETE
ARMA_AC Arma 3 anti cheat & admin menu by [utopia]Amaury Description: Arma_ac is an anti hack "scripts only" project with an admin menu , easy to use and configure . At the beginning it was just an anti cheat for my own server but after the server has closed . 1 year later i just wanted to share my old project , i updated it a little and here i'm. According to the MIT license , you are completly free to copy , modify and use all the scripts in this anti hack , you just need to keep my name in the project. Features: -Admin menu Logs menu with all the AC logs displayed. Admin menu to adminisrate the players (heal,kill,ban,kick,...). Objects creation menu : allow the admin to spawn vehicles , objects , weapons. Console menu where you can enter script lines. Config file maker , helps the user to create his config.hpp file , really easy to use. -Anti cheat Allowed weapons system. Allowed vehicles system. Chat filtering system : can filter ip , url , words entered by the user in the chat bar. Variables detection system : will eject the user with the non listed variables. Allowed displays system : users with uncorrect displays will be kicked. Bad files system : detect cheat files in the arma 3 folder. Installation: Create a description.ext file in your mission folder and add this code : view plain #include "ARMA_AC\config.hpp" #include "ARMA_AC\Menu\Menus\menus.hpp" Note : some conflits can happen with the mp_config.hpp if the CfgRemoteExec class already exists , to fix it just merge the content of the 2 classes in 1. Don't forget to add your UID to the config.hpp file in admins[] , and check the config.hpp file . Create a init.sqf file in your mission folder and add this code : view plain #define AC_FOLDER (getText (missionConfigFile >> "ARMA_AC" >> "folder")) if(isServer) then { [] execVM (AC_FOLDER + "\initServer.sqf"); if(hasInterface) then { waitUntil { !isNil "ac_fnc_log" }; [] execVM (AC_FOLDER + "\initClient.sqf"); }; }else{ [] execVM (AC_FOLDER + "\initClient.sqf"); }; Then copy the Arma_AC folder in your arma 3 mission. There is an example mission included with the download. Notes: This project is compatible with aclogger https://github.com/AmauryD/aclogger an extension who creates .log files for arma 3 (this is recommanded to install it but not necessary) . Project link (github) : https://github.com/AmauryD/Arma_AC with more infos . Download link (github) : https://github.com/AmauryD/Arma_AC/archive/master.zip You can contact me on contact@utopiagaming.org . Do not hesitate to tell me if there are bugs , performance problems or other things , ... I didn't really know where to post this thread , it's not a mission , it's not a single script , it's not really server administration , ... so tell me if it's in the wrong place . -
Editing variables with addAction?
hard5c0p3k1ng posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I'm trying to make an arma 3 Life admin scroll menu and i'm stuck at trying to spawn in the virtual items. Instead of having 128 block of code to spawn in 64 items I would rather cut that down if there is a way to edit variables with addActions. This is the layout of the admin menu: AdminMenu_19 = player addAction["<t size=""1.1"" font=""TahomaB"" color=""#FFFFFF"">500k Cash</t>", AdminMenu_LifeCash500k, nil,1.5, true, false]; ^ that will call the function AdminMenu_LifeCash500k AdminMenu_LifeCash500k = { _code = { if (!isNil "life_no_injection") then { life_no_injection = true; }; life_cash = life_cash + 542940; if (!isNil "life_no_injection") then { life_no_injection = false; }; }; call _code; hint "$500,000 given"; }; command to add virtual items: [true,"ITEM",AMOUNT OF ITEM] call life_fnc_handleInv; If this could also be done with the amount of item as well that will really help, I have that done now with: AdminMenu_23 = player addAction["<t size=""1.1"" font=""TahomaB"" color=""#FFFFFF"">1</t>",AdminMenu_amount1,nil,1.5, true, false]; AdminMenu_amount1 = { _code = { amount = 1; }; call _code; hint format["%1 has been selected",amount]; }; I need 2 variables called in the addAction, amount and Item.