alliedmodders / amxmodx

AMX Mod X - Half-Life 1 Scripting and Administration
http://www.amxmodx.org/
478 stars 198 forks source link

NEW: add cs_set_user_frags #1060

Open TheKrytyk opened 1 year ago

TheKrytyk commented 1 year ago

Hello, since there is a cs_set_user_deaths function and the "scoreboard" parameter has been added, it can add a new cs_set_user_frags function to be able to set frags to the player along with refreshing in the "scoreboard".

dystopm commented 1 year ago

The death counter is stored in a member from the CBasePlayer class. The frag counter is an entvar, non-player entities also have it, it exists on every goldsrc game. Guess yourself