-.Paradox.- Posted January 14, 2014 Share Posted January 14, 2014 Hello, i want to made a Class system, i want when player join give him random class from 10 classes, what i could use to do that? Link to comment
-.Paradox.- Posted January 14, 2014 Author Share Posted January 14, 2014 It's not a number I'm using some different names, what about Events what i should use? Link to comment
Bzz335 Posted January 15, 2014 Share Posted January 15, 2014 see. Add classes to table,then math.random. classes={ [1]={"0,0,0","NameOfTeam"},--Position,name of team [2]={"0,0,0","NameOfTeam"},--Position,name of team [3]={"0,0,0","NameOfTeam"},--Position,name of team --etc } teams={ } --Then function: function setClass() end addEventHandler("onPlayerLogin",getRootElement,setClass) You can make so: CreateTeam with names of Classes and when you'll spawn,player will get random teams. 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