Jump to content

/quitteam - Setting Old Skin Does'nt Work


Recommended Posts

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

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
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
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
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

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...