Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Room room = parsedClient.GetHabbo().CurrentRoom;
- RoomUser roomuser2 = room.GetRoomUserManager().GetRoomUserByHabbo(Client.GetHabbo().Id);
- RoomUser roomuser1 = room.GetRoomUserManager().GetRoomUserByHabbo(parsedClient.GetHabbo().Id);
- if (Sound == "InvalidSoundType")
- return;
- if ((Math.Abs((int)(roomuser1.X - roomuser2.X)) >= 1))
- { TCPClient.Append(Client.GetHabbo().Id, "Sound", "RoomEvent", Sound, CalucateRatio(1).ToString()); }
- if ((Math.Abs((int)(roomuser1.X - roomuser2.X)) >= 2))
- { TCPClient.Append(Client.GetHabbo().Id, "Sound", "RoomEvent", Sound, CalucateRatio(2).ToString()); }
- if ((Math.Abs((int)(roomuser1.X - roomuser2.X)) >= 3))
- { TCPClient.Append(Client.GetHabbo().Id, "Sound", "RoomEvent", Sound, CalucateRatio(3).ToString()); }
- if ((Math.Abs((int)(roomuser1.X - roomuser2.X)) >= 4))
- { TCPClient.Append(Client.GetHabbo().Id, "Sound", "RoomEvent", Sound, CalucateRatio(4).ToString()); }
- if ((Math.Abs((int)(roomuser1.X - roomuser2.X)) >= 5))
- { TCPClient.Append(Client.GetHabbo().Id, "Sound", "RoomEvent", Sound, CalucateRatio(5).ToString()); }
- if ((Math.Abs((int)(roomuser1.X - roomuser2.X)) >= 6))
- { TCPClient.Append(Client.GetHabbo().Id, "Sound", "RoomEvent", Sound, CalucateRatio(6).ToString()); }
- if ((Math.Abs((int)(roomuser1.X - roomuser2.X)) >= 7))
- { TCPClient.Append(Client.GetHabbo().Id, "Sound", "RoomEvent", Sound, CalucateRatio(7).ToString()); }
- if ((Math.Abs((int)(roomuser1.X - roomuser2.X)) >= 8))
- { TCPClient.Append(Client.GetHabbo().Id, "Sound", "RoomEvent", Sound, CalucateRatio(8).ToString()); }
- if ((Math.Abs((int)(roomuser1.X - roomuser2.X)) >= 9))
- { TCPClient.Append(Client.GetHabbo().Id, "Sound", "RoomEvent", Sound, CalucateRatio(9).ToString()); }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement