1. Hello my friends.
    I never develop in Cshrp, but im java and php - i try in Cshrp but i need any help.
    Need help:
    How in plugin kill player and respawn on my X Y Z
    How get player steamID and name?

    TY
     
  2. Wulf

    Wulf Community Admin

    I'd recommend taking a look through some of the existing stickies threads, similar questions and try tinkering with some plugins to get started. Knowing some C# basics would also help you out a lot, for which there are a lot of tutorials around the internet.
     
  3. Ye i do it... Say me, when i teleport player is this corect?
    Work it, but sometimes (one from 50ports) player spawn randomly...

    Code:
                player.StartSleeping();
              player.transform.position = new UnityEngine.Vector3(newx, newy, newz);              player.SetPlayerFlag(BasePlayer.PlayerFlags.ReceivingSnapshot, true);
                  player.UpdateNetworkGroup();
                  player.SendFullSnapshot();
                  player.health = 100;
              player.metabolism.hydration.value = 250;
              player.metabolism.calories.value = 500;
                  player.EndSleeping();
    its in OnPlayerRespawned(BasePlayer player)


    is this correct?
     
  4. Wulf

    Wulf Community Admin

    There are API methods for teleporting to save you some code, but that should work fine.
     
  5. where i can find it? or i can maybe use command? teleport.loc player x.y.z?