Hi
Since i'm not so good with hamsandwich, i ask u guys for help.
This is the thing:
I'm making an game menu where i need friendlyfire in Terrorist team under the specific game only and i want to use takedamage, since mp_friendlyfire didn't work.
Request in the TakeDamage:
Terrorist vs Terrorist under a specific "
game".
Etc.
PHP Code:
public fwdTakeDamage(iVictim, iInflictor, iAttacker, Float:flDamage, iDmgBits)
{
if( (is_user_connected(iAttacker)) && (GAME_WAR <= g_iCurrentGame <= GAME_INTERVENTION <= g_iCurrentGame == GAME_SCOUT) )
{
AttackerTeam = cs_get_user_team(iAttacker);
VictimsTeam = cs_get_user_team(iVictim);
if(AttackerTeam == CS_TEAM_T && AttackerTeam == VictimsTeam)
{
return HAM_SUPERCEDE;
}
}
return HAM_IGNORED
}
Thanks
__________________