Found out that this code works:
(Using SDKHook_Touch)
PHP Code:
public Action:CleaverTouch(entity, other)
{
new Team = GetEntProp(entity, Prop_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.