SprayManager: Change to -201 instead of 0, allows other plugins to listen.
This commit is contained in:
		
							parent
							
								
									d99b93d29e
								
							
						
					
					
						commit
						2704d7a289
					
				@ -390,7 +390,7 @@ public Action OnPlayerRunCmd(int client, int &buttons, int &impulse)
 | 
			
		||||
			ForceSpray(client, client, false);
 | 
			
		||||
			g_fNextSprayTime[client] = 0.0;
 | 
			
		||||
 | 
			
		||||
			impulse = 0; //wow
 | 
			
		||||
			impulse = -201; //inverse to block, but allow other plugins to listen for it.
 | 
			
		||||
 | 
			
		||||
			return Plugin_Changed;
 | 
			
		||||
		}
 | 
			
		||||
@ -406,7 +406,7 @@ public Action OnPlayerRunCmd(int client, int &buttons, int &impulse)
 | 
			
		||||
			ForceSpray(client, client, false);
 | 
			
		||||
			g_fNextSprayTime[client] = GetGameTime() + (g_cvarDecalFrequency.FloatValue / 2);
 | 
			
		||||
 | 
			
		||||
			impulse = 0; //wow
 | 
			
		||||
			impulse = -201; //inverse to block, but allow other plugins to listen for it.
 | 
			
		||||
 | 
			
		||||
			return Plugin_Changed;
 | 
			
		||||
		}
 | 
			
		||||
@ -1677,7 +1677,7 @@ public Action Command_HideSpray(int client, int argc)
 | 
			
		||||
 | 
			
		||||
        g_bHasSprayHidden[client][iTarget] = true;
 | 
			
		||||
        PrintToChat(client, "\x01\x04[SprayManager]\x01 You have hidden \x04%N\x01's spray.", iTarget); //'
 | 
			
		||||
        
 | 
			
		||||
 | 
			
		||||
        char sAuthID[32];
 | 
			
		||||
        char sAuthID_target[32];
 | 
			
		||||
        GetClientAuthId(client, AuthId_Steam2, sAuthID, sizeof(sAuthID), false);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user