You do know a void can be
returned right? Or that
!bool checks whether the bool is false?
For example in your badgewars command, you keep checking everything 4 times..
Code:
if (Room.badgeWar == true)
{
Session.SendWhisper("Badge Wars is activated!");
}
if (Room.OwnerId != Session.GetHabbo().Id)
{
Session.SendWhisper("You can only start this in your own room!");
}
if (Room.badgeWar && Session.GetHabbo().Id == Room.OwnerId)
{
Room.badgeWar = false;
foreach (RoomUser RoomUser in Room.GetRoomUserManager().GetRoomUsers())
{
RoomUser.GetClient().SendNotification("Badge Wars is not activated!");
RoomUser.ApplyEffect(0);
}
}
else if (Room.badgeWar == false && Session.GetHabbo().Id == Room.OwnerId || Room.kickwar == false && Session.GetHabbo().Rank >= 3)
{
(Btw when you copied this code from the kickwar command, you forgot to edit this little bastard:
Room.kickwar == false && Session.GetHabbo().Rank >= 3
Ofcourse this is completely up to you, but I would make it this way:
Code:
if(Room.OwnerId != Session.GetHabbo().Id && Session.GetHabbo().Rank < 3)
{
Session.SendWhisper("You can only start this in your own room!");
return;
}
if (Room.badgeWar)
{
Room.badgeWar = false;
foreach (RoomUser RoomUser in Room.GetRoomUserManager().GetRoomUsers())
{
RoomUser.GetClient().SendNotification("Badge Wars is not activated!");
RoomUser.ApplyEffect(0);
}
}
else
{