NoShake: better description for chat
This commit is contained in:
		
							parent
							
								
									217f1680e0
								
							
						
					
					
						commit
						3017106241
					
				| @ -66,9 +66,9 @@ public void OnConVarChanged(ConVar convar, const char[] oldValue, const char[] n | |||||||
| 	g_bNoShakeGlobal = convar.BoolValue; | 	g_bNoShakeGlobal = convar.BoolValue; | ||||||
| 
 | 
 | ||||||
| 	if(g_bNoShakeGlobal) | 	if(g_bNoShakeGlobal) | ||||||
| 		CPrintToChatAll("{cyan}[NoShake] {white}has been enabled globally."); | 		CPrintToChatAll("{cyan}[NoShake] {white}Screen Shaking has been disabled globally."); | ||||||
| 	else | 	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) | 	if(g_bNoShakeGlobal) | ||||||
| 	{ | 	{ | ||||||
| 		CPrintToChat(client, "{cyan}[NoShake] {white}is currently enabled globally."); | 		CPrintToChat(client, "{cyan}[NoShake] {white}Screen Shaking is currently disabled globally."); | ||||||
| 		return; | 		return; | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	g_bNoShake[client] = !g_bNoShake[client]; | 	g_bNoShake[client] = !g_bNoShake[client]; | ||||||
| 	SetClientCookie(client, g_hNoShakeCookie, g_bNoShake[client] ? "1" : ""); | 	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."); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| //---------------------------------------------------------------------------------------------------- | //---------------------------------------------------------------------------------------------------- | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user