English Lua Scripts/Questions/Help

6,770 replies
Goto Page
To the start Previous 1 2 ... 213 214 215 ... 338 339 Next To the start
27.06.10 05:42:14 pm
Up
KenVo
User
Offline Off
@Snake_Eater

Here is the prison script: http://www.unrealsoftware.de/files_show.php?file=918

And just don't let them use command "kill"
27.06.10 05:58:26 pm
Up
Snake_Eater
User
Offline Off
A last question:WHER I CAN LEARN LUA SCRIPTING???
[Death Note]
27.06.10 06:10:27 pm
Up
martis67
User
Offline Off
thanks
Learning lua
27.06.10 07:08:49 pm
Up
Szkieletor
User
Offline Off
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.
27.06.10 10:21:04 pm
Up
Sudden Death
User
Offline Off
Snake_Eater
Flacko allways say it ( But why to me? I need other tutorials ;S) Flacko say "You just don't understand lua, so you will have to read tutorials, manuals, etc:

Programming in Lua: http://www.lua.org/pil/

Lua FAQ: http://lua-users.org/wiki/LuaFaq

Reference Manual: http://www.lua.org/manual/5.1/

Programming Gems (advanced): http://www.lua.org/gems/"
Sniffin'Man "If it cannot be done with lua, it must be you mama, coz she's too fat"
27.06.10 11:21:56 pm
Up
Flacko
User
Offline Off
Intrusion has written:
Snake_Eater
Flacko allways say it ( But why to me? I need other tutorials ;S)

I said that to YOU because YOU dared to post this abomination:
http://www.unrealsoftware.de/forum_posts.php?post=120848&start=4000#post181900
28.06.10 01:08:44 pm
Up
Echo-Charlie
User
Offline Off
How to add sprites onto HUD, like in Tibia mod?

EDITED: I know now.
edited 1×, last 28.06.10 11:28:38 pm
28.06.10 04:37:35 pm
Up
BrunoRZ
User
Offline Off
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 ?
28.06.10 05:20:19 pm
Up
Sudden Death
User
Offline Off
he don't know what change too.
Sniffin'Man "If it cannot be done with lua, it must be you mama, coz she's too fat"
28.06.10 07:11:01 pm
Up
YellowBanana
BANNED
Offline Off
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 ?


Code:
1
2
3
4
addhook("startround","my_startround")
function my_startround()
     parse("trigger ball2")
end
29.06.10 12:06:19 am
Up
modem111
User
Offline Off
°this is my lua scr.

why doesnt work it ?

im little speak eng and write


lua scr.
Spoiler >
29.06.10 12:09:14 am
Up
Flacko
User
Offline Off
You've written "funciton" instead of function.
29.06.10 12:12:01 am
Up
modem111
User
Offline Off
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)
29.06.10 04:23:40 am
Up
Homer
User
Offline Off
@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.
I detest that man who hides one thing in the depths of his heart, and speaks for another.
29.06.10 04:39:05 pm
Up
BrunoRZ
User
Offline Off
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 ?


Code:
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 ?
29.06.10 06:35:43 pm
Up
texnonikWP
User
Offline Off
Admin need restart cs2d.!
IMG:http://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:http://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.
Up
Stormtrooper595
User
Offline Off
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
29.06.10 07:44:17 pm
Up
RyceR
User
Offline Off
I have question: i see the "Fifa 2d" mod, where can i download it? say plz!
IMG:http://img704.imageshack.us/img704/4043/userbargimp.png
29.06.10 10:25:31 pm
Up
DRoNe
User
Offline Off
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 ?


Code:
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 ?


Code:
1
2
3
4
addhook("startround","my_startround")
function my_startround()
     parse("trigger ball2,ball3")
end
IMG:http://img39.imageshack.us/img39/567/drnatimg.png
30.06.10 01:39:29 am
Up
archmage
User
Offline Off
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

Code:
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
We must secure the existence of our people and a future for white children. 14/88
To the start Previous 1 2 ... 213 214 215 ... 338 339 Next To the start