Files

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

English Weapon Ammo Counts >

28 comments652 b, 693 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, 693 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

Gaios
Reviewer Off Offline

Nice script!
I like it!

old

Waldin
User Off Offline

You dont need a screenshot.
If you dont need or care about lua then this file is not for you.
Read the description, this obviusly dont need a screenshot, and the gif just an example (that is not in file)

Still using this, i cant find other way.
I like it!

old

sonkii
User Off Offline

@user P_206: @user Mr_Benson: Bah,you two seem like insult me like that and you,@user Mr_Benson: with no emotions,so you can create script?get rekt youself.Btw,as simile said,angry doesnt make any senses.Improve your english please?you,@user Mr_Benson: get angry and watch before you leap.
I like it!

old

little bite
BANNED Off Offline

easiest , anyway good.
I like it!

old

Mr_Benson
BANNED Off Offline

@user sonkii: be jealous ? why when i say him to improve his skill in scripting , please you're taking everything as jealous, insult , acts , and many. etc

old

P_206
BANNED Off Offline

@user _oops: Anyway i didn't find the "gif" image that's you are talking about.

old

P_206
BANNED Off Offline

Then I will Post my Screens :
____________________________________________
IMG:https://s31.postimg.org/p8njf8p57/bandicam_2016_07_10_05_37_50_518.jpg

IMG:https://s32.postimg.org/rqmq2m3rp/bandicam_2016_07_10_05_38_35_686.jpg

Maybe you are blind Guys if you can't see the screens
____________________________________________

old

Mr_Benson
BANNED Off Offline

-useful script
NOTE : You can make better than this.

old

sonkii
User Off Offline

@user P_206: Can you see that GIF?Im sure you are blind.

@file:Good,it may useful to me..
I like it!

old

Sparty
Reviewer Off Offline

@user P_206: Are you Blind? Can you see the GIF?, This is fine and doesn't need a screenshot.
I like it!

old

P_206
BANNED Off Offline

No screen shots founded .

old

Nekomata
User Off Offline

Was looking for this.
I like it!

old

Waldin
User Off Offline

i was searching for this.
ill use it cuz i dont know how to get a item id.
Thanks you.
I like it!
edited 2×, last 23.06.16 02:04:59 am

old

SQ
Moderator Off Offline

I used this for my achievements script. More precisely for magic bullet achievement
I like it!

old

Yates
Reviewer Off Offline

I remember using this for my old unfinished GTA SA mod.
I like it!

old

Masea
Super User Off Offline

1
2
LUA ERROR: sys/lua/ammo_counts.lua:26: attempt to index field '?' (a nil value)
 -> sys/lua/ammo_counts.lua:26: in function 'player'

This file is avesome, but it's breaks my lua.
To the start Previous 1 2 Next To the start