ULX

Author Topic: How to get information about a player who called a command  (Read 1504 times)

0 Members and 1 Guest are viewing this topic.

Offline Tom Lucette

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
  • I am Tom Lucette
How to get information about a player who called a command
« on: February 15, 2016, 11:12:34 AM »
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!

Offline Bytewave

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 718
  • Karma: 116
  • :)
    • My Homepage
Re: How to get information about a player who called a command
« Reply #1 on: February 15, 2016, 12:31:17 PM »
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.
bw81@ulysses-forums ~ % whoami
Homepage

Offline Tom Lucette

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
  • I am Tom Lucette
Re: How to get information about a player who called a command
« Reply #2 on: February 15, 2016, 12:59:15 PM »
Thank you you absolute legend

Offline Bytewave

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 718
  • Karma: 116
  • :)
    • My Homepage
Re: How to get information about a player who called a command
« Reply #3 on: February 15, 2016, 01:04:21 PM »
bw81@ulysses-forums ~ % whoami
Homepage