feat(Features): Added disable phone feature
This commit is contained in:
parent
dd4fdcd427
commit
9be7d36ce3
@ -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();
|
||||
|
11
BigBaseV2/src/features/looped/disable_phone.cpp
Normal file
11
BigBaseV2/src/features/looped/disable_phone.cpp
Normal file
@ -0,0 +1,11 @@
|
||||
#include "features.hpp"
|
||||
#include "script_global.hpp"
|
||||
|
||||
namespace big
|
||||
{
|
||||
void features::disable_phone()
|
||||
{
|
||||
if (g_settings.options["disable_phone"].get<bool>())
|
||||
*script_global(19664).as<int*>() = 1;
|
||||
}
|
||||
}
|
@ -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,
|
||||
|
Reference in New Issue
Block a user