SA-MP Forums Archive
Skin Change / pClass change - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Skin Change / pClass change (/showthread.php?tid=660229)



Skin Change / pClass change - DarknesS1988 - 28.10.2018

Iam having a problem with skin change. The problem is that you can't choose new skin, you can just spawn with the skin you choose on account creating, if pResume set to 0 then player will choose his skin but he will lose all his stats [Money, days alive and all that stuff]

CODE:

PHP код:
if(PlayerInfo[playerid][pResume] == 1)
            {
            
SetPlayerSkin(playeridPlayerInfo[playerid][pClass]);
            }
           
            
SetPlayerHealth(playerid0);
            
ForceClassSelection(playerid);
            
PlayerInfo[playerid][pResume] = 1;
           
            } 



Re: Skin Change / pClass change - DarknesS1988 - 29.10.2018

Any ideas? I don't have much time to figureout by myself. I only work 1 hour per day on server and that's not enough but i will not quit this.