Пример #1
0
 public void HandlePlayerSpawn(Player Player, bool self)
 {
     PlayerSpawnPacket packet = new PlayerSpawnPacket();
     packet.PlayerID = Player.playerID;
     if(self)
         packet.PlayerID = 255;
     packet.Name = Player.name;
     packet.X = Player.pos.x;
     packet.Y = Player.pos.y;
     packet.Z = Player.pos.z;
     packet.Heading = Player.heading;
     packet.Pitch = Player.pitch;
     SendPacket(packet);
 }
Пример #2
0
 public void HandlePlayerSpawn(Robot Player)
 {
     PlayerSpawnPacket packet = new PlayerSpawnPacket();
     packet.PlayerID = Player.playerID;
     packet.Name = Player.name;
     packet.X = Player.pos.x;
     packet.Y = Player.pos.y;
     packet.Z = Player.pos.z;
     packet.Heading = Player.heading;
     packet.Pitch = Player.pitch;
     SendPacket(packet);
 }