12.09.2016, 23:44
I'm semi-sure what you need to do is check the if statements, as they seem excessive, relative to what you are checking.
&& != ==, If you confirm one, you then don't need to confirm the other.
What also will happen, is if someone gets away from someone, and doesn't stream back in before the war is finished, their marker will be visible to the player all the time. Same in regards to Undercover. If they switch the state outside of the stream area, they'll be visible until they stream back in.
-Edit- Ignore my comment regarding the usage of SetPlayerColor and the way I said about SetPlayerMarkerForPlayer. It appears I haven't looked at my own code for a long while.
&& != ==, If you confirm one, you then don't need to confirm the other.
What also will happen, is if someone gets away from someone, and doesn't stream back in before the war is finished, their marker will be visible to the player all the time. Same in regards to Undercover. If they switch the state outside of the stream area, they'll be visible until they stream back in.
-Edit- Ignore my comment regarding the usage of SetPlayerColor and the way I said about SetPlayerMarkerForPlayer. It appears I haven't looked at my own code for a long while.