Coinz Posted October 13, 2010 Share Posted October 13, 2010 Hey, I was just wondering that how I could make the following script: You type for example /saveskin and it "saves" the skin. Then I change my character's skin and I want to have the old skin made with /saveskin back by typing command /resetskin for example. Any ideas how could this be made? I was thinking about getting the skin with GetPedSkin first, then naming the current skin and then at /resetskin doing SetPedSkin and the name of the value which I got from GetPedSkin. However I don't know what would I set as the second argument in SetPedSkin as I want it to be the old skin which player "saved". Thank you. Link to comment
dzek (varez) Posted October 13, 2010 Share Posted October 13, 2010 read about: getElementData setElementData getElementModel setElementModel addCommandHandler that should be enough Link to comment
12p Posted October 13, 2010 Share Posted October 13, 2010 and getAccountData setAccountData if he wants the skin get saved to the next connection. Link to comment
dzek (varez) Posted October 13, 2010 Share Posted October 13, 2010 for this he will also need getPlayerAccount and isGuestAccount Link to comment
12p Posted October 14, 2010 Share Posted October 14, 2010 Scripting fight haha! Ñaca ñaca. Well, close this thread, moderators, I think question is solved. Link to comment
dzek (varez) Posted October 14, 2010 Share Posted October 14, 2010 @benxamix2: 1.) Don't spam. 2.) If topic creator ask for close - we will close. ThaCoinz didn't reply anything, he can solve his problem, but also he can still work on it (because of lack of free time for examplo) and he can get stuck somewhere. 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