After reading through this messy ... "code", if it deserves the title (on times you have included heavy libraries 5 times into the same file, ok, ok..)
You can add a PlayerBase exception, this will stop people abusing them and having nearly endless cash.
The Code is written in C but fully compatible to your Cpp source, you can convert it easily, I've commented the critical part with Cpp equivalent functions > http://pastebin.com/fcz5nUu4
And since you are using them in DLLs replace the int main(...) with a function name ... e.g. int EXPORT baseDealerEx(...) , export as #define in the headers.
I hope you don't mind when I take a copy of the source you gave us and use it for my own purpose.
Thank you by the way.