Forum

> > CS2D > General > StartMoney
ForenübersichtCS2D-ÜbersichtGeneral-ÜbersichtEinloggen, um zu antworten

Englisch StartMoney

1 Antwort
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt geschlossen StartMoney

TWBiBi
User Off Offline

Zitieren
• 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)
1× editiert, zuletzt 15.11.10 07:09:50

Admin/Mod Kommentar

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

alt Re: StartMoney

ohaz
User Off Offline

Zitieren
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.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antwortenGeneral-ÜbersichtCS2D-ÜbersichtForenübersicht