Raised This Month: $ Target: $400
 0% 

[CSS] HardCoreFriendlyFire


Post New Thread Reply   
 
Thread Tools Display Modes
Author
alongub
Veteran Member
Join Date: Aug 2009
Location: Israel
Plugin ID:
3408
Plugin Version:
1.0.0.0
Plugin Category:
Gameplay
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
    1 
    Plugin Description:
    plugin for friendly fire damage and FFA game
    Old 02-19-2013 , 14:54   Re: [CSS] HardCoreFriendlyFire
    Reply With Quote #1

    Cache cvars instead of using GetConVarBool in event hooks.

    You can also rewrite

    Code:
    stock bool:isClientConnectedIngameAlive(client){
    	
    	if(isClientConnectedIngame(client)){
    		
    		if(IsPlayerAlive(client) == true && IsClientObserver(client) == false){
    			
    			return true;
    			
    		}else{
    			
    			return false;
    			
    		}
    		
    	}else{
    		
    		return false;
    		
    	}
    	
    }
    As

    Code:
    stock bool:isClientConnectedIngameAlive(client) {
    	if (!isClientConnectedIngame(client))
    		return false;
    
    	return (IsPlayerAlive(client) == true && IsClientObserver(client) == false);	
    }
    Same for isClientConnectedIngame.
    __________________

    Last edited by alongub; 02-19-2013 at 14:54.
    alongub is offline
    Reply



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 13:41.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode