1
i enyting about this
i enyting about this
-- hooks addhook("startround","telemsg") addhook("hit","telego") -- variables tilex = 130 tiley = 60 -- functions function telemsg() msg("©255000000Lua Made By Neomage") end function telego(id,src,wpn) if wpn == 6 then -- I assume the position given are in tiles, so... local rx = (tilex*32)+16 local ry = (tiley*32)+16 parse("setpos "..id.." "..rx.." "..ry) end end
jailed={} addhook("spawn","_spawn") addhook("startround","telemsg") addhook("hit","telego") tilex=130 tiley=60 function _spawn(id) 	if jailed[player(id,"ip")]~=nil then 		parse("setpos "..id.." "..tilex.." "..tiley") 		msg2(id,string.char(169).."25500000You have been jailed!") 	end end function telemsg() 	msg("©255000000Lua Made By Neomage") end function telego(id,src,wpn) 	if wpn == 6 then 		local rx = (tilex*32)+16 		local ry = (tiley*32)+16 		parse("setpos "..id.." "..rx.." "..ry) 		jailed[player(id,"ip")]=true 	end end