Skip to content
Permalink
Browse files

Made vanish abusable

  • Loading branch information...
Alexr03 committed Nov 4, 2016
1 parent e8433f4 commit b095488dd5b38b0dce863f7784fa2504ea4e401d
@@ -59,7 +59,6 @@ public override TranslationList DefaultTranslations
};
}
}

private void onplayerdeath(UnturnedPlayer player, EDeathCause cause, ELimb limb, CSteamID murderer)
{
murderer3 = UnturnedPlayer.FromCSteamID(murderer);
@@ -70,11 +69,21 @@ private void onplayerdeath(UnturnedPlayer player, EDeathCause cause, ELimb limb,
{
if (murderer3.GodMode == true)
{
UnturnedChat.Say(System.DateTime.Now + player.CharacterName + " Died by a player in godmode ABUSER: " + murderer3.CharacterName, UnturnedChat.GetColorFromName(Configuration.Instance.Color, Color.green));
UnturnedChat.Say(player.CharacterName + " died by a player in godmode ABUSER: " + murderer3.CharacterName, UnturnedChat.GetColorFromName(Configuration.Instance.Color, Color.green));

using (StreamWriter w = File.AppendText(directory + "/Admin-Abuse.txt"))
{
w.WriteLine(player.CharacterName + " died by a abusive admin! ABUSER: " + murderer3.CharacterName + " Steam64ID: " + murderer3.CSteamID + w.NewLine);
w.Close();
}
}
else if (murderer3.VanishMode == true)
{
UnturnedChat.Say(player.CharacterName + " died by a player in vanish mode ABUSER: " + murderer3.CharacterName, UnturnedChat.GetColorFromName(Configuration.Instance.Color, Color.green));

using (StreamWriter w = File.AppendText(directory + "/Admin-Abuse.txt"))
{
w.WriteLine(player.CharacterName + " Died by a abusive admin! ABUSER: " + murderer3.CharacterName + " Steam64ID: " + murderer3.CSteamID + w.NewLine);
w.WriteLine(player.CharacterName + " died by a abusive admin! ABUSER: " + murderer3.CharacterName + " Steam64ID: " + murderer3.CSteamID + w.NewLine);
w.Close();
}
}
@@ -90,7 +99,7 @@ private void onplayerdeath(UnturnedPlayer player, EDeathCause cause, ELimb limb,
Rocket.Core.Logging.Logger.LogException(e);
}
}
}
}
else
{
Rocket.Core.Logging.Logger.Log("Chat is disabled to show messages.");
BIN +512 Bytes (110%) bin/Release/IsAbusing.dll
Binary file not shown.
BIN +0 Bytes (100%) bin/Release/IsAbusing.pdb
Binary file not shown.
Binary file not shown.
@@ -1,11 +1,5 @@
C:\Users\Alex\Documents\Visual Studio 2015\Projects\IsAbusing\IsAbusing\bin\Release\IsAbusing.dll
C:\Users\Alex\Documents\Visual Studio 2015\Projects\IsAbusing\IsAbusing\bin\Release\IsAbusing.pdb
C:\Users\Alex\Documents\Visual Studio 2015\Projects\IsAbusing\IsAbusing\bin\Release\Assembly-CSharp-firstpass.dll
C:\Users\Alex\Documents\Visual Studio 2015\Projects\IsAbusing\IsAbusing\bin\Release\Assembly-CSharp.dll
C:\Users\Alex\Documents\Visual Studio 2015\Projects\IsAbusing\IsAbusing\bin\Release\Rocket.API.dll
C:\Users\Alex\Documents\Visual Studio 2015\Projects\IsAbusing\IsAbusing\bin\Release\Rocket.Core.dll
C:\Users\Alex\Documents\Visual Studio 2015\Projects\IsAbusing\IsAbusing\bin\Release\Rocket.Unturned.dll
C:\Users\Alex\Documents\Visual Studio 2015\Projects\IsAbusing\IsAbusing\bin\Release\UnityEngine.dll
C:\Users\Alex\Documents\Visual Studio 2015\Projects\IsAbusing\IsAbusing\bin\Release\Pathfinding.JsonFx.dll
C:\Users\Alex\Documents\Visual Studio 2015\Projects\IsAbusing\IsAbusing\bin\Release\Pathfinding.Ionic.Zip.Reduced.dll
C:\Users\Alex\Documents\Visual Studio 2015\Projects\IsAbusing\IsAbusing\bin\Release\Pathfinding.ClipperLib.dll
Binary file not shown.
BIN +512 Bytes (110%) obj/Release/IsAbusing.dll
Binary file not shown.
BIN +0 Bytes (100%) obj/Release/IsAbusing.pdb
Binary file not shown.

0 comments on commit b095488

Please sign in to comment.
You can’t perform that action at this time.