Forum

> > CS2D > Scripts > How to make a money lua
Forums overviewCS2D overview Scripts overviewLog in to reply

English How to make a money lua

9 replies
To the start Previous 1 Next To the start

old ?

Dovahkin
User Off Offline

Quote
Not the drop money the, money post like...



money:9324$ see??

old Re: How to make a money lua

EngiN33R
Moderator Off Offline

Quote
He can't do that, doesn't have the mental capability.

@firetounge41
1
2
3
4
5
6
7
8
9
10
11
12
13
function hudtxt(id,tid,color,text,x,y)
local out="©"..color..""..text
parse("hudtxt2 "..id.." "..tid.." \""..out.."\" "..x.." "..y)
end 

addhook("second","updatehud")
function updatehud()
for id=1,#player(0,"table") do
if (player(id,"exists")) then
hudtxt(id,1,255255255,"Money: "..money[id],150,50)
end
end
end
I'm not sure if hudtxt function will work properly, I wrote this without testing. You will also need a money table called 'money'.

old Sir

Dovahkin
User Off Offline

Quote
the wrong is!!!

1
Attempt to call index global 'money' (a nil value)

old Re: How to make a money lua

EngiN33R
Moderator Off Offline

Quote
I told you, you need a money table. Do you have a money script? That actually creates money and you can drop them etc.?

old sir

Dovahkin
User Off Offline

Quote
im not a good scripter please, teach me!

old Re: How to make a money lua

Yasday
User Off Offline

Quote
An old one of mine:
Spoiler >
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview