elabana Posted June 18, 2014 Posted June 18, 2014 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?
Max+ Posted June 18, 2014 Posted June 18, 2014 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
ADCX Posted June 18, 2014 Posted June 18, 2014 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)
Max+ Posted June 18, 2014 Posted June 18, 2014 where do i get guieditor ? https://community.multitheftauto.com/ind ... ils&id=141 - 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
elabana Posted June 18, 2014 Author Posted June 18, 2014 I've made buttons with guieditors. Got code , then i created client lua and wrote it into meta.xml
ADCX Posted June 18, 2014 Posted June 18, 2014 <script src="script_client.lua" type="client"/> You forgot to close the tags. My Skype: scriptmtasupport My Resources: http://www.scriptmta.co.nr - Cheap high-quality MTA resources by me and Kevin (ScriptMTA.co.nr)
elabana Posted June 19, 2014 Author Posted June 19, 2014 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?
Gtagasje Posted June 19, 2014 Posted June 19, 2014 You need the "onClientGUIClick" event Yes, this is infact a signature.
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