Skip to content

Commit

Permalink
chore(redm): add FCVAR_PROTECTED flag to redm_version cvar
Browse files Browse the repository at this point in the history
Added the FCVAR_PROTECTED flag to the redm_version cvar in order to prevent it from being modified by clients. This ensures that the server maintains control over this variable and its value.

[skip ci]
  • Loading branch information
SergeyShorokhov committed Jan 30, 2024
1 parent fc3cb44 commit ac9d6ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cstrike/addons/amxmodx/scripting/ReDeathmatch.sma
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public plugin_init() {
register_plugin("ReDeathmatch", REDM_VERSION, "Sergey Shorokhov")
register_dictionary("redm/redm.txt")

create_cvar("redm_version", REDM_VERSION, (FCVAR_SERVER|FCVAR_SPONLY))
create_cvar("redm_version", REDM_VERSION, (FCVAR_SERVER|FCVAR_SPONLY|FCVAR_PROTECTED))

if (!is_regamedll()) {
LogMessageEx(Fatal, "^n ReGameDLL not found!")
Expand Down

0 comments on commit ac9d6ff

Please sign in to comment.