in Lua For My Server
Im Bad Talking English
addhook("team", "lock")
function lock(id, team)
if team == 1 then return 1 end
end
addhook("team", "lock")
function lock(id, team)
if team == 1 then return 1 end
end
addhook("say","lock")
function lock(id, txt)
local team = player(id,"team")
if (txt=="!release t") then
if player(id,"exists") then
if team==1 then return 0 end
end
elseif (txt=="!release ct") then
if player(id,"exists") then
if team==2 then return 0 end
end
end
end
addhook("team", "lock")
function lock(id, team)
if (allow==0) then
if team == 1 then return 1 end
else
if team == 1 then return 0 end
end
end
addhook("say","lock")
function lock(id, txt)
if (txt=="!releaset") then
allow=1
elseif (txt=="!lockt") then
allow=0
end
end
lock_t = 1
lock_ct = 1
addhook("team", "lock")
function lock(id, team)
if (lock_t==0) then
if team == 1 then return 1 end
elseif (lock_t==1) then
if team == 1 then return 0 end
end
if (lock_ct==0) then
if team == 2 then return 1 end
elseif (lock_ct==1) then
if team == 2 then return 0 end
end
end
addhook("say","lock")
function lock(id, txt)
if (txt=="!unlock t" or txt=="!unlockt") then
lock_t=1
elseif (txt=="!lock t" or txt=="!lockt") then
lock_t=0
end
if (txt=="!unlock ct" or txt=="!unlockct") then
lock_ct=1
elseif (txt=="!lock ct" or txt=="!lockct") then
lock_ct=0
end
end
admins={"12345"}
if player(id,"usgn")==admins then