Public feed
#724818
--- [[ Global Variables ]] ---------- g_arena = nil -- The global arena class, to avoid having to pass it around functionsg_bGameRunning = false -- Is the game running?--- [[ Functions ]] --------- when the arena is created, it runs thisfunction Arena_OnCreate(arena) g_arena = arena math.randomseed(os.time())end-- Lets wipe the player's inventory when he leaves the arenafunction Player_OnLeave(player) player:inventory_modify("Boom Ball B",-3) player:inventory_modify("Boom Ball G",-3) player:inventory_modify("Sticky Bomb B",-1) player:inventory_modify("Sticky Bomb G",-1)end-- when a player enters the zone, It wipes his inventory and sends him a messagefunction Player_OnJoin(player) player:inventory_modify("Boom Ball B",-3) player:inventory_modify("Boom Ball G",-3) player:inventory_modify("Sticky Bomb B",-1) player:inventory_modify("Sticky Bomb G",-1) player:message("&Welcome to BoomBall. Post any bugs or suggestions on www.freeinfantry.com. - Gambler.")end-- when the game starts, it sets gameRunning to truefunction Arena_OnGameStart() g_bGameRunning = trueend-- when the game finishes, it sets gameRunning to falsefunction Arena_OnGameEnd() g_bGameRunning = falseend