JasperRieken Posted May 20, 2012 Share Posted May 20, 2012 function joinHandler(player) setPlayerTeam(player, getTeamFromName("Freeroam Players")) end addEventHandler("onPlayerJoin", getRootElement(), joinHandler) This doesn't work Link to comment
Castillo Posted May 20, 2012 Share Posted May 20, 2012 1: Remove "player" from the function name. 2: Replace "player" with "source" @ setPlayerTeam. 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