Jump to content

How to save skins


vXHazE

Recommended Posts

addEventHandler ( "onPlayerQuit", root, function (  ) 
    local acc = getPlayerAccount ( source ); 
        if ( ( acc ) and not isGuestAccount ( acc ) ) then 
    local gtDATA = getElementModel ( source ); 
        setAccountData ( acc, "SkiN", gtDATA ); 
    end 
end ); 
  
addEventHandler ( "onPlayerLogin", root, function ( _, acc ) 
    local acc = getPlayerAccount ( source ); 
        if ( acc ) then 
            local gtDATA = getAccountData ( acc, "SkiN" ); 
        if ( gtDATA ) then 
            setElementModel ( source, gtDATA ); 
        end 
    end 
end ); 
Edited by Guest
Link to comment
Hi, does anybody know of any good script where players skins save when they leave and re join the server also a script where i can set the skin that players have when they first login and spawn?

I suggest you using mysql

You don't need MySQL @#,+( _xiRoc[K]; > already gived the best solution.

Link to comment
Hi, does anybody know of any good script where players skins save when they leave and re join the server also a script where i can set the skin that players have when they first login and spawn?

I suggest you using mysql

You don't need MySQL @#,+( _xiRoc[K]; > already gived the best solution.

I recommend mysql

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...