Jump to content

Save Code


AJXB

Recommended Posts

spawnPlayer(source,0,0,0+ 0.5,0,skin) 

Replace this line.

With what?

Just copy this:

addEventHandler("onPlayerLogin",root,function(_,curAcc) 
    local team = getAccountData(curAcc,"team") 
    setPlayerTeam(source,getTeamFromName ( team )) 
  
    if tostring(team) == "Team1" then 
  
        skin = 100 
  
    elseif tostring(team) == "Team2" then 
  
        skin = 101 
  
    elseif tostring(team) == "Team3" then 
  
        skin = 102 
  
    elseif tostring(team) == "Team4" then 
  
        skin = 103 
  
    end 
  
    outputChatBox (team) 
  
    spawnPlayer(source,0,0,0+ 0.5,0, skin) 
  
end 
  
) 

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