View Single Post
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 06-14-2013 , 00:53   Re: A way to store player data persistently (but not so much)
Reply With Quote #6

Instead of relying on SourceMod's OnClientDisconnected to choose when to clear data, instead hook the player_disconnect event, which only fires when the client actually disconnects. Having said that, you'll have to convert the userid to a client index if you're using it as an array key.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 06-14-2013 at 00:54.
Powerlord is offline