PashaBiceps Posted January 7, 2021 Share Posted January 7, 2021 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 comment
PashaBiceps Posted January 7, 2021 Author Share Posted January 7, 2021 1 hour ago, nikitafloy said: fix it in save system Did not work Link to comment
SpecT Posted January 8, 2021 Share Posted January 8, 2021 What is the point of setting a skin to a player when he leaves the server? 1 Link to comment
PashaBiceps Posted January 8, 2021 Author Share Posted January 8, 2021 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 comment
Tekken Posted January 8, 2021 Share Posted January 8, 2021 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 comment
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