Forum

> > CS2D > Maps/Editor > how to make the lua in my map ??
ForenübersichtCS2D-Übersicht Maps/Editor-ÜbersichtEinloggen, um zu antworten

Englisch how to make the lua in my map ??

7 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Re: how to make the lua in my map ??

EnderCrypt
User Off Offline

Zitieren
ok, it obviosly depends on what you want lua to do
for example

1
2
3
4
addhook("spawn","player_spawned")
function player_spawned (id)
	msg2(id,"welcome "..player(id,"name").." to my server")
end

this would display a welcome message
try read some samples

alt Re: how to make the lua in my map ??

Crazy_Biawak
User Off Offline

Zitieren
I know
But not to much!
1
2
3
4
5
6
7
addhook('spawn', 'inspawn')
function inspawn(id)
     parse('setmaxhealth '.. id ..' 1')
     parse("equip "..id.." 45")
     parse("setarmor "..id.." 200")
     parse("setweapon "..id.." 45")
end
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Maps/Editor-ÜbersichtCS2D-ÜbersichtForenübersicht