13.02.2014, 10:14
I don't think it's possible to change the classes after they've been created.
The only possible way is SetPlayerSkin. After logging in, set the skin to the saved one and if the player clicks on the next skin, use GetPlayerSkin and check if the skinid is the saved one + 1 and set it to 0. Else if the player clicks on the previous skin, get the skin and if it's the saved one - 1, then set to 299.
Note that skinid 74 is not valid, so in the loop:
above AddPlayerClass line.
The only possible way is SetPlayerSkin. After logging in, set the skin to the saved one and if the player clicks on the next skin, use GetPlayerSkin and check if the skinid is the saved one + 1 and set it to 0. Else if the player clicks on the previous skin, get the skin and if it's the saved one - 1, then set to 299.
Note that skinid 74 is not valid, so in the loop:
pawn Код:
if (skins == 74) continue;