Spring break cleanup.

Cleaning up all useless tabs, spaces, indents, you name it.
This commit is contained in:
zaCade
2018-07-23 17:06:03 +02:00
parent 0e8490f32f
commit c8b3433700
17 changed files with 925 additions and 962 deletions
+19 -19
View File
@@ -22,11 +22,11 @@ Handle g_hCustomMessageFile2;
// Purpose:
//----------------------------------------------------------------------------------------------------
public Plugin myinfo = {
name = "Connect Announce",
author = "Neon + Botox",
name = "Connect Announce",
author = "Neon + Botox",
description = "Connect Announcer",
version = "2.0",
url = ""
version = "2.0",
url = ""
}
//----------------------------------------------------------------------------------------------------
@@ -150,16 +150,16 @@ public Action Command_ResetJoinMsg(int client, int args)
SetFailState("[ConnectAnnounce] Config file missing!");
return Plugin_Handled;
}
KvRewind(g_hCustomMessageFile);
if (KvJumpToKey(g_hCustomMessageFile, sAuth, true))
KvSetString(g_hCustomMessageFile, "message", "reset");
KvRewind(g_hCustomMessageFile);
KeyValuesToFile(g_hCustomMessageFile, g_sCustomMessageFile);
CPrintToChat(client, "[ConnectAnnounce] Your Join Message got reset.");
return Plugin_Handled;
@@ -272,9 +272,9 @@ public void TQueryCB(Handle owner, Handle rs, const char[] error, any data)
else
ReplaceString(sRawMsg, sizeof(sRawMsg), "{COUNTRY}", "");
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////
if (g_hCustomMessageFile2 != null)
CloseHandle(g_hCustomMessageFile2);
@@ -287,27 +287,27 @@ public void TQueryCB(Handle owner, Handle rs, const char[] error, any data)
}
KvRewind(g_hCustomMessageFile2);
char sFinalMessage[512];
char sCustomMessage[256];
if (KvJumpToKey(g_hCustomMessageFile2, sAuth))
{
{
KvGetString(g_hCustomMessageFile2, "message", sCustomMessage, sizeof(sCustomMessage), "");
if (StrEqual(sCustomMessage, "reset"))
CPrintToChatAll(sRawMsg);
else
{
{
Format(sFinalMessage, sizeof(sFinalMessage), "%s %s", sRawMsg, sCustomMessage);
CPrintToChatAll(sFinalMessage);
}
}
else
CPrintToChatAll(sRawMsg);
}
//----------------------------------------------------------------------------------------------------
// Purpose:
@@ -321,7 +321,7 @@ public void OnClientPostAdminCheck(int client)
GetClientAuthId(client, AuthId_Steam2, sAuth, sizeof(sAuth));
strcopy(sAuth, sizeof(sAuth), sAuth[8]);
char sQuery[512];
Format(sQuery, sizeof(sQuery), "SELECT COUNT(*) AS rank FROM hlstats_Players WHERE hlstats_Players.game = 'css-ze' AND hideranking = 0 AND skill > (SELECT skill from hlstats_Players JOIN hlstats_PlayerUniqueIds ON hlstats_Players.playerId = hlstats_PlayerUniqueIds.playerId WHERE uniqueId = '%s' AND hlstats_PlayerUniqueIds.game = 'css-ze')", sAuth);
SQL_TQuery(g_hDatabase, TQueryCB, sQuery, GetClientUserId(client));