Forum

> > CS2D > Scripts > script request
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch script request

7 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt script request

Eternal
User Off Offline

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

alt Re: script request

EP
User Off Offline

Zitieren
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

alt Re: script request

Eternal
User Off Offline

Zitieren
user EP hat geschrieben
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

alt Re: script request

Avo
User On Online

Zitieren
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
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht