1. title says it all
     
  2. Wulf

    Wulf Community Admin

  3. Wulf

    Wulf Community Admin

    For Lua, something like this:
    Code:
        local playerList = global.BasePlayer.activePlayerList:GetEnumerator()
    while playerList:MoveNext() do
        local player = playerList.Current
        rust.ForcePlayerPostion(player,destination.x,destination.y,destination.z)
    end
    If you need it for C#, you'd need to change it around a bit.
     
  4. oh there is a global class
     
  5. Wulf

    Wulf Community Admin

    That's only used for non-C# languages.
     
  6. so in c# would i just use playerlist?
    [DOUBLEPOST=1433296780][/DOUBLEPOST]
    k I got it to get the enum and cycle through it but i cant take the specific player out of it
    [DOUBLEPOST=1433302295,1433291465][/DOUBLEPOST]i think i got it
    [DOUBLEPOST=1433302341][/DOUBLEPOST]
    Code:
     [ChatCommand("start")]
        void start(string command,string[] args)
        {
            
            gamestarted = true;            foreach (BasePlayer player in BasePlayer.activePlayerList)
                {                ForcePlayerPosition(player, "-590.5, 2.3, 51.6".ToVector3());
                player.Respawn();
            }
    Code:
     [ChatCommand("start")]
        void start(string command,string[] args)
        {
            
            gamestarted = true;            foreach (BasePlayer player in BasePlayer.activePlayerList)
                {                ForcePlayerPosition(player, "-590.5, 2.3, 51.6".ToVector3());
                player.Respawn();
            }