Description
This LUA shows a list of your weapons with hudtxt. It also allow you to see all of your weapons
Features
Configurable settings
Shows the weapon name and weapon type ID
Make the selected weapon colored different
Checks for all weapon slots(6 slots)
How to Install
1. Download(of course) and extract it at desired folder
2. Open server lua and add this
1
dofile("sys/lua/wtxt.lua")
Reserved Global Variables
test123ok
WTXT_Initial_X
WTXT_Initial_Y
WTXT_Wrap_W_PX
WTXT_Normal_Color
WTXT_Selected
WTXT_Update_Method
WTXT_Max_Hudtxt
WTXT_Hud_Update
Information
Hooks: 1(Depending on WTXT_Update_Method settings, default ms100)
Lines: 71(with comments)
Size: 2435 Bytes
Configuration
WTXT_Initial_X - X Position of Weapon Hudtxt
WTXT_Initial_Y - Y Position of Weapon Hudtxt
WTXT_Wrap_W_PX - Addtional X-Pixels for weapons name(a.k.a indents)
WTXT_Normal_Color - Normal/unselected hudtxt color(Table: {red,green,blue})
WTXT_Selected - Selected hudtxt color(Table: {red,green,blue})
WTXT_Update_Method - Update method(It can be: always, ms100, second(DON'T USE minute))
WTXT_Max_Hudtxt - Max hudtxt ID that allowed to used by this LUA(From 0-19 if 20)
Limitaions
It uses a sorted hudtxt ID(0,1,2,...,WTXT_Max_Hudtxt-1)
Notes
1. I can make this lua better if item also able to detect weapon that player have
2. Feedbacks? Suggestions? Bugs? post on comments
Rules
You can use it for your server
You can edit it
You can upload at another website, say MikuAuahDark made it
You can't say this is yours
You can't upload on another website without put me on credits
Version History
v1.0
Initial release
Another MikuAuahDark Scripts
Timer Extra function(timerEx) v4.0 (12)
[UNUSED] Get Player Rank v1.4 (14)
Env_Laser v1.0 (7)
Improved Badwords v2.0 (5)
edited 3×, last 03.11.13 12:52:22 am
Approved by Seekay
Download
2 kb, 558 Downloads