Jump to content

How to get all player with CMD


RyaanThiago

Recommended Posts

Posted

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

Posted

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.

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

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