Skip to content

Commit

Permalink
Merge pull request #23 from abnerfs/v4.0.3
Browse files Browse the repository at this point in the history
Remove print to chat on play sound
  • Loading branch information
abnerfs committed Jul 30, 2023
2 parents ab55272 + 935842d commit 38e643e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Binary file modified addons/sourcemod/plugins/abner_res.smx
Binary file not shown.
4 changes: 1 addition & 3 deletions addons/sourcemod/scripting/abner_res.sp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ bool soundLib;

#pragma newdecls required
#pragma semicolon 1
#define PLUGIN_VERSION "4.0.2"
#define PLUGIN_VERSION "4.0.3"

ConVar g_hCTPath;
ConVar g_hTRPath;
Expand Down Expand Up @@ -171,9 +171,7 @@ void PlayMusicAll(char[] szSound)
if (numberRetrieved > 0)
Format(soundKey, sizeof(soundKey), buffer[numberRetrieved - 1]);

PrintToChatAll(soundKey);
soundNames.GetString(soundKey, soundPrint, sizeof(soundPrint));

CPrintToChatAll("%t%t", "prefix", "mp3 print", !StrEqual(soundPrint, "") ? soundPrint : szSound);
}
}
Expand Down

0 comments on commit 38e643e

Please sign in to comment.