Ulysses

General => Developers Corner => Topic started by: Maxi on April 24, 2016, 03:44:13 PM

Title: Help with some ulx commands
Post by: Maxi 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
Title: Re: Help with some ulx commands
Post by: roastchicken on April 24, 2016, 06:34:56 PM
For the first two these might be useful:

(http://wiki.garrysmod.com/favicon.ico) Player:GetWeapons (http://wiki.garrysmod.com/page/Player/GetWeapons)
(http://wiki.garrysmod.com/favicon.ico) Entity:GetPos (http://wiki.garrysmod.com/page/Entity/GetPos)
(http://wiki.garrysmod.com/favicon.ico) GM:DoPlayerDeath (http://wiki.garrysmod.com/page/GM/DoPlayerDeath)
Title: Re: Help with some ulx commands
Post by: roastchicken on April 26, 2016, 03:50:08 PM
How do i make it turns weapons into a table?

(http://wiki.garrysmod.com/favicon.ico) Player:GetWeapons (http://wiki.garrysmod.com/page/Player/GetWeapons)

Returns a table of the player's weapons.