NoShake: better description for chat

This commit is contained in:
Dogan 2019-09-17 17:39:54 +02:00
parent a818cd24bf
commit 8af0baef6e

View File

@ -66,9 +66,9 @@ public void OnConVarChanged(ConVar convar, const char[] oldValue, const char[] n
g_bNoShakeGlobal = convar.BoolValue;
if(g_bNoShakeGlobal)
CPrintToChatAll("{cyan}[NoShake] {white}has been enabled globally.");
CPrintToChatAll("{cyan}[NoShake] {white}Screen Shaking has been disabled globally.");
else
CPrintToChatAll("{cyan}[NoShake] {white}has been disabled globally.");
CPrintToChatAll("{cyan}[NoShake] {white}Screen Shaking has been reenabled globally.");
}
@ -99,13 +99,13 @@ public void ToggleShake(int client)
{
if(g_bNoShakeGlobal)
{
CPrintToChat(client, "{cyan}[NoShake] {white}is currently enabled globally.");
CPrintToChat(client, "{cyan}[NoShake] {white}Screen Shaking is currently disabled globally.");
return;
}
g_bNoShake[client] = !g_bNoShake[client];
SetClientCookie(client, g_hNoShakeCookie, g_bNoShake[client] ? "1" : "");
CPrintToChat(client, "{cyan}[NoShake] {white}%s", g_bNoShake[client] ? "has been enabled." : "has been disabled.");
CPrintToChat(client, "{cyan}[NoShake] {white}%s", g_bNoShake[client] ? "You turned off Screen Shaking." : "You turned on Screen Shaking.");
}
//----------------------------------------------------------------------------------------------------