General > Developers Corner

How to get information about a player who called a command

(1/1)

Tom Lucette:
hello!,

I am making a addon for ulx, I am making a command that when typed into chat on a ttt server it will display if the person who killed them was a traitor to see if they were RDM'd, I know lua but how to I get information about who called the command, and also how to get information about who killed that person and if they are / were a traitor. pls help!

Bytewave:
Unless you do it at kill-time, there's (I believe) no way to grab stats about a player's death after they're dead unless you store it somewhere.

I wrote (or maybe patched up, it's been so long) a script a while back that printed stats about a player's killer immediately on death. If you want it, I'm probably going to release a code-dump from my dead server here in a bit. Stay tuned for that.

Tom Lucette:
Thank you you absolute legend

Bytewave:
Here ya go.

Navigation

[0] Message Index

Go to full version