31.03.2016, 04:39
Well there are multiple ways of doing this.
OnPlayerTakeDamage
- if(issuerid != INVALID_PLAYER_ID), Give the player back the health they lost.
SetPlayerTeam
When the player enters the certain area, set their team to a specific number. They won't be able to damage any other players on the same team. So they won't be able to damage anyone in the same area. Don't forget to reset the players team to NO_TEAM when they leave the area though.
OnPlayerTakeDamage
- if(issuerid != INVALID_PLAYER_ID), Give the player back the health they lost.
SetPlayerTeam
When the player enters the certain area, set their team to a specific number. They won't be able to damage any other players on the same team. So they won't be able to damage anyone in the same area. Don't forget to reset the players team to NO_TEAM when they leave the area though.