ULX

Author Topic: Ulx Give: A simple way to give weapons  (Read 6914 times)

0 Members and 1 Guest are viewing this topic.

Offline jakej78b

  • Newbie
  • *
  • Posts: 26
  • Karma: 4
Ulx Give: A simple way to give weapons
« on: April 16, 2014, 07:30:17 PM »
Hey, I believe this is my first post, if not then my first release. This is a simple little thing that I wrote, and it is my first thing ever and I feel very successful. It is a fix of a plugin that appeared to be old and non-functioning, that was written by vader0146 in 2009 (Original Thread: http://forums.ulyssesmod.net/index.php?topic=4386.0) Anyways, I used existing commands and API reference to throw this all together, have fun!

Didn't realize chaos13125 has made a module similar to this in recent days, haven't checked his out yet so maybe it has better functionality. Learners learn eventually I guess.

« Last Edit: April 21, 2014, 10:46:33 PM by jakej78b »

Offline Chironex

  • Full Member
  • ***
  • Posts: 197
  • Karma: 11
  • Formerly known as Kyzer
Re: Ulx Give: A simple way to give weapons
« Reply #1 on: April 20, 2014, 02:36:32 AM »
Good job for a first thing ;)

Offline ragegriffith

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: Ulx Give: A simple way to give weapons
« Reply #2 on: August 02, 2014, 03:13:53 PM »
Will it only give these weapons? "local hl2weps = {"weapon_crowbar","weapon_stunstick","weapon_physcannon","weapon_physgun","weapon_pistol","weapon_357","weapon_smg1","weapon_ar2","weapon_shotgun","weapon_crossbow","weapon_annabelle","weapon_frag","weapon_rpg","weapon_slam","weapon_bugbait","item_ml_grenade","item_ar2_grenade","item_ammo_ar2_altfire","item_healthkit","item_healthvial","item_suit","item_battery","gmod_camera","gmod_tool"}"

is there a way to detect all the weapons on server? Also why I type !Give Name weapon_pistol it says it gives me one but it doesn't actually spawn a weapon

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: Ulx Give: A simple way to give weapons
« Reply #3 on: August 02, 2014, 03:59:50 PM »
pretty much the same thing, it works.
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline COOLJ

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: Ulx Give: A simple way to give weapons
« Reply #4 on: March 13, 2015, 03:28:33 PM »
Will it only give these weapons? "local hl2weps = {"weapon_crowbar","weapon_stunstick","weapon_physcannon","weapon_physgun","weapon_pistol","weapon_357","weapon_smg1","weapon_ar2","weapon_shotgun","weapon_crossbow","weapon_annabelle","weapon_frag","weapon_rpg","weapon_slam","weapon_bugbait","item_ml_grenade","item_ar2_grenade","item_ammo_ar2_altfire","item_healthkit","item_healthvial","item_suit","item_battery","gmod_camera","gmod_tool"}"

is there a way to detect all the weapons on server? Also why I type !Give Name weapon_pistol it says it gives me one but it doesn't actually spawn a weapon

Don't know much about lua and this stuff but couldn't you add your weapons to that list?