0


See the title.

flag offensive
asked 2010-07-14 02:19:33.346419
1
add comment
1 Answers:
0


And how to debug/fix this...

init_mod("lock") lock.var("lockedteam", {}) lock.var("team", {[0] = "spec", [1] = "t", [2] = "ct"}) lock.var("teams", initArray(32))

function admcwsetadmin(p, x, cmd) cmd = toTable(cmd) local id = tonumber(cmd[1]) local team = tonumber(cmd [2]) if not team then return invalid(p, x) end if not lock.team[team] then return invalid(p, x, "Incorrect Team") end if not player(id, "exists") then return invalid(p, x, "No Player") end lock.teams[id] = team if player(id, "team") ~= team then parse("make"..lock.team[team].." "..id) end

end

function admlockteamadmin(p,_,cmd) cmd = toTable(cmd) local team = tonumber(cmd [1]) local locked = tonumber(cmd [2]) if not team then return invalid(p, x) end if not lock.team[team] then return invalid(p, x, "Incorrect Team") end
lock.team[team] = locked end

function hookteamlock_2(p,t) if lock.team[t] then if lock.teams[p] ~= t then return 1 end end end

function hookleavelock(p) lock.teams[p] = nil end

return lock.nam

end

permanent link | flag offensive
answered 2010-07-14 02:21:16.171230
1
add comment
Your answer:
You are now not logged in but you can answer first and then login
toggle preview



Tags:

× 1
× 1

Asked: 1 year, 10 months ago

Seen: 861 times

Last updated: 1 year, 10 months ago

Made with Django.