Skip to content

Commit f5bd4a1

Browse files
authored
Merge pull request #2 from theelsaud/dev
Update Alpha 8
2 parents b62bb29 + 5c397eb commit f5bd4a1

File tree

3 files changed

+18
-13
lines changed

3 files changed

+18
-13
lines changed

scripting/VIP-Core.sp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@
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

2828
enum DBG_Level
2929
{

scripting/VIP-Core/API.sp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

278278
public int Native_GetClientFeatureBool(Handle hPlugin, int iNumParams)

scripting/VIP-Core/menus/AdminMenu.sp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)