Files

> > CS2D > Lua Scripts > Weapon Ammo Counts
Files overviewCS2D overviewLua Scripts overview

English Weapon Ammo Counts >

28 comments652 b, 685 Downloads

old Weapon Ammo Counts

Apache uwu
User Off Offline

I just realized that cs2d lua cmd item can't get player weapon ammo counts and it isn't included in cs2d lua cmd player either.

With this script the getting the following are possible:

**It is added to the existing player() function, use it as player(id, "ammoin"), etc**

• weapontype -> same as player(id,"weapon")
• weaponname -> same as itemtype(player(id,"weapon"),"name")
• ammoin -> same as item(id,"ammoin")
• ammo -> same as item(id,"ammo")
• weaponmode -> same as item(id,"mode")

An example is shown in this GIF:

IMG:https://puu.sh/7wx9K.gif

Recorded with LiceCap.

You can drop and pickup weapons and it will still work fine.
edited 2×, last 04.04.14 08:16:35 pm
Approved by Yates

Download Download

652 b, 685 Downloads

Comments

28 comments
Page
To the start Previous 1 2 Next To the start

Log in!

You need to log in to be able to write comments!Log in

old

_oops
User Off Offline

thanks for useful file!
I like it!

old

Sparty
Reviewer Off Offline

it will be Great to put it on the left corner-mid, it will give some S.E.X.Y
I like it!

old

Kirito2K
User Off Offline

Nice .
I like it!

old

Avo
User Off Offline

√ useful for setammo command!
I like it!

old

MikuAuahDark
User Off Offline

I just realize that you're only use cs2d cmd items
I like it!

old

omg
User Off Offline

i noticed this too...its just too bad u cant set ammo values to a weapon id, or id use this

still a good script
I like it!

old

Infinite Rain
Reviewer Off Offline

Nope, skullorig, we both using menu for building it.

old

SkullzOrig
User Off Offline

O.O I just noticed it now that you mention it.

More >
To the start Previous 1 2 Next To the start