Dateien

> > CS2D > Lua Scripts > Weapon Ammo Counts
DateiübersichtCS2D-ÜbersichtLua Scripts-Übersicht

Englisch Weapon Ammo Counts >

28 Kommentare652 b, 643 Downloads

alt 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.
2× editiert, zuletzt 04.04.14 20:16:35
Zugelassen von Yates

Download Download

652 b, 643 Downloads

Kommentare

28 Kommentare
Seite
Zum Anfang Vorherige 1 2 Nächste Zum Anfang

Logge dich ein!

Du musst dich einloggen, um selber Kommentare verfassen zu können!Einloggen

alt

Gaios
Reviewer Off Offline

Nice script!
Ich mag es!

alt

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.
Ich mag es!

alt

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.
Ich mag es!

alt

little bite
BANNED Off Offline

easiest , anyway good.
Ich mag es!

alt

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

alt

P_206
BANNED Off Offline

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

alt

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
____________________________________________

alt

Mr_Benson
BANNED Off Offline

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

alt

sonkii
User Off Offline

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

@file:Good,it may useful to me..
Ich mag es!

alt

Sparty
Reviewer Off Offline

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

alt

P_206
BANNED Off Offline

No screen shots founded .

alt

Nekomata
User Off Offline

Was looking for this.
Ich mag es!

alt

Waldin
User Off Offline

i was searching for this.
ill use it cuz i dont know how to get a item id.
Thanks you.
Ich mag es!
2× editiert, zuletzt 23.06.16 02:04:59

alt

SQ
Moderator Off Offline

I used this for my achievements script. More precisely for magic bullet achievement
Ich mag es!

alt

Yates
Reviewer Off Offline

I remember using this for my old unfinished GTA SA mod.
Ich mag es!

alt

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.
Zum Anfang Vorherige 1 2 Nächste Zum Anfang