Forum

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

Englisch Jail Script

2 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Jail Script

made in Poland
User Off Offline

Zitieren
Welcome. I'm looking script which when shoot at the enemy, enemy it will be teleported to prison. Sorry my english is bad



alt Re: Jail Script

Alistaire
User Off Offline

Zitieren
1
2
3
4
5
6
7
8
9
jail = {weapon = 3, x = 10, y = 12}

addhook('hit', 'AA_hit')

function AA_hit(id, source, weapon)
	if weapon == jail.weapon then
		parse('setpos '..id..' '..(jail.x * 32 + 16)..' '..(jail.y * 32 + 16))
	end
end

Fill your wanted weapon, tilex and tiley in jail[], or maybe put more information on what you want...?

alt Re: Jail Script

made in Poland
User Off Offline

Zitieren
I just wanted to script D But I see that you helped me so about to close. Big thanks for you
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht