Forum

> > CS2D > Scripts > Lua Scripts/Questions/Help
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Lua Scripts/Questions/Help

6.770 Antworten
Seite
Zum Anfang Vorherige 1 2213 214 215338 339 Nächste Zum Anfang

alt Re: Lua Scripts/Questions/Help

Szkieletor
User Off Offline

Zitieren
Snake_Eater hat geschrieben
A last question:WHER I CAN LEARN LUA SCRIPTING???


Google is your friend. Really. It does not bite, or download viruses. No, it isn't screamer. Your computer won't blow up when you'll try to search for "Lua scripting tutorial" with google.com. You are still scared? What? It's too hard for you? OK, I'll do it for you. http://en.lmgtfy.com/?q=lua+scripting+tutorial

PS. I know it might be considered flame, but I'm really tired of people who can't even use google before asking on forum... Besides this, google search is 5 minutes. Waiting for reply on forums take few hours sometimes.

alt Re: Lua Scripts/Questions/Help

BrunoRZ
User Off Offline

Zitieren
I have a map. Then there's a triggeer_start on it, but I get tired of every round write the command "trigger ball2"
Can someone send me a lua wich triggers it alone in the start of the round ?

alt Re: Lua Scripts/Questions/Help

YellowBanana
BANNED Off Offline

Zitieren
BrunoRZ hat geschrieben
I have a map. Then there's a triggeer_start on it, but I get tired of every round write the command "trigger ball2"
Can someone send me a lua wich triggers it alone in the start of the round ?


1
2
3
4
addhook("startround","my_startround")
function my_startround()
	parse("trigger ball2")
end

alt this is my first lua script

modem111
User Off Offline

Zitieren
°this is my lua scr.

why doesnt work it ?

im little speak eng and write


lua scr.
Spoiler >

alt Re: Lua Scripts/Questions/Help

modem111
User Off Offline

Zitieren
martis67 hat geschrieben
i think thats a stupid question but how create lua script?


open notepad

and write your script after save script but you select all files and check name a server.lua (lua)

alt Re: Lua Scripts/Questions/Help

Homer
User Off Offline

Zitieren
@martis I suggest, in the fully limited knowledges of my very limited existence, that you should download some basic scripts from unreal software, and look at them. Play with them, figure what what does. And you'll begin to understand how it works.

alt Re: Lua Scripts/Questions/Help

BrunoRZ
User Off Offline

Zitieren
YellowBanana hat geschrieben
BrunoRZ hat geschrieben
I have a map. Then there's a triggeer_start on it, but I get tired of every round write the command "trigger ball2"
Can someone send me a lua wich triggers it alone in the start of the round ?


1
2
3
4
addhook("startround","my_startround")
function my_startround()
	parse("trigger ball2")
end
It worked for ball2, but I stll have ball3, and

I've just copied and pasted but it didnt worked
why ?

alt HELP!

texnonikWP
User Off Offline

Zitieren
Admin need restart cs2d.!
IMG:https://ipicture.ru/uploads/100629/ZjAq6wNmSY.jpg


thets will be if no weapon (89)
only need script on server.

[ code ]addhook("startround","my_startround")
function my_startround()
parse("equip 89")
end[ /code ]

IMG:https://ipicture.ru/uploads/100629/thumbs/BMRQIvMP92.jpg


random tiger

can you do ?

verry need weapon (89)
can create real map of race and cant damage.(press left and right button)
and were s script?

[ code ]addhook("endround","sample.ut.ending")
function sample.ut.ending()
if (player(id,"team") == 1) then
parse("sv_sound \"WarP0rTal/quake/winsounds/rt"..math.random(1,14)..".wav\"")
sample.ut.fblood=0
end

addhook("endround","sample.ut.ending")
function sample.ut.ending()
if (player(id,"team") == 2) then
parse("sv_sound \"WarP0rTal/quake/winsounds/rct"..math.random(1,14)..".wav\"")
sample.ut.fblood=0
end[ /code ]

Please help do to be working sound files.

alt new To scripting? need to make one

Stormtrooper595
User Off Offline

Zitieren
My map for some reason my map wont do a 3, 2, 1 Fight! on the message screen on a multiplayer map (although i have the entities working right it wont work. i think it would be easier if its done in lua so i can do it simply for all my maps) . so how would i do a prefight count message in lua? Like 3 (then a sound file) 2 (sound file) 1 (sound file) Fight (sound file) and when it says fight i need it to like trigger 2 walls so they open. Sorry im new to scripting just need some help here. THanks

alt Fifa 2d mod

RyceR
User Off Offline

Zitieren
I have question: i see the "Fifa 2d" mod, where can i download it? say plz!

alt Re: Lua Scripts/Questions/Help

DRoNe
User Off Offline

Zitieren
BrunoRZ hat geschrieben
YellowBanana hat geschrieben
BrunoRZ hat geschrieben
I have a map. Then there's a triggeer_start on it, but I get tired of every round write the command "trigger ball2"
Can someone send me a lua wich triggers it alone in the start of the round ?


1
2
3
4
addhook("startround","my_startround")
function my_startround()
	parse("trigger ball2")
end
It worked for ball2, but I stll have ball3, and

I've just copied and pasted but it didnt worked
why ?


1
2
3
4
addhook("startround","my_startround")
function my_startround()
	parse("trigger ball2,ball3")
end

alt Re: Lua Scripts/Questions/Help

archmage
User Off Offline

Zitieren
Stormtrooper595 hat geschrieben
My map for some reason my map wont do a 3, 2, 1 Fight! on the message screen on a multiplayer map (although i have the entities working right it wont work. i think it would be easier if its done in lua so i can do it simply for all my maps) . so how would i do a prefight count message in lua? Like 3 (then a sound file) 2 (sound file) 1 (sound file) Fight (sound file) and when it says fight i need it to like trigger 2 walls so they open. Sorry im new to scripting just need some help here. THanks

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
addhook("second", "countdown")
timer = 4

for i = 1, 32 do
	parse("speedmod " .. i .. " -100")
end

function countdown ()
	timer = timer - 1
	if ( timer > 0 ) then
		msg(timer .. " seconds remaining...")
		parse("sv_sound \"sfx\\countdwn_" .. timer .. ".wav\"")
	elseif ( timer > -1 ) then
		msg("FIGHT!@C")
		parse("sv_sound \"sfx\\start.wav\"")
		for i = 1, 32 do
			parse("speedmod " .. i .. " 0")
		end
		sethook("second", 0)
	end
end

not sure what the sound names are or what to trigger give me the names of the files ( with extensions) and the trigger names
1× editiert, zuletzt 30.06.10 02:04:29
Zum Anfang Vorherige 1 2213 214 215338 339 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht