JamesCIT Posted July 26, 2015 Share Posted July 26, 2015 Hello i want to know how to make a Script to give someone a skin only him example my acc name is James in my server and i want it on 217 so how to do that ? Link to comment
1B0Y Posted July 26, 2015 Share Posted July 26, 2015 local accountSkins = { ["James"] = 0 --CJ skin ["Jack"] = 1 --No idea what skin this is } function onPlayerLogin(_,account) local account = getAccountName(account) if (accountSkins[account]) then setPlayerSkin(source,accountSkins[account]) end end addEventHandler("onPlayerLogin",root,onPlayerLogin) Link to comment
JamesCIT Posted July 26, 2015 Author Share Posted July 26, 2015 local accountSkins = { ["James"] = 0 --CJ skin ["Jack"] = 1 --No idea what skin this is } function onPlayerLogin(_,account) local account = getAccountName(account) if (accountSkins[account]) then setPlayerSkin(source,accountSkins[account]) end end addEventHandler("onPlayerLogin",root,onPlayerLogin) thnx but whta is Jack ? and what write insted of and insted of 1and if for groups Link to comment
DanHR Posted July 26, 2015 Share Posted July 26, 2015 Jack will give the user Jack the skin number 1 Link to comment
JamesCIT Posted July 26, 2015 Author Share Posted July 26, 2015 Jack will give the user Jack the skin number 1 and i will do the meta ad .txd and .dff files right ? Link to comment
Perfect Posted July 26, 2015 Share Posted July 26, 2015 (edited) Jack will give the user Jack the skin number 1 and i will do the meta ad .txd and .dff files right ? That's right but you don't need txd/dff for that unless you are planning to have a custom skin. In that case, you can replace them by using following functions: engineLoadTXD engineImportTXD engineLoadDFF engineReplaceModel Edited August 3, 2015 by Guest Link to comment
#RooTs Posted July 28, 2015 Share Posted July 28, 2015 setPlayerSkin(source,accountSkins[account]) LOLLL Use setElementModel 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