Browse Source

Changed to slightly better messages again

nosoop 6 years ago
parent
commit
8a61d75066
1 changed files with 7 additions and 5 deletions
  1. 7 5
      scripting/source_cbl.sp

+ 7 - 5
scripting/source_cbl.sp

@@ -9,7 +9,7 @@
 #pragma newdecls required
 #include "source_cbl/webapi.sp"
 
-#define PLUGIN_VERSION "0.2.4"
+#define PLUGIN_VERSION "0.2.5"
 public Plugin myinfo = {
 	name = "[CSRD] SourceCBL Integration",
 	author = "nosoop",
@@ -24,7 +24,8 @@ char g_CommunityKickLog[PLATFORM_MAX_PATH];
 
 public void OnPluginStart() {
 	CreateConVar("sm_scbl_enabled", "1",
-			"Teamwork.TF convar for A2S_RULES's sake.  Does absolutely nothing else.",
+			"Teamwork.TF convar for A2S_RULES's sake.  Does absolutely nothing else, "
+			... "since it's always going to be enabled anyways.",
 			FCVAR_NOTIFY);
 	
 	// really though, does this actually matter?  we're just going to skip the thing anyways
@@ -75,8 +76,8 @@ public void OnSteamAuthBanStatusReceived(const char[] steamid64, bool bBanned, i
 	int client = GetClientOfUserId(userid);
 	if (bBanned && client) {
 		KickClient(client,
-				"You have been banned by SourceCBL for hacking / cheating."
-				... "\nVisit www.SourceCBL.com for more information.");
+				"You have been banned by SourceCBL for hacking / cheating.\n"
+				... "Visit www.SourceCBL.com for more information.");
 		
 		LogToFile(g_CommunityKickLog, "Kicked \"%L\" from server.", client);
 	}
@@ -86,6 +87,7 @@ public void OnCommandBanStatusReceived(const char[] steamid64, bool bBanned, int
 	int client = requester == REQUESTER_CONSOLE? 0 : GetClientOfUserId(requester);
 	
 	if (requester == REQUESTER_CONSOLE || client) {
-		ReplyToCommand(client, "Steam account %s CBL status: %b", steamid64, bBanned);
+		ReplyToCommand(client, "Account %s SourceCBL status: %s", steamid64,
+				bBanned? "banned" : "not banned");
 	}
 }