Forum

> > CS2D > General > StartMoney
Forums overviewCS2D overviewGeneral overviewLog in to reply

English StartMoney

1 reply
To the start Previous 1 Next To the start

old closed StartMoney

TWBiBi
User Off Offline

Quote
• where differences on the two star monry Lua??


1. this lua is by Flacko
1
2
3
4
5
6
7
8
9
10
11
if flacko==nil then flacko={} end
flacko.cash={}

addhook("startround","flacko.cash.spawncash")
function flacko.cash.spawncash(p)
     for i=1, 32 do
          if(player(i,"exists")) then
               parse("setmoney "..i.." 16000")
          end
     end
end

2. this is by DC
1
2
3
4
5
6
7
if flacko==nil then flacko={} end
flacko.cash={}

addhook("spawn","flacko.cash.spawn")
function flacko.cash.spawn(p)
parse("setmoney "..p.." 16000")
end

>Who can explain.
1
2
if flacko == nil then flacko = {} end
flacko.cash = {}
what is used for?

btw...
what is the meaning of this word? (flacko)
edited 1×, last 15.11.10 07:09:50 am

Admin/mod comment

Don't push. It's forbidden. /TheKilledDeath

old Re: StartMoney

ohaz
User Off Offline

Quote
The second one is better. That's the difference.
First one gives EVERYBODY 16000$ when one player spawns.
Second one only the spawning player.

The code above just creates an array.

But there is also a lua thread, so this is closed.
To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview