Forum

> > CS2D > Scripts > How to make a money lua
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch How to make a money lua

9 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt ?

Dovahkin
User Off Offline

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



money:9324$ see??

alt Re: How to make a money lua

EngiN33R
Moderator Off Offline

Zitieren
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'.

alt Sir

Dovahkin
User Off Offline

Zitieren
the wrong is!!!

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

alt Re: How to make a money lua

EngiN33R
Moderator Off Offline

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

alt sir

Dovahkin
User Off Offline

Zitieren
im not a good scripter please, teach me!

alt Re: How to make a money lua

Yasday
User Off Offline

Zitieren
An old one of mine:
Spoiler >
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht