Jump to content

getPlayerTeam


glowdemon1

Recommended Posts

Hi, I'm trying to make it so when I join the server and I have no team, it automatically puts me into the "Unemployed" team, however this does not work, here's my code.

addEventHandler("onPlayerJoin", getRootElement(),  
    function(thePlayer) 
    if getPlayerTeam == false and getPlayerTeam ~= "pizzaBoy" --pizzaBoy is used to detect wether he has a job or not (there's only 1 job yet) 
        then setPlayerTeam(thePlayer, "Unemployed") 
    end 
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...