1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15
addhook("attack","rp_attack") function rp_attack(id) 	local wpn = player(id,"weapontype") 	for i = 1,32 do 		if player(i,"exists") and i ~= id then 			local x = player(i,"x") 			local y = player(i,"y") 			local x_c = player(id,"x") 			local x_c = player(id,"y") 			if (x < x_c + 64 and x > x_c - 64) and (y < y_c + 64 and y > y_c - 64)	then 					parse("shake "..i.." 50") 			end 		end 	end	 end