Skip to content

Commit

Permalink
Delete handles
Browse files Browse the repository at this point in the history
  • Loading branch information
Bara committed Jan 8, 2018
1 parent e5df38c commit fb30f99
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
22 changes: 22 additions & 0 deletions addons/sourcemod/configs/ttt/hud_config.ini
@@ -0,0 +1,22 @@
"TTT-HUD"
{
// First X-X is the range and the second is the translation name

"Health"
{
"1-20" "NearDeath"
"21-40" "BadlyWounded"
"41-60" "Wounded"
"61-80" "Hurt"
"81-X" "Healthy"
}

"Karma"
{
"75-85" "Liability"
"86-95" "Dangerous"
"96-105" "TriggerHappy"
"106-125" "Crude"
"126-150" "Reputable"
}
}
5 changes: 5 additions & 0 deletions addons/sourcemod/scripting/ttt/ttt_models.sp
Expand Up @@ -47,6 +47,7 @@ public void OnMapStart()

if (!g_bEnable)
{
delete hConfig;
return;
}

Expand Down Expand Up @@ -195,6 +196,8 @@ public void OnMapStart()
else
{
SetFailState("Config for '%s' not found!", "Models");

delete hConfig;
return;
}
delete hConfig;
Expand All @@ -215,6 +218,8 @@ void SetModel(int client, int role)
if (!FileExists(CONFIG_FILE))
{
SetFailState("[TTT-Models] '%s' not found!", CONFIG_FILE);

delete hConfig;
return;
}

Expand Down

0 comments on commit fb30f99

Please sign in to comment.