can anyone do a plugin so if we type lets say for example /kills
it will show the people u have killed but also the people who have killed u
So it will show 2 lists on same page
Killed Kill
Blah blah MrSmith
blah blah MrsJones
Weeb
weed
Rust Players Killed
Discussion in 'Plugin Requests' started by tomhud, Dec 16, 2017.
-
Sure you can keep track of data of an individual person's kills and deaths including the other player's names, but this just sounds hugely abundant. Imagine someone having over 200 deaths and therefore over 200 names in a single file attributed to his steamid.
Just use DeathNotes's chat instead which is logged through your server's files already. -
true what u say but it could be limited to say the last 10 deaths u had
I will check deathnotes but that is not for each player - its all of them -
Aside from storing 200 names per player, on the subject of tracking kills/killers... in my mods I find it difficult to nail down exactly who the killer is/was without tracking every hit to every player from every player, which you kind of have to do due to frequent bleed-outs, unless of course you don't count those, which skews the results IMO.. although not impossible but the way I see it it may be somewhat resource intensive, especially when there are a large number of players. Of course there may be methods under the covers that I am unaware of.
-
Code:
void OnEntityDeath(BaseCombatEntity entity, HitInfo info)
Just remember to check that it is a player. -
-
-
It's not the player that is dying that I am worried about, it's the player's killer. The hitinfo is different I believe, when the player bleeds out and does not supply the appropriate killer's info thus not awarding the kill to them.
-