Skin Customisation Issue
#1

When adding skins, everything seems to work perfectly..
but then when a player relogs, everything resets back to CJ.


Not sure why it's doing it but the skins work when it's admin set, then the player can see it.. then when they relog, they don't see it, just the CJ skin.

Any thoughts?
Reply
#2

I believe you have to adapt your script.

If you have looked at the official release of the RC version, the custom skins will return in GetPlayerSkin the skin base, while GetPlayerCustomSkin the player's skin ID. I in my test script, I did this after including the necessary includes and before my script.

PHP Code:
stock l_GetPlayerSkin(playerid) return (!GetPlayerCustomSkin(playerid) ? GetPlayerSkin(playerid) : GetPlayerCustomSkin(playerid));
#if defined _ALS_GetPlayerSkin
    #undef GetPlayerSkin
#else
    #define _ALS_GetPlayerSkin
#endif
#define GetPlayerSkin l_GetPlayerSkin 
Because according to Kalcor, if there is an error, the player will be using the base skin instead of the custom.

I use custom skins without problems in my testing environment.


#edit

If you are using AddPlayerClass, it does not support the new system yet. However it should be corrected before the official release.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)