open.mp
open.mp copied to clipboard
SetSpawnInfo and SetPlayerTeam no player damage allowed
Describe the bug If SetSpawnInfo is used with team 0 (i assume other ids work as long as they are the same), and then SetPlayerTeam is used to set to NO_TEAM in order for damage to work, server still consider players in same team and does not apply damage. Also GetPlayerTeam returns NO_TEAM as it should.
To Reproduce Steps to reproduce the behavior:
- SetSpawnInfo for 2 players, make sure team is same.
- SetPlayerTeam to NO_TEAM for both players
- GetPlayerTeam to make sure its still NO_TEAM (should be).
- Punch/shoot each other, damage is not applied (It should be since both polayers are NO_TEAM)
Expected behavior Team argument from SetSpawnInfo should be influenced/modified by Get/SetPlayerTeam and be one and the same. Players in same teams can not damage each other, except for for players that have NO_TEAM, they can damage each other and other teams.
Screenshots and/or logs If applicable, add screenshots and/or log output to help explain your problem.
Release version RC2