Forum

> > CS2D > Scripts > Lua Scripts/Questions/Help
Forums overviewCS2D overview Scripts overviewLog in to reply

English Lua Scripts/Questions/Help

6,770 replies
Page
To the start Previous 1 2213 214 215338 339 Next To the start

old Re: Lua Scripts/Questions/Help

Szkieletor
User Off Offline

Quote
Snake_Eater has written
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.

old Re: Lua Scripts/Questions/Help

BrunoRZ
User Off Offline

Quote
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 ?

old Re: Lua Scripts/Questions/Help

YellowBanana
BANNED Off Offline

Quote
BrunoRZ has written
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

old this is my first lua script

modem111
User Off Offline

Quote
°this is my lua scr.

why doesnt work it ?

im little speak eng and write


lua scr.
Spoiler >

old Re: Lua Scripts/Questions/Help

modem111
User Off Offline

Quote
martis67 has written
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)

old Re: Lua Scripts/Questions/Help

Homer
User Off Offline

Quote
@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.

old Re: Lua Scripts/Questions/Help

BrunoRZ
User Off Offline

Quote
YellowBanana has written
BrunoRZ has written
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 ?

old HELP!

texnonikWP
User Off Offline

Quote
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.

old new To scripting? need to make one

Stormtrooper595
User Off Offline

Quote
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

old Fifa 2d mod

RyceR
User Off Offline

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

old Re: Lua Scripts/Questions/Help

DRoNe
User Off Offline

Quote
BrunoRZ has written
YellowBanana has written
BrunoRZ has written
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

old Re: Lua Scripts/Questions/Help

archmage
User Off Offline

Quote
Stormtrooper595 has written
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
edited 1×, last 30.06.10 02:04:29 am
To the start Previous 1 2213 214 215338 339 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview