Skip to content

Commit

Permalink
fixes non-ranked players being kicked from server when ck_prestige_ra…
Browse files Browse the repository at this point in the history
…nk = 0 (#544)
  • Loading branch information
dPexxIAM authored Dec 28, 2022
1 parent 12a223d commit dfdd356
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/sourcemod/scripting/surftimer/sql.sp
Original file line number Diff line number Diff line change
Expand Up @@ -1623,7 +1623,7 @@ public void sql_selectRankedPlayersRankCallback(Handle owner, Handle hndl, const
CS_SetClientContributionScore(client, -g_PlayerRank[client][style]);
}
}
else if (style == 0 && GetConVarInt(g_hPrestigeRank) >= 0 && !g_bPrestigeCheck[client])
else if (style == 0 && GetConVarInt(g_hPrestigeRank) > 0 && !g_bPrestigeCheck[client])
KickClient(client, "You must be at least rank %i to join this server", GetConVarInt(g_hPrestigeRank));

if (!g_bSettingsLoaded[client] && style == (MAX_STYLES - 1))
Expand Down

0 comments on commit dfdd356

Please sign in to comment.