PashaBiceps 18 Posted January 7 Share Posted January 7 I would like to return it to the old skin when the player leaves the game, but it is not working. addEventHandler("onPlayerQuit",getRootElement(),function() local outskin = tonumber(getElementData(source, "skinout")) setElementModel(source, outskin) end) It's working good in-game! Link to post
PashaBiceps 18 Posted January 7 Author Share Posted January 7 1 hour ago, nikitafloy said: fix it in save system Did not work Link to post
SpecT 56 Posted January 8 Share Posted January 8 What is the point of setting a skin to a player when he leaves the server? 1 Link to post
PashaBiceps 18 Posted January 8 Author Share Posted January 8 2 hours ago, SpecT said: What is the point of setting a skin to a player when he leaves the server? The point is.. I have an inventory that u press the item and the player wear a skin, if you press it again the item will give the old skin back to the player with a 10 seconds block to avoid bugs. But if the player leaves the game with the skin from the item that the player used before and the server don't give the old skin back when the player leaves, the old skin will dissapear forever. Link to post
Tekken 146 Posted January 8 Share Posted January 8 Well you check the skin it have and save it into playerAccount and when he joins you load, just a simple account system 1 Link to post
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now