I need a Jail Script for my Roleplay project.
What I want is Timed Jail System w/ multiple jails and mute system
Examples;
THANKS!
EDIT: Before someone even say, I found nothing from searching.
function string.split(str,pat) local t = {} for word in string.gmatch(str,pat or "[^%s]+") do t[#t+1] = word end return t end jail = { x = 30, y = 50, adm = 15476 } addhook("join","_j") function _j(id) 	jail[id] = {} 	jail[id].jailed = false 	jail[id].pos = {} end addhook("say","_s") function _s(id,txt) 	local say = txt:split() 	local ply = tonumber(say[2]) 	if say[1] == "!jail" then 		if player(id,"usgn") == jail.adm then 			jail[ply].pos.x = player(ply,"x") 			jail[ply].pos.y = player(ply,"y") 			parse("setpos "..ply.." "..jail.x*32+16 .." "..jail.y*32+16) 			timer(tonumber(say[3]),"parse","setpos "..ply.." "..jail[ply].pos.x.." "..jail[ply].pos.y) 			timer(tonumber(say[3],"parse","lua jail["..ply.."].jailed=false") 			jail[id].jailed = true 			return 1 		end 	elseif say[1] == "!unjail" then 		if player(id,"usgn") == jail.adm then 			if jail[ply].jailed then 				jail[ply].jailed = false 				parse("setpos "..ply.." "..jail[ply].pos.x.." "..jail[ply].pos.y) 			end 		end 		return 1 	end 	if jail[id].jailed then 		msg2(id,"Imagine this is bold text -> You can't talk in jail!") 		return 1 	end end