So the code that I have for player I would like to someone help me turn it to destory enemy only buildings
Code:
for(new i=1; i<=MaxClients; i++)
{
if(i != client && IsPlayerAlive(i) && GetClientTeam(i) != iTeam)
{
if(!TF2_IsPlayerInCondition(i, TFCond_Ubercharged))
{
new Float:flPos2[3];
GetClientAbsOrigin(i, flPos2);
new Float:flDistance = GetVectorDistance(flPos1, flPos2);
if(flDistance < 105)
{
SDKHooks_TakeDamage(i, 0, client, 99999.0, DMG_CRUSH|DMG_ALWAYSGIB);
//SDKHooks_TakeDamage(i, 0, client, 99999.0, DMG_PREVENT_PHYSICS_FORCE|DMG_CRUSH|DMG_ALWAYSGIB);
}
}
}
}
Thank you
__________________