I want to detect if 2 or more players from terrorsits is close to 1 from Ct... Any ideea?
I can't think of other ways
Code:
public client_PreThink()
{
static X[32], Y[32], XNum, YNum, Float:XOrigin[ 3 ], Float:YOrigin[ 3 ], Float:fDistance
get_players(X, XNum, "ae", "TERRORIST")
get_players(Y, YNum, "ae", "CT")
pev(XNum, pev_origin, XOrigin)
pev(YNum, pev_origin, YOrigin)
fDistance = get_distance_f( XOrigin, YOrigin)
if( fDistance <= 100.0)
{
if (XNum == 2 && YNum == 1)
{
// something
}
}
}