Forum

> > CS2D > Mods > a salvation mod
Forums overviewCS2D overview Mods overviewLog in to reply

English a salvation mod

4 replies
To the start Previous 1 Next To the start

old a salvation mod

dovydasj2
User Off Offline

Quote
i dont want to say anything that thats gonna happen but im new to that scripting and stuff so i need u to tell me how to make that only be 3terorists and many more ct's plz help me cuz i really need that. P.S. i need map makers if any1 of u want to do that asy it to me so i will say what it must have and whats this mod

old Re: a salvation mod

DannyDeth
User Off Offline

Quote
1
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
I believe this will do what you ask for. And btw: if you want Lua help with your mod you should probably post in the Lua scripting section ).

old Re: a salvation mod

dovydasj2
User Off Offline

Quote
thanks but how i sed im new to that scripting and im gonna create withuot LUA and another but stupid question where to put it in??

old Re: a salvation mod

DannyDeth
User Off Offline

Quote
Ok, I will tell you where to put your Lua scripts if you do just one thing:
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")
and it should work.

old Re: a salvation mod

dovydasj2
User Off Offline

Quote
thanks for telling me that... but it doesn't work again.
edited 2×, last 08.02.11 02:43:06 pm
To the start Previous 1 Next To the start
Log in to reply Mods overviewCS2D overviewForums overview