Posts: 213
Threads: 77
Joined: Jul 2013
Reputation:
0
hello i have mysql system and its save the data fine and the register system is but where i load the stats of player OnPlayerSpawn or OnPlayerConnected or where like SetPlayerSkin and SetPlayerInterior etc?
Posts: 1,733
Threads: 20
Joined: Nov 2010
Reputation:
0
Loading data is usually done under OnPlayerConnect.
Players usually connect once, but may respawn multiple times during their gaming session.
There is no need to reload all their data everytime they spawn, since the data was already loaded before.
Posts: 1,733
Threads: 20
Joined: Nov 2010
Reputation:
0
Setting a skin under OnPlayerConnect won't work.
The player is still being connected and has to pass class-selection first.
You can use SetPlayerSkin under OnPlayerSpawn, or OnPlayerRequestSpawn, whichever you prefer.