1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
time = 0
addhook("minute", "twominutestimer")
function twominutestimer()
	time = time +1
	if time == 2 then
		time = 0
		msg("bla")
	end
end
Scripts
Sammelthread/FAQ zu Lua & Editortime = 0
addhook("minute", "twominutestimer")
function twominutestimer()
	time = time +1
	if time == 2 then
		time = 0
		msg("bla")
	end
end
addhook ("spawn","spa")
function spa(id)
if (player(id,"name")=="dein Name") then
parse( "setpos "..id.." "..x.." "..y)
end
end
oder(ich weiß net ob das klappt mal probieren)
addhook ("spawn","spa")
function spa(id)
if (player(id,"id")==1) then
parse( "setpos "..id.." "..x.." "..y)
end
end
addhook("team", "welcome")
function welcome(id)
	msg2(id, "Willkommen auf unserem Server")
end