Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rg_check_win_conditions native #142

Closed
twisterniq opened this issue Aug 26, 2019 · 0 comments
Closed

rg_check_win_conditions native #142

twisterniq opened this issue Aug 26, 2019 · 0 comments

Comments

@twisterniq
Copy link

twisterniq commented Aug 26, 2019

It would be useful to use when we change player's team with rg_set_user_team or rg_switch_team. I explain it in the next example:

We have 2 players, both of them in Terrorist team and alive. We set to one of them the Counter-Terrorist team by rg_set_user_team(id, TEAM_CT); and then kill him. The round will end.

But if one player is dead and another is alive and that dead player will change team by rg_set_user_team(id, TEAM_CT); the round will not end. In this case we can use then this native to check win conditions. So it will check if round should be ended.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant