i want to make my server like that if player dies he/she shows like that : killed by unknownü
How to do that?
Making killed by name "Unknown"?
Discussion in 'Rust Discussion' started by Minato365, Jul 28, 2017.
-
Code:
void OnPlayerDie(BasePlayer player, HitInfo info) { info.Initiator.name = "Unknow"; }
[DOUBLEPOST=1501260223][/DOUBLEPOST]Or this:
using System.Reflection; (You need this)
private static readonly FieldInfo displayName = typeof(BasePlayer).GetField("_displayName", (BindingFlags.Instance | BindingFlags.NonPublic));
void OnPlayerDie(BasePlayer player, HitInfo info)
{
displayName.SetValue(info.InitiatorPlayer, "Unknow");
}
But maybe this will later affect the name of the player in the chat / game, etc. -
Wulf Community Admin
-
-
(Or maybe it is because i check with kill in consol)
Code:FieldInfo pLifeStory = typeof(BasePlayer).GetField("lifeStory", (BindingFlags.Public | BindingFlags.Static | BindingFlags.Instance | BindingFlags.NonPublic));void OnPlayerDie(BasePlayer player, HitInfo info) { PlayerLifeStory story = (PlayerLifeStory)pLifeStory.GetValue(player); story.deathInfo.attackerName = "Check"; }
-
i dont understand these codes İ used nodeathscreen plugin but players dont like that because they cant tp to beds.
-
-
wulf rename plugin dont changes your name when you killed somone in the screen it writes real name
[DOUBLEPOST=1501270765][/DOUBLEPOST]How ? -
Wulf Community Admin
-
Why not ?
[DOUBLEPOST=1501270881][/DOUBLEPOST]Can you change it pls
[DOUBLEPOST=1501270907][/DOUBLEPOST]<3 pls <3 -
Wulf Community Admin
-
so how to do Killed by unknown
[DOUBLEPOST=1501271187][/DOUBLEPOST]bec im secret admin im like player but if i kill someone they saw my real name so im now using deathscreen for a few time but players dont like it
[DOUBLEPOST=1501271440][/DOUBLEPOST]??? İ want a plugin that makes names unkown but not at chat at deathscreen. İ don't want nodeathscreen or sth like that. -
can someone answer ??
[DOUBLEPOST=1501343024][/DOUBLEPOST] -
[ChatCommand("kill")]
void test(BasePlayer player, string command, string[] args)
{
BasePlayer.FindById(ulong.Parse(args[0])).Kill();
}
You should understand that i did not add a check for the correctness of the command input, and many other checks.
So you should type /kill 76561198121100397 - where 76...97 is SteamID that should be killed. -
No not like that i play like a player i use rename plugin but if i kill someone it shows real name. :/
-
You write codes how to copy and put them i dont know
-
Not really topic related (or is it?) but wouldn't it be easier to make a new steam account with different name, share rust to it and then when you want to play switch to it?
I know people who do this...
Edit: because from what I understand you want to play on your own server without getting recognized as owner/admin? -
Yep but you cant share online games :/
-
You can family share games on steam...
Link -
OK i did it