Posts: 145
Threads: 6
Joined: Apr 2012
Reputation:
0
You can't really. AddPlayerClass is run on OnGameModeInit(). You could try using SetPlayerSkin under OnPlayerRequestClass (with a boolean, so it only happens once) and then again under OnPlayerSpawn (toggling the boolean from the previous callback).
Posts: 3,351
Threads: 780
Joined: Jan 2010
Quote:
Originally Posted by WarriorEd22
So every time I press F4 and commit suicide, it will take me to the class/skin selection screen; it will load up the last skin I had.
I already have a skin saving system. It currently works but I just need it so when someone has a skin and they decide to re-login or commit suicide to go into the class/skin selection screen, their last skin will show up first. How do I do that? Thanks,
|
Store the skin used in the player account,call it when a player login and use SetPlayerSkin connected to the skin id stored before.It should work.
Posts: 3,351
Threads: 780
Joined: Jan 2010
Quote:
Originally Posted by WarriorEd22
I've been trying nearly for a week now and I'm about to give up. Do you think you can help me on this one bit of coding? Thanks,
|
Sure.Just tell me how the skin save/load system works.