Posts: 1,679
Threads: 232
Joined: Nov 2009
Reputation:
0
bump i wonder if anyone could help since it still unsolved
Posts: 2,698
Threads: 37
Joined: Mar 2012
Reputation:
0
If your "OnAccountLoad" callback gets called under OnPlayerRequestClass, you should use SetSpawnInfo to set the player's spawn skin. Other than that, it'll be using default skins (either class skins or CJ skin if no classes are found).
Posts: 1,679
Threads: 232
Joined: Nov 2009
Reputation:
0
Could you give me an example please?
Also why team turns from 5 to -1
Posts: 1,679
Threads: 232
Joined: Nov 2009
Reputation:
0
So I use it on playerrequestspawn or to the accountload function the setspawninfo?? I want the player to spawn automatically after the login dialog
Posts: 2,698
Threads: 37
Joined: Mar 2012
Reputation:
0
Well then use SetSpawnInfo before using SpawnPlayer function under your OnAccountLoad callback. Also, you don't have to use SetPlayerSkin function there.
Posts: 1,679
Threads: 232
Joined: Nov 2009
Reputation:
0
So I put setspawninfo and spawnplayer and I'm ok?
Posts: 2,698
Threads: 37
Joined: Mar 2012
Reputation:
0
Yes, that's what my post said..
Posts: 1,679
Threads: 232
Joined: Nov 2009
Reputation:
0
So i did some changes and used what you told me but now it saves team and skin is set to police skin :/