03-15-2011, 08:12 AM
Aside from no documentation on how to use this. I can't get it to fire when a player leaves. The only example I found was in the Area plugin. From that I've made my own function for my upcoming plugin (Note: I removed everything inside the function for clarity and readability.)
Is this correct? If so, is it suppose to fire every time a player leaves? Because It doesn't. I put debug logging lines in and they don't appear. Functions are never called when they are inside. Please help as this is a very important part for databasing and clearing unwanted variables!
Code:
function ZonePlugin:OnDisconnect(Reason, Player)
return false
end
Is this correct? If so, is it suppose to fire every time a player leaves? Because It doesn't. I put debug logging lines in and they don't appear. Functions are never called when they are inside. Please help as this is a very important part for databasing and clearing unwanted variables!