reapi icon indicating copy to clipboard operation
reapi copied to clipboard

[Feature Request] Reset Data

Open SanjaySRocks opened this issue 6 years ago • 4 comments

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.

SanjaySRocks avatar Nov 19 '19 03:11 SanjaySRocks

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.

twisterniq avatar Nov 19 '19 11:11 twisterniq

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

SanjaySRocks avatar Nov 22 '19 07:11 SanjaySRocks

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

d3m37r4 avatar Feb 02 '20 04:02 d3m37r4

Yes

On Sun, 2 Feb, 2020, 10:10 AM Dmitry, [email protected] wrote:

@SanjaySRocks https://github.com/SanjaySRocks, microoptimization... Do you want to get some visible performance boost?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/s1lentq/reapi/issues/152?email_source=notifications&email_token=AHHYCQBP62ZGUMBATB5D63LRAZFDRA5CNFSM4JO5PWJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKRNRTI#issuecomment-581097677, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHHYCQFI45A4NWZDSMSR43TRAZFDRANCNFSM4JO5PWJA .

SanjaySRocks avatar Feb 02 '20 07:02 SanjaySRocks