1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
admins={1,2}--usgn here
addhook("hit","_hit")
function _hit(id,sour,wep,hpdmg,apdmg,rawdmg)
	for adi=1,#admins do
	if admins[adi]==player(sour,"usgn") then
	local weapon=0
	if wep==46 then
	local scale=10
	local rot = player(sour,'rot')
		if (rot < -90) then rot = rot + 360 end
	local ang = math.rad(math.abs(rot + 90 )) - math.pi
	setx = player(id,'x') + math.cos(ang) * (scale)
	sety = player(id,'y') + math.sin(ang) * (scale)
		if tile(math.floor(setx/32),math.floor(sety/32),"walkable") then
			parse("setpos "..id.." "..setx.." "..sety)
		end
	end
	
	function respeed()
		parse("speedmod "..id.." 0")
		if weapon ~= 0 then
		parse("setweapon "..id.." "..weapon)
		end
	end
	
	if wep==3 then
		parse("speedmod "..id.." -100")
		weapon=player(id,"weapontype")
		parse("setweapon "..id.." 50")
		timer(4000,"respeed")
	end
	end
	end
end
addhook("select","_select")
function _select(id,wep,mode)
if player(id,"speedmod")==-100 then
	parse("setweapon "..id.." 50")
	msg2(id,"©255000000You are Stunned@C"
end
end