Jump to content

gui to choose team on connect


elabana

Recommended Posts

Posted

Hello , i've made 2 teams, and now i want player who join to choose one of the teams . How do i make it ? in Wiki i've found how to create gui for login but thats not enough for me to understand that ';\.

function createTeamsOnStart () 
    teama = createTeam ( "Team A", 0, 255, 0 )  
    teamb = createTeam ( "Team B", 200, 0, 100 ) 
end 
end 

How to make GUI to choose one of these teams?

Posted

The GUI can be easily made with guieditor, and then use guiSetVisible to hide the GUI after selecting a team and setPlayerTeam to set player's team of choice. The event for any GUI element click is "onClientGUIClick".

Posted

Okay , visually i got buttons , but how to make them working now ? What do i need to do that something would happen when they are pressed?

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