i used something like this
PHP Code:
public FwdTouch(ptr, ptd)
{
if(pev_valid(ptr) && pev_valid(ptd))
{
static classname1[32], classname2[32];
pev(ptr, pev_classname, classname1, sizeof(classname1) - 1);
pev(ptd, pev_classname, classname2, sizeof(classname2) - 1);
if( equali(classname1, "player") && equali(classname2, "player") )
{
new CsTeams:ptrTeam = cs_get_user_team(ptr)
new CsTeams:ptdTeam = cs_get_user_team(ptd)
if (ptrTeam == ptdTeam)
{
new Float:y[2][3]
pev( ptr, pev_origin, y[0] )
pev( ptd, pev_origin, y[1] )
new x, g_playerpush = get_cvar_num("amx_playerpush")
for ( x = 0;x <= 2;x++ )
{
y[1][x] -= y[0][x]
y[1][x] *= g_playerpush
}
set_pev(ptr, pev_velocity, y[1])
}
}
}
}
Exolent, can i make SOLID entity, like in walkgurad plugin, around player, and block team player touch?
but still i need to allow enemy player walk thru that entity?