View Single Post
Muhlex
Junior Member
Join Date: Mar 2019
Old 05-12-2019 , 10:01   Re: Dynamic Objects and Properties - v.0.0.32 - [2018.05.08]
Reply With Quote #283

I am currently trying to implement Dynamic into a series of plugins, simply for allowing easy access to data tied to clients for each plugin. Thus I am trying to use the static player settings object. This seems to work so far, however the data is not cleared when a client disconnects.

The wiki mentions that "Player Settings members are reset during Sourcemod's OnClientDisconnect_Post forward". Contrary to that, set values persist for the clients, even after rejoining the server.

Looking at the plugin code of dynamic.sp, this seems to be due to the OnClientDisconnect_Post forward not using public, but being declared as stock instead.

PHP Code:
stock void OnClientDisconnect_Post(int client)
{
    
_Dynamic_ResetObject(client);

I am still an amateur at Sourcepawn so I might have completely missed something obvious here.
Muhlex is offline