RyaanThiago Posted February 13, 2016 Share Posted February 13, 2016 Hello guys i wanted know how to get all players with CMD anyone know ? Sent me Function plz I wanted too a freeze all players just if this player join in event ? sent me function too please guys Thx so much Link to comment
Noki Posted February 14, 2016 Share Posted February 14, 2016 Get all players? Use getElementsByType("player") Freeze a player when they join, use addEventHandler("onPlayerJoin", root, function () setElementFrozen(source, true) end ) To freeze all players, loop through the all players (getElementsByType) and set them frozen using setElementFrozen. Link to comment
1LoL1 Posted February 14, 2016 Share Posted February 14, 2016 Get all players? Use getElementsByType("player") Freeze a player when they join, use addEventHandler("onPlayerJoin", root, function () setElementFrozen(source, true) end ) To freeze all players, loop through the all players (getElementsByType) and set them frozen using setElementFrozen. He want join to event not server. Link to comment
Noki Posted February 14, 2016 Share Posted February 14, 2016 I did my best to try to explain what I thought he meant. I'm sorry for trying to help. Link to comment
MTA Team 0xCiBeR Posted February 15, 2016 MTA Team Share Posted February 15, 2016 Please supply your "event" script so we can tell you where to put it. Or just use the function provided by Noki, setElementFrozen and try your best in where to put the function.- 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