Forum

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

English Jail Script

2 replies
To the start Previous 1 Next To the start

old Jail Script

made in Poland
User Off Offline

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



old Re: Jail Script

Alistaire
User Off Offline

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

old Re: Jail Script

made in Poland
User Off Offline

Quote
I just wanted to script D But I see that you helped me so about to close. Big thanks for you
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview