micheal1230 Posted June 16, 2012 Share Posted June 16, 2012 No Errors But It Does'nt Set You To Your Old Skin addCommandHandler("quitteam", function( thePlayer ) local saveskin = getElementModel( thePlayer ) local saveoldskin = setElementData(thePlayer, "oldskin", saveskin) local setoldskin = getElementData( thePlayer, "oldskin" ) if ( setoldskin ) then setElementModel( thePlayer, setoldskin ) outputChatBox("You Have Quit Your Current Team.", thePlayer) end end ) Link to comment
TAPL Posted June 16, 2012 Share Posted June 16, 2012 what joke is this? when you use the command /quitteam do you know what is will happen? you will get your currently skin and set it as element data then you will get the same element data and set the skin your currently skin is the same as the element data so, old skin is same currently skin. lol! of course your skin will remaining the same! you need to make a command to save the skin and other command to get the skin. Link to comment
micheal1230 Posted June 16, 2012 Author Share Posted June 16, 2012 what joke is this?when you use the command /quitteam do you know what is will happen? you will get your currently skin and set it as element data then you will get the same element data and set the skin your currently skin is the same as the element data so, old skin is same currently skin. lol! of course your skin will remaining the same! you need to make a command to save the skin and other command to get the skin. Lol I Added Some Wrong Shit In These Should'nt Be Here local saveskin = getElementModel( thePlayer ) local saveoldskin = setElementData(thePlayer, "oldskin", saveskin) Link to comment
TwiX! Posted June 16, 2012 Share Posted June 16, 2012 No Errors But It Does'nt Set You To Your Old Skin addCommandHandler("quitteam", function( thePlayer ) local saveskin = getElementModel( thePlayer ) local saveoldskin = setElementData(thePlayer, "oldskin", saveskin) local setoldskin = getElementData( thePlayer, "oldskin" ) if ( setoldskin ) then setElementModel( thePlayer, setoldskin ) outputChatBox("You Have Quit Your Current Team.", thePlayer) end end ) lol man.. example you have 5 skin you get 5 skin you save 5 skin on elementdata you get 5 skin (elementdata) you set skin 5 to player.. save his skin in account - when player join in team then set skin (team) later if /quitteam you getAccountData - old skin and set skin (his old) Link to comment
micheal1230 Posted June 16, 2012 Author Share Posted June 16, 2012 No Errors But It Does'nt Set You To Your Old Skin addCommandHandler("quitteam", function( thePlayer ) local saveskin = getElementModel( thePlayer ) local saveoldskin = setElementData(thePlayer, "oldskin", saveskin) local setoldskin = getElementData( thePlayer, "oldskin" ) if ( setoldskin ) then setElementModel( thePlayer, setoldskin ) outputChatBox("You Have Quit Your Current Team.", thePlayer) end end ) lol man.. example you have 5 skin you get 5 skin you save 5 skin on elementdata you get 5 skin (elementdata) you set skin 5 to player.. save his skin in account - when player join in team then set skin (team) later if /quitteam you getAccountData - old skin and set skin (his old) Mate I mate a silly mistake, i just added 2 extra stuff 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