08.11.2011, 08:44
Alright, so I'm scripting my own server from scratch, and I've gotten pretty far in so far. However, I've come across a problem where if I shut down the server, then restart it - and the user hasn't restarted their client, then they login and spawn with the CJ skin automatically. I was wondering if there'd be any way to stop this kind of bug through scripting?
I've narrowed down the problem a bit. When the person logs in, SpawnPlayer is called on them, however, this doesn't launch the OnPlayerSpawn callback. What's up with that?
In addition to this, when I manually call my extension to the SpawnPlayer function (SpawnPlayerEx) - which usually sets their skin - their skin is not set, instead it remains CJ.
I've narrowed down the problem a bit. When the person logs in, SpawnPlayer is called on them, however, this doesn't launch the OnPlayerSpawn callback. What's up with that?
In addition to this, when I manually call my extension to the SpawnPlayer function (SpawnPlayerEx) - which usually sets their skin - their skin is not set, instead it remains CJ.