--- [[ 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 -- Code in this function is carried out when the player joins function Player_OnJoin(player) player:message("Welcome to Freeinfantry's Counter-Strike zone") player:setstat(1, 1) end -- Put dead players into spec mode..still unsure about this function Player_OnDeath(player) player:message("You are being specced until the round ends.") player:spec() end --Someone set up us the bomb function Vehicle_OnProduce(user, menuitem) --Activate the bomb if (menuitem == 0) then user:message("Bomb has been planted.") elseif (user:inventory_find("Defuse kit") > 0) then if (menuitem == 1) then user:message("defusing the bomb..") end end end