Forum

> > CS2D > Scripts > script request
Forums overviewCS2D overview Scripts overviewLog in to reply

English script request

7 replies
To the start Previous 1 Next To the start

old script request

Eternal
User Off Offline

Quote
Hello i want to request a script , that is instantly and infinite dispenser build i want to build the dispenser unlimited and instantly
Can someone help me?

old Re: script request

EP
User Off Offline

Quote
1
2
3
4
5
6
7
addhook("buildattempt","a")
function a(id,type,x,y)
	if type == 7 then
	parse("spawnobject "..type.." "..x.." "..y.." "..player(id,"rot").." 0 "..player(id,"team").." "..id)
	return 1
	end
end
works

old Re: script request

Eternal
User Off Offline

Quote
user EP has written
1
2
3
4
5
6
7
addhook("buildattempt","a")
function a(id,type,x,y)
	if type == 7 then
	parse("spawnobject "..type.." "..x.." "..y.." "..player(id,"rot").." 0 "..player(id,"team").." "..id)
	return 1
	end
end
works

Thank you , it works

old Re: script request

Avo
User Off Offline

Quote
1
2
3
4
5
6
7
addhook("buildattempt","a")
function a(id,type,x,y)
	if player(id,"weapontype")==74 then
     parse("spawnobject "..type.." "..x.." "..y.." "..player(id,"rot").." 0 "..player(id,"team").." "..id)
     return 1
	end
end

For all buildings except objects like mines
If you want use it for all OBJECTS (mines,laser mines), just use:

1
2
3
4
5
6
7
addhook("buildattempt","a")
function a(id,type,x,y)

     parse("spawnobject "..type.." "..x.." "..y.." "..player(id,"rot").." 0 "..player(id,"team").." "..id)
     return 1

end
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview