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

you Can start learn form here ,

viewtopic.php?f=91&t=74403

- New , Kill System

- New, GameMode Intro

- Leve / Exp System

- New nametag showing style

- New , Hud For Players

- Skin Selection from SA-MP

- Money System / Buy Weapons

- Drop Weapons

- New, Flood System

- New , Group Assign

- Gun license For Weapons

- Random Rule System For Money

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

My Skype:

scriptmtasupport

My Resources:

http://www.scriptmta.co.nr - Cheap high-quality MTA resources by me and Kevin (ScriptMTA.co.nr)

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