Forum

> > CS2D > Scripts > Script suggestions
Forums overviewCS2D overview Scripts overviewLog in to reply

English Script suggestions

8 replies
To the start Previous 1 Next To the start

old Script suggestions

Ace Howl
User Off Offline

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

old Re: Script suggestions

HedShot
User Off Offline

Quote
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)
edited 1×, last 23.03.13 09:39:34 am

old Re: Script suggestions

KabirDuy
User Off Offline

Quote
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

old Re: Script suggestions

Avo
User Off Offline

Quote
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

old Re: Script suggestions

aleksix
User Off Offline

Quote
P3:
Spoiler >

old Re: Script suggestions

Avo
User Off Offline

Quote
@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))
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview