-- Global Constants g_arena = nil g_state = nil g_count = 0 g_gameRunning = false function Arena_OnCreate(arena) g_arena = arena end function On_FlagGameStart() local total = g_arena:num() for i = 1, total do g_arena:message("looping ".. i) local plyr = g_arena:get(i) if (plyr:spectator() == true) then g_arena:message("player in spec") break end plyr:message("If in spec you should not see this message") -- if you are a medic if (plyr:skill_find(1) == true) then plyr:message("you are a medic") end end end