diff --git a/BigBaseV2/src/features.cpp b/BigBaseV2/src/features.cpp index 88903fab..78bb6014 100644 --- a/BigBaseV2/src/features.cpp +++ b/BigBaseV2/src/features.cpp @@ -13,6 +13,7 @@ namespace big update_screen_sizes(); god_mode(); + never_wanted(); off_radar(); no_ragdoll(); } diff --git a/BigBaseV2/src/features.hpp b/BigBaseV2/src/features.hpp index 0c43edc1..2b2ed03a 100644 --- a/BigBaseV2/src/features.hpp +++ b/BigBaseV2/src/features.hpp @@ -24,6 +24,7 @@ namespace big void script_func(); void god_mode(); + void never_wanted(); void off_radar(); void no_ragdoll(); diff --git a/BigBaseV2/src/features/never_wanted.cpp b/BigBaseV2/src/features/never_wanted.cpp new file mode 100644 index 00000000..4a1aa361 --- /dev/null +++ b/BigBaseV2/src/features/never_wanted.cpp @@ -0,0 +1,26 @@ +#include "features.hpp" + +namespace big +{ + static bool bLastNeverWanted = false; + + void features::never_wanted() + { + QUEUE_JOB_BEGIN_CLAUSE() + { + bool bNeverWanted = g_settings.options["never_wanted"].get(); + + if (bNeverWanted && PLAYER::GET_PLAYER_WANTED_LEVEL(g_playerId) > 0) + { + PLAYER::SET_PLAYER_WANTED_LEVEL(g_playerId, 0, true); + PLAYER::SET_MAX_WANTED_LEVEL(0); + } + else if (!bNeverWanted && bNeverWanted != bLastNeverWanted) + { + PLAYER::SET_MAX_WANTED_LEVEL(5); + } + + bLastNeverWanted = bNeverWanted; + }QUEUE_JOB_END_CLAUSE + } +} \ No newline at end of file