View Single Post
StrikerMan780
AlliedModders Donor
Join Date: Jul 2009
Location: Canada
Old 08-17-2013 , 23:43   Re: [TF2] Projectiles Fix
Reply With Quote #10

Found out that this code works:
(Using SDKHook_Touch)
PHP Code:
public Action:CleaverTouch(entityother)
{
    new 
Team GetEntProp(entityProp_Send"m_iTeamNum");
    
    if(
IsValidClient(other))
    {        
        if(
Team == GetClientTeam(other))
        {
            return 
Plugin_Handled;
        }
        else
        {
            return 
Plugin_Continue;
        }
    }

    return 
Plugin_Continue;

IsValidClient is a stock that I had made on my own. I can post it if you'd like. It's just several checks to keep some errors from popping up.

Last edited by StrikerMan780; 08-17-2013 at 23:47.
StrikerMan780 is offline