Forum




a salvation mod
4 replies



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
addhook("minute","_Check_T")
function _Check_T()
Ts = player(0,"team1")
if #Ts > 3 then
parse("makect "..Ts[4])
end
end
addhook("team","_3Tr")
function _3Tr(team,id)
if team==1 and #Ts > 3 then
msg2(id,"©255000000There are too many Terrorists!")
parse("makect "..id)
return 1
elseif team==1 and #Ts < 3 then
return 0
else
return 0
end
end
Type slower and try and use commas and periods in your text, mainly becasue I cannot read your posts very easily

Where to put a Lua script:
When you make a Lua script it must go into a file with a .lua extension. So you copy the code into Notepad ( or any other text-editor you like ) adn then choose "Save as", there you would change the part where it says "*.txt", click the menu and change it to "All types (*.*)", then type the name "my_lua_script.lua" into the name box and save it in your sys/lua folder. Then put this into your "server.lua" file ( also in sys/lua ):
1
dofile("sys/lua/my_lua_script.lua")

edited 2×, last 08.02.11 02:43:06 pm



