Jump to content
  • 0

[Player] Has killed [Player]


Stan
 Share

Question

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

  • 5

 

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 ^^

Link to comment
Share on other sites

  • 0

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

  • 0
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

  • 0
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

 Share

×
×
  • Create New...