Forum

> > CS2D > Scripts > Item id that player currently carries.
Forums overviewCS2D overview Scripts overviewLog in to reply

English Item id that player currently carries.

4 replies
To the start Previous 1 Next To the start

old Re: Item id that player currently carries.

Sudden Death
User Off Offline

Quote
@user Apache uwu: YES, I finally made it to work but I had to change table for variable. It's really helpfull, thank you for making it.
1
2
3
4
5
6
7
8
9
10
11
12
addhook("log","_log")

parse("items")

function _log(text)
	if string.sub(text,1,20)=="Tpl.weapon: #0, pl: " then
		a,b,c,d,e,f=string.match(text,"Tpl.weapon: #0, pl: (.*), typ: (.*) (.*), a: (.*)|(.*), m: (.*)")
		ammoin=tonumber(d)
		--msg("Ammoin "..ammoin.."")
		return 1
	end	
end
Btw. almost week for one shit, lol.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview