Forum

> > CS2D > Scripts > Script suggestions
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Script suggestions

8 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Script suggestions

Ace Howl
User Off Offline

Zitieren
Hello.

I have some problem. Can you solve this?


P1: I want to disable build Wall 1,Wall 2 and Wall 3. I tried to do this:
1
2
3
4
5
parse("mp_unbuildable Wall 1")
--or
parse("mp_unbuildable Wall I")
--or
parse("mp_unbuildable Wall l")
but it didn't work. Same as Gate Field and Teleporter(Entrance and Exit).

P2: In each round, everybody equip a weapon (like Wrench)
I do like this :
1
parse("equip "..id.." "..74)
and doesn't work.

P3: Each damage, the HP of a player will generate (10HP/sec).I do:
1
parse("sethealth "..player(id,"health").."+10)
same as the problem.

I hope someone can do or solve the problems.

alt Re: Script suggestions

HedShot
User Off Offline

Zitieren
P1:

1
parse("mp_unbuildable Wall l")

P2:

1
2
3
4
addhook("spawn","wspawn")
function wspawn(id)
parse("equip "..id.." 74")
end

I do not know P3, sorry. (sorry for my english, I'm Hungary)
1× editiert, zuletzt 23.03.13 09:39:34

alt Re: Script suggestions

KabirDuy
User Off Offline

Zitieren
P1, this is good for you!
1
2
3
parse('mp_building_limit "wall I" 10')
parse('mp_building_limit "wall II" 10')
parse('mp_building_limit "wall III" 10')

change the value 10 to change the limit.

P2, as above:
1
2
3
4
addhook("spawn","wspawn")
function wspawn(id)
parse("equip "..id.." 74")
end

P3, You use this file:
file cs2d COD's Damage/Health v1.1

alt Re: Script suggestions

Avo
User Off Offline

Zitieren
Wrong:
1
2
3
4
addhook("spawn","wspawn")
function wspawn(id)
	parse("equip "..id.." 74")
end

Use this instead:
1
2
3
4
addhook("spawn","wspawn")
function wspawn(id)
	return "74"
end

alt Re: Script suggestions

aleksix
User Off Offline

Zitieren
P3:
Spoiler >

alt Re: Script suggestions

Avo
User Off Offline

Zitieren
@user aleksix:
1
parse("sethealth "..living[id].." "..player(id,"health")..+10)
Parser doesn't support arithmethic operations.

1
parse("sethealth "..living[id].." "..(player(id,"health")+10))
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht