Drakath Posted July 29, 2014 Share Posted July 29, 2014 Can someone help me to retrieve ONE random player who is in a colshape? Link to comment
MTA Team botder Posted July 29, 2014 MTA Team Share Posted July 29, 2014 GetElementsWithinColShape Link to comment
Saml1er Posted July 30, 2014 Share Posted July 30, 2014 local col = createColSphere (0,0,0,10) local colPlayer local tab = getElementsWithinColShape(col,"player") if #tab ~= 0 then colPlayer = tab[math.random(1,#tab)] end 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