Author Topic: Help with some ulx commands  (Read 1876 times)

0 Members and 1 Guest are viewing this topic.

Offline Maxi

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Help with some ulx commands
« on: April 24, 2016, 03:44:13 PM »
Could someone in here help me make some ulx commands like this examples

!returnwep or !refund = return weapons the target player had before they died
!showdeath = mark the place where the target player died
!gotocar = goto car owned by target player

Offline roastchicken

  • Respected Community Member
  • Sr. Member
  • *****
  • Posts: 476
  • Karma: 84
  • I write code
Re: Help with some ulx commands
« Reply #1 on: April 24, 2016, 06:34:56 PM »
For the first two these might be useful:

Player:GetWeapons
Entity:GetPos
GM:DoPlayerDeath
Give a man some code and you help him for a day; teach a man to code and you help him for a lifetime.

Offline roastchicken

  • Respected Community Member
  • Sr. Member
  • *****
  • Posts: 476
  • Karma: 84
  • I write code
Re: Help with some ulx commands
« Reply #2 on: April 26, 2016, 03:50:08 PM »
How do i make it turns weapons into a table?

Player:GetWeapons

Returns a table of the player's weapons.
Give a man some code and you help him for a day; teach a man to code and you help him for a lifetime.