Open 2010kohtep opened 5 years ago
if (_stricmp(key, "restore") != 0 && _stricmp(key, "clear") != 0)
->
if (_stricmp(key, "restore") != 0 && _stricmp(key, "clear") != 0 && _stricmp(key, "clean") != 0 && _stricmp(key, "reset") != 0)
@kisak-valve cs label. Coz some son of beaches gonna cry 'bout that can damage old mod's.
I propose to implement the ability to quickly clear the player's userinfo, which is set by the setinfo command. The code from one of my projects that implements this feature is as follows:
The project works as an add-on that intercepts the setinfo command handler, which explains the
orgCmd_SetInfo
function that points to the original setinfo callback.