Jump to content

Default team help


delete.

Recommended Posts

Hi, just made a really simple script for teams, but everytime a player joins it puts him on above of all teams. I need help from you guys how to make default team "Unemployed"

local Unemployed = createTeam("Unemployed", 255, 0, 255)
setPlayerTeam(player, Unemployed)
setElementModel(player, 0)
end

Thanks!

Edited by testchannel50
Link to comment
24 minutes ago, Dimos7 said:
  1. 
    local Unemployed = createTeam("Unemployed", 255, 0, 255)
    
    addEventHandler("onPlayerJoin", root,
    function()
    setPlayerTeam(source, Unempolyed)
    setElementModel(source, 0)
    end)
    

     

Nope, it still sets me as no team when i reconnect/join: BQt4Wb2.png

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