Quote:
Originally Posted by NiHiLaNTh
Actually it should be
Code:
#define IsPlayer(%1) ( 1 <= %1 <= 32 )
Anyway, to filter valid player you can also use
Code:
public fwButtonUsed(idcaller)
{
if ( !is_user_alive ( idcaller ) )
return HAM_IGNORED
static CsTeams:iTeam
iTeam = cs_get_user_team ( idcaller )
if ( IsFreeRun && iTeam == CS_TEAM_T )
return HAM_SUPERCEDE
return HAM_IGNORED
}
|
1. Lol, what is the difference? o.O
My code = 1 to 32, your code = 1 to 32... is the same thing with differents operators...
2. Yeah, i thinked about that check, but i didn't sure about that...
@ t3hNox
mMm, strange, should work, i think...
Test this:
Code:
public fwButtonUsed(idcaller)
{
if (IsFreeRun && cs_get_user_team(idCaller) == CS_TEAM_T && is_user_alive(idCaller) )
return HAM_SUPERCEDE;
return HAM_IGNORED;
}
But is practicaly the same thing...
__________________