[Feature Request] Reset Data
please add these
- rg_reset_player_score() which will reset players kills & deaths in scoreboard.
- rg_get_player_score() to get data and can be used in plugins.
Thank you.
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.
@eat1k Can you tell me which one is better: reapi reset or default "cs_set_user_frags & deaths are better"??
@SanjaySRocks, microoptimization... Do you want to get some visible performance boost?
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 .