View Single Post
Despirator
Senior Member
Join Date: Jun 2011
Location: Kazakhstan ->Shymkent
Old 03-31-2013 , 04:21   Re: [CS:S] No Collide Team-mate Plugin
Reply With Quote #6

Quote:
Originally Posted by Zephyrus View Post
you sure? engine is kinda funky, even player_team and player_death are fired sometimes with non-existant userids
from the sp file

PHP Code:
if (IsValidClient(ent1) && IsValidClient(ent2))
        {
        if (
GetClientTeam(ent1) != GetClientTeam(ent2))
        {
            
result true;
            return 
Plugin_Handled;
        }
        
result false;
        return 
Plugin_Handled;
    }
    return 
Plugin_Continue;

stock bool:IsValidClient(client
{
    if (
client <= MaxClients && IsClientInGame(client)) 
        return 
true
     
    return 
false

i'm sure

Last edited by Despirator; 03-31-2013 at 04:22.
Despirator is offline