Skip to content

Commit

Permalink
Add version cvar
Browse files Browse the repository at this point in the history
New cvar for plugin version
  • Loading branch information
Hexer10 committed Jan 14, 2018
1 parent 35c6bcf commit 53fe424
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions addons/sourcemod/scripting/hextags.sp
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ public APLRes AskPluginLoad2(Handle myself, bool late, char[] error, int err_max

public void OnPluginStart()
{
CreateConVar("sm_hextags_version", PLUGIN_VERSION, "HexTags plugin version", FCVAR_SPONLY|FCVAR_REPLICATED|FCVAR_NOTIFY);

//Reg Cmds
RegAdminCmd("sm_reloadtags", Cmd_ReloadTags, ADMFLAG_BAN);

Expand All @@ -85,6 +87,7 @@ public void OnPluginStart()
if (bLate)
for (int i = 1; i <= MaxClients; i++)if (IsClientInGame(i)) OnClientPostAdminCheck(i); //LateLoad


//Event Hooks
HookEvent("player_spawn", Event_CheckTags);
HookEvent("player_team", Event_CheckTags);
Expand Down

0 comments on commit 53fe424

Please sign in to comment.