Jump to content

How to get all player with CMD


RyaanThiago

Recommended Posts

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
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...