diff --git a/BigBaseV2/src/features.hpp b/BigBaseV2/src/features.hpp index 1362740c..216278c4 100644 --- a/BigBaseV2/src/features.hpp +++ b/BigBaseV2/src/features.hpp @@ -29,6 +29,7 @@ namespace big void run_tick(); void script_func(); + void disable_phone(); void god_mode(); void join_message(Player player); void never_wanted(); diff --git a/BigBaseV2/src/features/looped/disable_phone.cpp b/BigBaseV2/src/features/looped/disable_phone.cpp new file mode 100644 index 00000000..c9fdf0e9 --- /dev/null +++ b/BigBaseV2/src/features/looped/disable_phone.cpp @@ -0,0 +1,11 @@ +#include "features.hpp" +#include "script_global.hpp" + +namespace big +{ + void features::disable_phone() + { + if (g_settings.options["disable_phone"].get()) + *script_global(19664).as() = 1; + } +} \ No newline at end of file diff --git a/BigBaseV2/src/settings.h b/BigBaseV2/src/settings.h index fec40e54..d06b0350 100644 --- a/BigBaseV2/src/settings.h +++ b/BigBaseV2/src/settings.h @@ -13,6 +13,7 @@ namespace big nlohmann::json options; nlohmann::json default_options = R"({ + "disable_phone": false, "disable_chat_censoring": false, "god_mode": false, "join_message": false,