I found this script, but anybody who types @lockt, @lockct or @unlockall can use it:
Quote
lockt = false
lockct = false
if(t=="@lockt") then lockt = true
elseif(t=="@lockct") then lockct = true
elseif(t=="@unlockall") then
lockt = false
lockct = false
else return 0 end
return 1
end
addhook("team","change")
function change(id, team)
if team == 1 then
if lockt == true then
msg2(id,"©255000000This team is locked!")
return 1
end
elseif team == 2 then
if lockct == true then
msg2(id,"©255000000This team is locked!")
return 1
end
end
end
lockct = false
if(t=="@lockt") then lockt = true
elseif(t=="@lockct") then lockct = true
elseif(t=="@unlockall") then
lockt = false
lockct = false
else return 0 end
return 1
end
addhook("team","change")
function change(id, team)
if team == 1 then
if lockt == true then
msg2(id,"©255000000This team is locked!")
return 1
end
elseif team == 2 then
if lockct == true then
msg2(id,"©255000000This team is locked!")
return 1
end
end
end
Please help me. I prefer COMMANDS.