File tree Expand file tree Collapse file tree 3 files changed +18
-13
lines changed
Expand file tree Collapse file tree 3 files changed +18
-13
lines changed Original file line number Diff line number Diff line change 1111#tryinclude <vip_version>
1212
1313#if ! defined PL_VERSION
14- #define PL_VERSION " 4.0 Alpha 7 "
14+ #define PL_VERSION " 4.0 Alpha 8 "
1515#endif
16- #define PL_AUTHOR " R1KO, FIVE and HLmod Community"
16+ #define PL_AUTHOR " R1KO, FIVE and HLmod Community"
1717
18- #define CONFIG_MAIN_PATH " data/vip/cfg"
19- #define CONFIG_GROUPS_FILENAME " groups.ini"
20- #define CONFIG_INFO_FILENAME " info.ini"
21- #define CONFIG_SORT_FILENAME " sort.ini"
22- #define CONFIG_TIMES_FILENAME " times.ini"
23- #define CONFIG_DOWNLOADLIST_FILENAME " downloadlist.txt"
24- #define LOGS_FILENAME " VIP-Core.log"
25- #define LOGS_DUMP_FILENAME " VIP-Core-Dump.log"
26- #define LOGS_DEBUG_FILENAME " VIP-Core-Debug.log"
18+ #define CONFIG_MAIN_PATH " data/vip/cfg"
19+ #define CONFIG_GROUPS_FILENAME " groups.ini"
20+ #define CONFIG_INFO_FILENAME " info.ini"
21+ #define CONFIG_SORT_FILENAME " sort.ini"
22+ #define CONFIG_TIMES_FILENAME " times.ini"
23+ #define CONFIG_DOWNLOADLIST_FILENAME " downloadlist.txt"
24+ #define LOGS_FILENAME " VIP-Core.log"
25+ #define LOGS_DUMP_FILENAME " VIP-Core-Dump.log"
26+ #define LOGS_DEBUG_FILENAME " VIP-Core-Debug.log"
2727
2828enum DBG_Level
2929{
Original file line number Diff line number Diff line change @@ -272,7 +272,7 @@ public int Native_IsClientFeatureUse(Handle hPlugin, int iNumParams)
272272 char sFeature [D_FEATURENAME_LENGTH ];
273273 GetNativeString (2 , sFeature , sizeof (sFeature ));
274274
275- return g_ePlayerData [iClient ].GetFeatureIDByName (sFeature ) != - 1 ? true : false ;
275+ return g_ePlayerData [iClient ].GetFeatureToggleStatus (sFeature ) == ENABLED ;
276276}
277277
278278public int Native_GetClientFeatureBool (Handle hPlugin , int iNumParams )
Original file line number Diff line number Diff line change @@ -383,7 +383,12 @@ void OpenPlayerFeaturesInfoMenu(int iClient)
383383 }
384384 else
385385 {
386- g_hGroups .GetArray (g_ePlayerData [iTarget ].GetGroupIDByMaxPriority (), hGroup , sizeof (hGroup ));
386+ int iPriority = g_ePlayerData [iTarget ].GetGroupIDByMaxPriority ();
387+
388+ if (iPriority != - 1 )
389+ {
390+ g_hGroups .GetArray (iPriority , hGroup , sizeof (hGroup ));
391+ }
387392 }
388393
389394
You can’t perform that action at this time.
0 commit comments