-
-
Save anonymous/bde66651bab34408198128bcffcd5d64 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (class3.knasttimer != DateTime.Now.ToLongTimeString() && class3.GetClient().GetHabbo().jail == 1 && class3.GetClient().GetHabbo().jailtime > 1 && class3.GetClient().GetHabbo().CurrentRoomId == 1732) | |
{ | |
class3.GetClient().GetHabbo().jailtime--; | |
if ((class3.GetClient().GetHabbo().jailtime % 30) == 0) | |
{ | |
double unixTimeStamp = class3.GetClient().GetHabbo().jailtime + GoldTree.GetUnixTimestamp(); | |
System.DateTime dtDateTime = new DateTime(1970, 1, 1, 0, 0, 0, 0, System.DateTimeKind.Utc); | |
dtDateTime = dtDateTime.AddSeconds(unixTimeStamp).ToLocalTime(); | |
string endberechung = dtDateTime.ToLongTimeString(); | |
class3.GetClient().GetHabbo().Whisper("Dein Bann endet in " + class3.GetClient().GetHabbo().jailtime + " Sekunden. (Entbannt um " + endberechung + " Uhr) - Aktuelle Uhrzeit: " + DateTime.Now.ToLongTimeString() + " Uhr."); | |
class3.GetClient().GetHabbo().UpdateJailTime(true); | |
} | |
} | |
class3.knasttimer = DateTime.Now.ToLongTimeString(); | |
if (class3.GetClient().GetHabbo().jail == 1 && class3.GetClient().GetHabbo().jailtime == 1 && class3.GetClient().GetHabbo().CurrentRoomId == 1732) | |
{ | |
class3.GetClient().GetHabbo().jailtime = 0.0; | |
class3.GetClient().GetHabbo().jail = 0; | |
class3.GetClient().GetHabbo().UpdateJail(true); | |
class3.GetClient().GetHabbo().UpdateJailTime(true); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment