-.Paradox.- Posted January 14, 2014 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? If you're looking for a cheap paid scripter, don't hesitate to contact me. Great minds discuss ideas, Average minds discuss events and small minds discuss people.
xXMADEXx Posted January 14, 2014 Posted January 14, 2014 math.random The Ultimate Lua Tutorial! | MTA PHP SDK
-.Paradox.- Posted January 14, 2014 Author Posted January 14, 2014 It's not a number I'm using some different names, what about Events what i should use? If you're looking for a cheap paid scripter, don't hesitate to contact me. Great minds discuss ideas, Average minds discuss events and small minds discuss people.
Bzz335 Posted January 15, 2014 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. Police job script progress: 100% Courier job script progress::7%
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