English Weapon Ammo Counts icon

28 comments
06.06.12 07:59:52 am
like 14 like it!
652 b, 249 Downloads
apacherev
User
Offline Off
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:http://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
ok This file has been reviewed and approved by Yates (03.12.15 10:50:22 pm)

Comments

28 comments
Goto 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
01.01.17 06:08:57 pm
like I like it!
Up
Gaiyos
Security Supporter
Offline Off
Nice script!
13.08.16 06:29:50 pm
like I like it!
Up
Waldin
User
Offline Off
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.
13.08.16 10:18:00 am
like I like it!
Up
CyanBros
User
Offline Off
@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.
27.07.16 05:10:18 am
like I like it!
Up
little bite
BANNED
Offline Off
easiest , anyway good.
15.07.16 01:28:43 am
Up
P_206
BANNED
Offline Off
@user CyanBros: , @user Mr_Benson: was right in his comment , simply @user Mr_Benson: just asked @user apacherev: To improve his scripting skill
Quote:
@user Mr_Benson: head heart: So?You must be jealous!

@user CyanBros: , Don't forget that's humans have the same ability , then @user Mr_Benson: can make a script too !
13.07.16 07:32:39 pm
Up
Mr_Benson
BANNED
Offline Off
@user CyanBros: 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
13.07.16 05:40:55 pm
Up
P_206
BANNED
Offline Off
@user MoKopus: Anyway i didn't find the "gif" image that's you are talking about.
10.07.16 06:03:03 pm
like I like it!
Up
MoKopus
User
Offline Off
that is odd, I can see the gif as well user P_206
10.07.16 02:45:24 pm
Up
P_206
BANNED
Offline Off
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
____________________________________________
09.07.16 10:07:16 pm
like I like it!
Up
CyanBros
User
Offline Off
@user Mr_Benson: So?You must be jealous!
09.07.16 06:47:18 pm
Up
Mr_Benson
BANNED
Offline Off
-useful script
NOTE : You can make better than this.
07.07.16 02:13:34 pm
like I like it!
Up
CyanBros
User
Offline Off
@user P_206: Can you see that GIF?Im sure you are blind.

@file:Good,it may useful to me..
07.07.16 12:53:15 pm
like I like it!
Up
Sparty
Reviewer
Offline Off
@user P_206: Are you Blind? Can you see the GIF?, This is fine and doesn't need a screenshot.
07.07.16 12:40:02 pm
Up
P_206
BANNED
Offline Off
No screen shots founded .
07.07.16 12:11:37 pm
like I like it!
Up
Nekomata
User
Offline Off
Was looking for this.
28.05.16 03:22:09 pm
like I like it!
Up
Pro Gaming Network
User
Offline Off
Nice work.
28.05.16 02:52:12 am
like I like it!
Up
Waldin
User
Offline Off
i was searching for this.
ill use it cuz i dont know how to get a item id.
Thanks you.
edited 2×, last 23.06.16 02:04:59 am
03.12.15 11:52:13 pm
like I like it!
Up
SQ
Moderator
Online On
I used this for my achievements script. More precisely for magic bullet achievement
03.12.15 10:50:15 pm
like I like it!
Up
Yates
Reviewer
Offline Off
I remember using this for my old unfinished GTA SA mod.
13.09.15 11:23:05 am
Up
Masea
Super User
Online On
Code:
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