Forum

> > CS2D > Mods > a salvation mod
ForenübersichtCS2D-Übersicht Mods-ÜbersichtEinloggen, um zu antworten

Englisch a salvation mod

4 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt a salvation mod

dovydasj2
User Off Offline

Zitieren
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

alt Re: a salvation mod

DannyDeth
User Off Offline

Zitieren
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 ).

alt Re: a salvation mod

dovydasj2
User Off Offline

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

alt Re: a salvation mod

DannyDeth
User Off Offline

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

alt Re: a salvation mod

dovydasj2
User Off Offline

Zitieren
thanks for telling me that... but it doesn't work again.
2× editiert, zuletzt 08.02.11 14:43:06
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Mods-ÜbersichtCS2D-ÜbersichtForenübersicht