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

[Feature Request] Reset Data #152

Open
SanjaySRocks opened this issue Nov 19, 2019 · 4 comments
Open

[Feature Request] Reset Data #152

SanjaySRocks opened this issue Nov 19, 2019 · 4 comments

Comments

@SanjaySRocks
Copy link

please add these

  1. rg_reset_player_score() which will reset players kills & deaths in scoreboard.
  2. rg_get_player_score() to get data and can be used in plugins.

Thank you.

@twisterniq
Copy link

twisterniq commented Nov 19, 2019

set_entvar(id, var_frags, 0.0);
set_member(id, m_iDeaths, 0);

After this you can update information in scoreboard sending ScoreInfo message.

To get use get_entvar + get_member.

@SanjaySRocks
Copy link
Author

@eat1k Can you tell me which one is better: reapi reset or default
"cs_set_user_frags & deaths are better"??

@d3m37r4
Copy link
Contributor

d3m37r4 commented Feb 2, 2020

@SanjaySRocks, microoptimization... Do you want to get some visible performance boost?

@SanjaySRocks
Copy link
Author

SanjaySRocks commented Feb 2, 2020 via email

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

3 participants