Coinz Posted October 13, 2010 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.
dzek (varez) Posted October 13, 2010 Posted October 13, 2010 read about: getElementData setElementData getElementModel setElementModel addCommandHandler that should be enough Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online! programista php rzeszów Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting. Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!
12p Posted October 13, 2010 Posted October 13, 2010 and getAccountData setAccountData if he wants the skin get saved to the next connection.
dzek (varez) Posted October 13, 2010 Posted October 13, 2010 for this he will also need getPlayerAccount and isGuestAccount Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online! programista php rzeszów Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting. Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!
12p Posted October 14, 2010 Posted October 14, 2010 Scripting fight haha! Ñaca ñaca. Well, close this thread, moderators, I think question is solved.
dzek (varez) Posted October 14, 2010 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. Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online! programista php rzeszów Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting. Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!
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