Forum

> > CS2D > Scripts > Money
Forums overviewCS2D overview Scripts overviewLog in to reply

English Money

10 replies
To the start Previous 1 Next To the start

old Money

danielsv09
User Off Offline

Quote
I would like a system of money without rp
only money
because 16000 is very little
thanks!

old Re: Money

Mechanolith
User Off Offline

Quote
Storing where? How? When?
It will be way less difficult to help you if you were more specific, could you explain better?

old Re: Money

danielsv09
User Off Offline

Quote
user Mechanolith has written
Storing where? How? When?
It will be way less difficult to help you if you were more specific, could you explain better?


in rps
has a system of money
I wanted an equal
but only the money!
rp not all!

old Re: Money

Infinite Rain
Reviewer Off Offline

Quote
Its easy

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
function array(m)
	local array
	for id = 1, m do
		array[id] = 0
	end
return array
end

money = array(32)

function Fmoney(id, v)
	money[id] = money[id] + v
end

addhook('ms100', 'MONEYms100')
function MONEYms100()
	for id = 1, 32 do
		parse('hudtxt2 '.. id..' 1 "Money: '.. money[id]..'" 96 96 1')
	end
end

OK, use
1
Fmoney(playerID, HOWMUCH)
for give or grab money from player
to grab money type like
1
Fmoney(ID, -500) --takes 500 money from player

for give
1
Fmoney(ID, 500) --Gives 500 money to player
Enjoy lazy bustard

old Re: Money

Mechanolith
User Off Offline

Quote
Do not use translators, it's for retarded people.
And now seems that user Infinite Rain helped you, therefore it was easier if you searched an RP Script and cut the money storage part...

old Re: Money

Tajifun
User Off Offline

Quote
Do you've got at least any lua-knowledge?
Otherwise you'll have a lot of problems.

old Re: Money

Yates
Reviewer Off Offline

Quote
user Mechanolith has written
Do not use translators, it's for retarded people.

I use translators. Doesn't mean that you're retarded. It's just not allowed here.

I just wanted to start an argument about your sig. But you're not worth it.

old Re: Money

Mechanolith
User Off Offline

Quote
user Yates has written
user Mechanolith has written
Do not use translators, it's for retarded people.

I use translators. Doesn't mean that you're retarded. It's just not allowed here.

I just wanted to start an argument about your sig. But you're not worth it.


I forgot the "translator to english" part, since english is a basic language you need to learn, even to work in somewhere.

old Re: Money

Yates
Reviewer Off Offline

Quote
It's not a basic language, the grammar is fucking hard.
People that translate are the smart ones, they are learning by doing it. Maybe it's not always correct, but you shouldn't translate whole setences.

You don't need english to work somewhere, you have it all wrong.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview