08.07.2013, 07:22
By the looks of this code, nothing should be wrong with OnPlayerConnect. The thing you can try though, is using the crashdetect plugin. It will print more info in the log, which will make it easier to narrow down the issue.
Crashdetect thread
Crashdetect thread