--BoomBall Script --HellSpawn --12.03.06 --- [[ Global Variables ]] ---------- g_arena = nil -- The global arena class, to avoid having to pass it around functions g_bGameRunning = false -- Is the game running? --- [[ Functions ]] ------- -- when the arena is created, it runs this function Arena_OnCreate(arena) g_arena = arena math.randomseed(os.time()) end -- Lets wipe his inventory when he joins function 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) end -- Lets wipe the player's inventory when he leaves the arena function 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 gives them this message function Player_OnJoin(player) player:message("&Welcome to BoomBall. Post any bugs or suggestions on www.freeinfantry.com") end -- when the game starts, it sets gameRunning to true function Arena_OnGameStart() g_bGameRunning = true end -- when the game finishes, it sets gameRunning to false function Arena_OnGameEnd() g_bGameRunning = false end