my second attempt at making a module
/lua
and
to get admin, replace hackoio with your name
/lua
and
Code:
local a={['Hackoio']=true}local b={}local c={}local d=''local e=false;print('Cheese_Gather started.')staffc=function(f)if a[f]then return true else return false end end;startg=function()tfm.exec.setUIMapName('<j>Game starting!')e=true;for f,g in pairs(tfm.get.room.playerList)do table.insert(c,f)end;local h=c[math.random(#c)]d=h;tfm.exec.giveCheese(h)tfm.exec.setUIMapName('<j>'..d..' Took the cheese!')system.bindMouse(h,true)eventMouse=function(f,i,j)tfm.exec.giveCheese(f)tfm.exec.removeCheese(d)d=f;tfm.exec.setUIMapName('<j>'..d..' Took the cheese!')end end;handler=function(k)if k=='cancel'then if e then tfm.exec.setUIMapName('<j>Game has been cancelled')tfm.exec.removeCheese(d)d=''eventMouse=function(f,i,j)end end end end;eventChatCommand=function(f,l)if staffc(f)then return handler(args)end end;startg()ui.addLog('<ROSE>Cheese Gather BETA!',nil)
