Ulysses
General => Developers Corner => Topic started 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
-
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)
-
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.