Skip to content

Commit

Permalink
Merge pull request #128 from Rushaway/patch1
Browse files Browse the repository at this point in the history
fix: invalid steam account id
  • Loading branch information
R1KO authored Feb 18, 2024
2 parents f579f06 + a08048c commit ea3612d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion addons/sourcemod/scripting/VIP_Core.sp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <clientprefs>

#if !defined VIP_VERSION
#define VIP_VERSION "3.0.4 R"
#define VIP_VERSION "3.0.5 R"
#endif


Expand Down
6 changes: 6 additions & 0 deletions addons/sourcemod/scripting/vip/UTIL.sp
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,12 @@ void UTIL_ADD_VIP_PLAYER(int iAdmin = 0,
FormatEx(SZF(szTargetInfo), "unknown (%s, unknown)", szQuery);
}

if (iAccountID == 0)
{
UTIL_Reply(iAdmin, "%t", "ADMIN_VIP_ADD_FAILED");
return;
}

DataPack hDataPack = new DataPack();

// Admin
Expand Down

0 comments on commit ea3612d

Please sign in to comment.