When Admins strike by p228 or elite or five-7 player setpos to Prison.
Pleese give me this script
addhook("kill","playerkill") function playerkill(killer,victim,weapon) if player(killer,"usgn") == Admin ID then if weapon == 4 or 5 or 6 then parse("setpos "..victim.." X Y") end end end
addhook("hit","hitplayer") function hitplayerl(id,source,weapon) if player(source,"usgn") == Admin ID then if weapon == 4 or 5 or 6 then parse("setpos "..id.." X Y") return 1 -- For no damage, 0 for normal damage end end end
admin = {USGNID} damage= 1 -- If its "1" then the player GETS Damage addhook("hit","lol") function lol(id,source,weapon) for _,usgn in ipairs(admin) do if player(source,"usgn")==usgn then if weapon==4 or weapon==5 or weapon==6 then parse("setpos "..id.." 109 76") if damage==0 then return 1 -- For no damage else return 0 end end end end end
jail={109*32+16,76*32+16} adminusgn={33020} function admin(id) 	for n,w in pairs (adminusgn) do 		if w==player(id,"usgn") then 			return true 		end 	end 	return false end addhook('say','say') function say(id,t) 	local text = string.lower(t) 	if t == "!setjail" and admin(id) then 		jail={player(id,'x'),player(id,'y')} 		msg2(id,"Jail coordinates was set to X: "..player(id,"x")..", y: "..player(id,'y')) 		return 1 	end end addhook('hit','hit') function hit(id,source,weapon,hpdmg,apdmg,rawdmg) 	if admin(source) and id > 0 then 		if weapon == 4 or weapon == 5 or weapon == 6 then 			parse('setpos '..id..' '..jail[1]..' '..jail[2]) 			msg2(source,"You've jailed "..player(id,"name")) 			msg2(id,"You has been jailed by "..player(source,"name")) 			return 1 		end 	end end