VenomOG Posted October 26, 2016 Share Posted October 26, 2016 Hello Guys I Have Been Editing My Tab But, i need one Named: Not Logged In, When Player in Logging in Game They Go To That TAB Group Help me? Link to comment
iPrestege Posted October 26, 2016 Share Posted October 26, 2016 Actually i'm not getting exactly what are you trying to do but i think you are editing the score board so use the exported functions : addScoreboardColumn setElementData And if you mean teams? use createTeam onPlayerLogin onPlayerLogout setPlayerTeam Link to comment
koragg Posted October 26, 2016 Share Posted October 26, 2016 God, this... please explain better what you wanna achieve ? All I got was that you're editing your scoreboard but the rest Link to comment
VenomOG Posted October 26, 2016 Author Share Posted October 26, 2016 ok , i wanna add a team to ScoreBoard But it Will Be Named :Not Logged In On Play Join Game They Will Automatic Join That Team Help me? Link to comment
iPrestege Posted October 26, 2016 Share Posted October 26, 2016 (edited) addEventHandler('onPlayerJoin' ) addEventHandler('onPlayerLogin' ) createTeam setPlayerTeam Edited October 26, 2016 by FaHaD mobile mistake Link to comment
VenomOG Posted October 26, 2016 Author Share Posted October 26, 2016 this will work? what should i do? add it? Link to comment
iPrestege Posted October 26, 2016 Share Posted October 26, 2016 heh? script using these functions and events open the wiki Link to comment
GTX Posted October 27, 2016 Share Posted October 27, 2016 (edited) An example: local myTeam = createTeam("Not logged in",255,255,255) -- Your team element - change name to whatever you like. function onJoin() setPlayerTeam(source,myTeam) -- Set player's team (source is the player element who joined, team is team element that you declared at the top of the script. end addEventHandler("onPlayerJoin",root,onJoin) -- Add an event handler so when player joins it executes onJoin function. Edited October 27, 2016 by GTX 1 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