Stan Posted January 12, 2022 Share Posted January 12, 2022 Hello again dear community of intersect!  I was wonder if there's any way to make a kill message that says which player has killed another player. Like, Stan has killed xXProUserxX  if someone know how to do it i would really appreciate the info 🥺 Link to comment Share on other sites More sharing options...
5 Meddy Posted January 13, 2022 Share Posted January 13, 2022  Hello if you know how to use sources, here is an easy solution:  Search in: public override void Die  Quote //Flag death to the client PacketSender.SendPlayerDeath(this); And add below:  Quote if (killer != null) { PacketSender.SendGlobalMsg(this.Name + "was killed by " + killer.Name, Color.Red); } You can change the color of the sentence too. Here it is ^^ Gibier, Stan and Beefy Kasplant 3 Link to comment Share on other sites More sharing options...
0 Tron Posted January 12, 2022 Share Posted January 12, 2022 You can do it through global variables but if too many global variables happen at once it can be kinda funky.  The way I know how to do it is setting variables to the playername with \pn.  So example  Killer = \pn Killed = \pn  Global message: \gv{Killer} killed \gv{Killed} Link to comment Share on other sites More sharing options...
0 AisenArvalis Posted January 12, 2022 Share Posted January 12, 2022 14 minutes ago, Scaly said: You can do it through global variables but if too many global variables happen at once it can be kinda funky.  The way I know how to do it is setting variables to the playername with \pn.  So example  Killer = \pn Killed = \pn  Global message: \gv{Killer} killed \gv{Killed}  2 Common Events - Each with their own trigger (PvP Kill & PvP Death) In Kill assign Killer = \pn In Death assign Killed = \pn In either of them, do a wait to make sure the variables get assigned, then do a chat box call out using the message Scaly said. Janky as heck, but could work. Link to comment Share on other sites More sharing options...
0 Tron Posted January 12, 2022 Share Posted January 12, 2022 17 minutes ago, AisenArvalis said: Â 2 Common Events - Each with their own trigger (PvP Kill & PvP Death) In Kill assign Killer = \pn In Death assign Killed = \pn In either of them, do a wait to make sure the variables get assigned, then do a chat box call out using the message Scaly said. Janky as heck, but could work. Â It doesn't actually work well unfortunately though. Link to comment Share on other sites More sharing options...
0 Cheshire Posted January 13, 2022 Share Posted January 13, 2022 If I remember the death event has some extra parameters, such as who killed them but I don't recall how to call these off the top of my head. Link to comment Share on other sites More sharing options...
Question
Stan
Hello again dear community of intersect!
Â
I was wonder if there's any way to make a kill message that says which player has killed another player. Like, Stan has killed xXProUserxX
Â
if someone know how to do it i would really appreciate the info 🥺Â
Link to comment
Share on other sites
5 answers to this question
Recommended Posts